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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.369/2.369, allocations: 390.3 MB / 405.3 MB, free: 13.51 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 169.2 kB / 498.1 MB, free: 5.742 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.51/1.51, allocations: 223.2 MB / 0.7948 GB, free: 17.91 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009942/0.0009945, allocations: 99.5 kB / 0.9346 GB, free: 6.211 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003514/0.0003515, allocations: 10.16 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2902, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1836/0.4739, allocations: 149.9 MB / 1.369 GB, free: 12.16 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.4742, allocations: 71.95 kB / 1.369 GB, free: 12.09 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007502/0.4817, allocations: 2.497 MB / 1.372 GB, free: 9.598 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.074e-06/0.4817, allocations: 4 kB / 1.372 GB, free: 9.594 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 9.037e-06/0.4818, allocations: 7.938 kB / 1.372 GB, free: 9.586 MB / 0.8698 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.0006388/0.4824, allocations: 434.6 kB / 1.372 GB, free: 9.109 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.948e-05/0.4825, allocations: 12.03 kB / 1.372 GB, free: 9.098 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.447e-05/0.4825, allocations: 11.91 kB / 1.372 GB, free: 9.086 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.4827, allocations: 186.3 kB / 1.372 GB, free: 8.867 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.4827, allocations: 11.98 kB / 1.372 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.418e-05/0.4828, allocations: 12 kB / 1.372 GB, free: 8.844 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000295/0.4831, allocations: 101.6 kB / 1.373 GB, free: 8.738 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.4831, allocations: 0 / 1.373 GB, free: 8.738 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.4831, allocations: 12 kB / 1.373 GB, free: 8.727 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.4831, allocations: 0 / 1.373 GB, free: 8.727 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003579/0.4835, allocations: 107.9 kB / 1.373 GB, free: 8.621 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006131/0.4841, allocations: 384.5 kB / 1.373 GB, free: 8.195 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.4844, allocations: 110.6 kB / 1.373 GB, free: 8.078 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.174e-05/0.4844, allocations: 0 / 1.373 GB, free: 8.078 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003508/0.4848, allocations: 127.3 kB / 1.373 GB, free: 7.941 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=12): time 1.713e-06/0.4848, allocations: 0 / 1.373 GB, free: 7.941 MB / 0.8698 GB Notification: Performance of matching and sorting (n=12): time 0.0007115/0.4855, allocations: 253.5 kB / 1.373 GB, free: 7.688 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.4856, allocations: 51.41 kB / 1.374 GB, free: 7.625 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001079/0.4857, allocations: 117 kB / 1.374 GB, free: 7.504 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 5.699e-05/0.4857, allocations: 33.7 kB / 1.374 GB, free: 7.465 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 8.291e-05/0.4858, allocations: 100 kB / 1.374 GB, free: 7.363 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.871e-05/0.4859, allocations: 31.62 kB / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.866e-05/0.4859, allocations: 8 kB / 1.374 GB, free: 7.324 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001688/0.4861, allocations: 322.8 kB / 1.374 GB, free: 7 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002599/0.4864, allocations: 87.94 kB / 1.374 GB, free: 6.914 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003385/0.4867, allocations: 124.2 kB / 1.374 GB, free: 6.777 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002709/0.487, allocations: 109.7 kB / 1.374 GB, free: 6.664 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.487, allocations: 4 kB / 1.374 GB, free: 6.66 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006671/0.4877, allocations: 290.9 kB / 1.375 GB, free: 6.367 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 5.803e-05/0.4877, allocations: 33.7 kB / 1.375 GB, free: 6.328 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.667e-05/0.4878, allocations: 4 kB / 1.375 GB, free: 6.324 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.4878, allocations: 3.953 kB / 1.375 GB, free: 6.32 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.488, allocations: 36 kB / 1.375 GB, free: 6.285 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.488, allocations: 3.984 kB / 1.375 GB, free: 6.281 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002625/0.4882, allocations: 59.95 kB / 1.375 GB, free: 6.223 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.045e-05/0.4883, allocations: 11.98 kB / 1.375 GB, free: 6.211 MB / 0.8698 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos,triggeredSampler.trigger) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001458/0.4884, allocations: 125.8 kB / 1.375 GB, free: 6.078 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.757e-05/0.4885, allocations: 7.906 kB / 1.375 GB, free: 6.07 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000514/0.489, allocations: 194.4 kB / 1.375 GB, free: 5.871 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.489, allocations: 3.984 kB / 1.375 GB, free: 5.867 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-05/0.489, allocations: 7.891 kB / 1.375 GB, free: 5.859 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.489, allocations: 0 / 1.375 GB, free: 5.859 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007429/0.4898, allocations: 482.3 kB / 1.376 GB, free: 5.332 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.4898, allocations: 4 kB / 1.376 GB, free: 5.328 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.4899, allocations: 19.98 kB / 1.376 GB, free: 5.309 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.4899, allocations: 3.984 kB / 1.376 GB, free: 5.305 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.49, allocations: 7.953 kB / 1.376 GB, free: 5.297 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.49, allocations: 4 kB / 1.376 GB, free: 5.293 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.49, allocations: 0 / 1.376 GB, free: 5.293 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004914/0.4905, allocations: 275.3 kB / 1.376 GB, free: 5.008 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.126e-05/0.4906, allocations: 88.92 kB / 1.376 GB, free: 4.902 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.376e-05/0.4906, allocations: 7.938 kB / 1.376 GB, free: 4.895 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.4907, allocations: 19.94 kB / 1.376 GB, free: 4.875 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.324e-05/0.4908, allocations: 23.95 kB / 1.376 GB, free: 4.852 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.069e-05/0.4908, allocations: 4 kB / 1.376 GB, free: 4.848 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 5.754e-05/0.4909, allocations: 95.27 kB / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4909, allocations: 0 / 1.376 GB, free: 4.754 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002936/0.4912, allocations: 36.12 kB / 1.376 GB, free: 4.719 MB / 0.8698 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 (triggeredSampler.trigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002175/0.4914, allocations: 123 kB / 1.376 GB, free: 4.59 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0006077/0.492, allocations: 247.2 kB / 1.377 GB, free: 4.336 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.492, allocations: 3.938 kB / 1.377 GB, free: 4.332 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002214/0.4923, allocations: 88.12 kB / 1.377 GB, free: 4.246 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.4925, allocations: 8 kB / 1.377 GB, free: 4.238 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005075/0.493, allocations: 223.2 kB / 1.377 GB, free: 3.992 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003571/0.4934, allocations: 0.7004 MB / 1.378 GB, free: 3.266 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 5.905e-05/0.4935, allocations: 8.562 kB / 1.378 GB, free: 3.254 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.37e-05/0.4935, allocations: 19.42 kB / 1.378 GB, free: 3.234 MB / 0.8698 GB Notification: Performance of SimCode: time 3.4e-07/0.4935, allocations: 0 / 1.378 GB, free: 3.234 MB / 0.8698 GB Notification: Performance of Templates: time 0.004507/0.498, allocations: 1.629 MB / 1.379 GB, free: 1.625 MB / 0.8698 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","../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches