Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001614/0.001614, allocations: 107.3 kB / 16.41 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001827/0.001828, allocations: 191.4 kB / 17.34 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.299/2.299, allocations: 390.3 MB / 0.6655 GB, free: 0.6602 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 67.89 kB / 0.9516 GB, free: 7.609 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.877/0.8785, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.003659/0.8822, allocations: 0.8126 MB / 1.089 GB, free: 4.977 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002408/0.8847, allocations: 1.202 MB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.8848, allocations: 1.094 kB / 1.091 GB, free: 4.094 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.91e-05/0.8849, allocations: 10.03 kB / 1.091 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001299/0.8851, allocations: 14.42 kB / 1.091 GB, free: 4.074 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00091/0.886, allocations: 148.4 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005003/0.8865, allocations: 165 kB / 1.091 GB, free: 3.926 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.8867, allocations: 16.72 kB / 1.091 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.8869, allocations: 68.44 kB / 1.091 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.8872, allocations: 58.91 kB / 1.091 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 7.609e-05/0.8873, allocations: 17.75 kB / 1.091 GB, free: 3.863 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.8874, allocations: 34.92 kB / 1.091 GB, free: 3.852 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 4.724e-05/0.8875, allocations: 21.22 kB / 1.091 GB, free: 3.84 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.8876, allocations: 55.53 kB / 1.091 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003522/0.8879, allocations: 139.3 kB / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.888, allocations: 0 / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.026e-06/0.888, allocations: 0.9062 kB / 1.091 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.047e-06/0.888, allocations: 3.938 kB / 1.091 GB, free: 3.758 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0009064/0.8889, allocations: 448.6 kB / 1.092 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.81e-05/0.889, allocations: 9.531 kB / 1.092 GB, free: 3.336 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001099/0.8891, allocations: 12.45 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001461/0.8892, allocations: 177.8 kB / 1.092 GB, free: 3.125 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.126e-05/0.8893, allocations: 13.59 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.08e-05/0.8893, allocations: 9.859 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.8897, allocations: 99.77 kB / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.8897, allocations: 192 / 1.092 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.867e-05/0.8898, allocations: 6.828 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.8898, allocations: 4.781 kB / 1.092 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.8902, allocations: 87 kB / 1.092 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007111/0.8909, allocations: 384.1 kB / 1.093 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003871/0.8913, allocations: 96.67 kB / 1.093 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002617/0.8916, allocations: 61.34 kB / 1.093 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.179e-05/0.8916, allocations: 2.328 kB / 1.093 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005446/0.8922, allocations: 118 kB / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 2.074e-06/0.8922, allocations: 0 / 1.093 GB, free: 2.582 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0007754/0.893, allocations: 215.9 kB / 1.093 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.216e-05/0.893, allocations: 58.03 kB / 1.093 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001232/0.8932, allocations: 134.7 kB / 1.093 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.713e-05/0.8932, allocations: 37.39 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.2e-05/0.8933, allocations: 99.84 kB / 1.093 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.477e-05/0.8933, allocations: 30.88 kB / 1.093 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001094/0.8934, allocations: 45.66 kB / 1.093 GB, free: 2.141 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.17e-05/0.8935, allocations: 325.2 kB / 1.094 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002842/0.8938, allocations: 81.39 kB / 1.094 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.8941, allocations: 108.7 kB / 1.094 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004565/0.8946, allocations: 183.2 kB / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.8946, allocations: 0 / 1.094 GB, free: 1.629 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007436/0.8953, allocations: 267 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 5.255e-05/0.8954, allocations: 35.83 kB / 1.094 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.8954, allocations: 5.391 kB / 1.094 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.8954, allocations: 1.875 kB / 1.094 GB, free: 1.469 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001577/0.8956, allocations: 24.59 kB / 1.094 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.269e-05/0.8956, allocations: 6.469 kB / 1.094 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002841/0.8959, allocations: 47.81 kB / 1.094 GB, free: 1.449 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.49e-05/0.896, allocations: 13.23 kB / 1.094 GB, free: 1.445 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001114/0.8961, allocations: 127.7 kB / 1.095 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.784e-05/0.8961, allocations: 8.953 kB / 1.095 GB, free: 1.316 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005298/0.8966, allocations: 166.1 kB / 1.095 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.81e-06/0.8967, allocations: 5.875 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.8967, allocations: 0 / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.8967, allocations: 1.547 kB / 1.095 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007157/0.8974, allocations: 464.2 kB / 1.095 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8974, allocations: 0.9062 kB / 1.095 GB, free: 0.8789 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.8975, allocations: 21.27 kB / 1.095 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.8975, allocations: 0.7188 kB / 1.095 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.763e-05/0.8976, allocations: 2.188 kB / 1.095 GB, free: 0.875 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.8976, allocations: 4.812 kB / 1.095 GB, free: 0.8711 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.8976, allocations: 5.5 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005634/0.8981, allocations: 258.7 kB / 1.095 GB, free: 0.6992 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.281e-05/0.8982, allocations: 84.11 kB / 1.096 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.946e-05/0.8982, allocations: 6.391 kB / 1.096 GB, free: 0.5977 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.8984, allocations: 20.2 kB / 1.096 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.949e-05/0.8985, allocations: 15.84 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.8985, allocations: 4.562 kB / 1.096 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.006e-05/0.8986, allocations: 98.17 kB / 1.096 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.41e-07/0.8986, allocations: 0 / 1.096 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003301/0.8989, allocations: 34.78 kB / 1.096 GB, free: 0.5 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001926/0.8991, allocations: 115.6 kB / 1.096 GB, free: 412 kB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0006649/0.8998, allocations: 230.9 kB / 1.096 GB, free: 300 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.8998, allocations: 0 / 1.096 GB, free: 300 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002487/0.9, allocations: 81.05 kB / 1.096 GB, free: 272 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.9004, allocations: 14.56 kB / 1.096 GB, free: 268 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004698/0.9008, allocations: 216.8 kB / 1.096 GB, free: 84 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.9011, allocations: 0.703 MB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.017e-05/0.9012, allocations: 23.17 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of SimCode: time 4.7e-07/0.9012, allocations: 0.9062 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of Templates: time 0.004401/0.9056, allocations: 1.653 MB / 1.099 GB, free: 15.21 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches