Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.273/2.273, allocations: 393.5 MB / 408.4 MB, free: 10.99 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.00112/0.00112, allocations: 175.4 kB / 0.4902 GB, free: 2.227 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.504/1.504, allocations: 223.2 MB / 0.7992 GB, free: 14.73 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.0009046/0.0009045, allocations: 96.27 kB / 0.9396 GB, free: 1.898 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003817/0.0003818, allocations: 14.31 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3488/0.3492, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2034/0.5527, allocations: 150.3 MB / 1.376 GB, free: 3.199 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002193/0.5529, allocations: 71.95 kB / 1.376 GB, free: 3.129 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.007574/0.5605, allocations: 2.466 MB / 1.378 GB, free: 0.6602 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.448e-06/0.5606, allocations: 3.984 kB / 1.379 GB, free: 0.6562 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.5606, allocations: 0 / 1.379 GB, free: 0.6562 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.000641/0.5613, allocations: 396.9 kB / 1.379 GB, free: 220 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.5613, allocations: 8.562 kB / 1.379 GB, free: 212 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.501e-05/0.5614, allocations: 7.906 kB / 1.379 GB, free: 204 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.5616, allocations: 175.2 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.602e-05/0.5616, allocations: 8 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.5617, allocations: 4 kB / 1.379 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.5619, allocations: 73.58 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.562, allocations: 4 kB / 1.379 GB, free: 15.89 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.562, allocations: 8 kB / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.519e-06/0.562, allocations: 0 / 1.379 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.5622, allocations: 39.97 kB / 1.379 GB, free: 15.84 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005814/0.5627, allocations: 324.7 kB / 1.38 GB, free: 15.48 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002151/0.563, allocations: 82.42 kB / 1.38 GB, free: 15.39 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.225e-05/0.563, allocations: 3.938 kB / 1.38 GB, free: 15.38 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.5633, allocations: 107.3 kB / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=9): time 2.555e-06/0.5633, allocations: 0 / 1.38 GB, free: 15.27 MB / 0.8855 GB Notification: Performance of matching and sorting (n=9): time 0.0005544/0.5639, allocations: 185.6 kB / 1.38 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.933e-05/0.5639, allocations: 51.41 kB / 1.38 GB, free: 15.02 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001045/0.5641, allocations: 116.8 kB / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.233e-05/0.5641, allocations: 29.7 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 6.959e-05/0.5642, allocations: 88.31 kB / 1.38 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.5642, allocations: 19.8 kB / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.46e-05/0.5642, allocations: 4 kB / 1.38 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.5644, allocations: 322.8 kB / 1.38 GB, free: 14.42 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.5645, allocations: 55.91 kB / 1.381 GB, free: 14.37 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000162/0.5647, allocations: 70.55 kB / 1.381 GB, free: 14.29 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001621/0.5649, allocations: 69.75 kB / 1.381 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.5649, allocations: 4 kB / 1.381 GB, free: 14.21 MB / 0.8855 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004325/0.5653, allocations: 203.1 kB / 1.381 GB, free: 14 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.968e-05/0.5654, allocations: 42.53 kB / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.5654, allocations: 0 / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.5654, allocations: 0 / 1.381 GB, free: 13.95 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.5656, allocations: 12 kB / 1.381 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.103e-05/0.5656, allocations: 3.938 kB / 1.381 GB, free: 13.94 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001952/0.5658, allocations: 47.97 kB / 1.381 GB, free: 13.89 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.366e-05/0.5658, allocations: 8 kB / 1.381 GB, free: 13.88 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$whenCondition2,$whenCondition4,$whenCondition3,$PRE.booPul.y,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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.0001121/0.5659, allocations: 125.8 kB / 1.381 GB, free: 13.75 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.987e-05/0.566, allocations: 11.89 kB / 1.381 GB, free: 13.74 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.59e-05/0.566, allocations: 12.31 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.566, allocations: 4 kB / 1.381 GB, free: 13.72 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.566, allocations: 3.984 kB / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.566, allocations: 0 / 1.381 GB, free: 13.71 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005236/0.5666, allocations: 406.4 kB / 1.382 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.5666, allocations: 0 / 1.382 GB, free: 13.26 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.171e-05/0.5666, allocations: 11.98 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.5666, allocations: 0 / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.5667, allocations: 4 kB / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.5667, allocations: 0 / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5667, allocations: 0 / 1.382 GB, free: 13.25 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003766/0.567, allocations: 243.3 kB / 1.382 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.268e-05/0.5671, allocations: 89 kB / 1.382 GB, free: 12.89 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.47e-05/0.5671, allocations: 4 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.5673, allocations: 8 kB / 1.382 GB, free: 12.88 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.757e-05/0.5673, allocations: 11.92 kB / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.5673, allocations: 4 kB / 1.382 GB, free: 12.86 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 6.274e-05/0.5674, allocations: 91.22 kB / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.61e-07/0.5674, allocations: 0 / 1.382 GB, free: 12.77 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002761/0.5677, allocations: 36.47 kB / 1.382 GB, free: 12.73 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triggeredTrapezoid1.endValue,triggeredTrapezoid1.rate,triggeredTrapezoid1.T) * Number of discrete states: 1 (triggeredTrapezoid1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002011/0.5679, allocations: 112.7 kB / 1.382 GB, free: 12.62 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003848/0.5683, allocations: 191.2 kB / 1.382 GB, free: 12.42 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.5683, allocations: 0 / 1.382 GB, free: 12.42 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000137/0.5684, allocations: 51.91 kB / 1.382 GB, free: 12.37 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002028/0.5687, allocations: 12 kB / 1.382 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004328/0.5691, allocations: 191.4 kB / 1.383 GB, free: 12.13 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.5694, allocations: 0.6887 MB / 1.383 GB, free: 11.42 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.943e-05/0.5694, allocations: 4.672 kB / 1.383 GB, free: 11.41 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.833e-05/0.5695, allocations: 11.44 kB / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of SimCode: time 3.3e-07/0.5695, allocations: 4 kB / 1.383 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of Templates: time 0.004331/0.5738, allocations: 1.484 MB / 1.385 GB, free: 9.93 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches