Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.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.TriggeredTrapezoid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|triggeredTrapezoid1.u|triggeredTrapezoid1.y",fileNamePrefix="Buildings_9_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_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009446/0.0009442, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.009632/0.009632, allocations: 170 kB / 16.26 MB, free: 6.613 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.458/1.458, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.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.524/2.524, allocations: 390.9 MB / 0.6663 GB, free: 2.328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000405/0.0004051, allocations: 12 kB / 0.816 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8633/0.8637, allocations: 142.4 MB / 0.9551 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.0009457/0.8647, allocations: 390.6 kB / 0.9554 GB, free: 7.523 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001851/0.8666, allocations: 1.174 MB / 0.9566 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.157e-05/0.8667, allocations: 0 / 0.9566 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.227e-05/0.8667, allocations: 0 / 0.9566 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.837e-05/0.8668, allocations: 9.828 kB / 0.9566 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005962/0.8674, allocations: 127.9 kB / 0.9567 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001898/0.8676, allocations: 115.4 kB / 0.9568 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.8677, allocations: 18.77 kB / 0.9568 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000131/0.8679, allocations: 39.97 kB / 0.9569 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000104/0.868, allocations: 44.66 kB / 0.9569 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.507e-05/0.868, allocations: 5.531 kB / 0.9569 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.543e-05/0.8681, allocations: 24.53 kB / 0.9569 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.766e-05/0.8681, allocations: 11.05 kB / 0.957 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.742e-05/0.8682, allocations: 70.08 kB / 0.957 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.8684, allocations: 109.4 kB / 0.9571 GB, free: 6.203 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.8684, allocations: 3.984 kB / 0.9571 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.724e-06/0.8684, allocations: 1.5 kB / 0.9571 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.8685, allocations: 4 kB / 0.9571 GB, free: 6.195 MB / 0.7169 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.0006237/0.8691, allocations: 382.9 kB / 0.9575 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.8691, allocations: 9.156 kB / 0.9575 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.8692, allocations: 10.28 kB / 0.9575 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001173/0.8693, allocations: 178 kB / 0.9577 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.8694, allocations: 7.938 kB / 0.9577 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.8694, allocations: 7.531 kB / 0.9577 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000227/0.8696, allocations: 82.2 kB / 0.9578 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.8697, allocations: 192 / 0.9578 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.8697, allocations: 6.25 kB / 0.9578 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.68e-06/0.8697, allocations: 0 / 0.9578 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001686/0.8699, allocations: 39.16 kB / 0.9578 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004957/0.8704, allocations: 321.3 kB / 0.9581 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003252/0.8707, allocations: 83.64 kB / 0.9582 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001696/0.8709, allocations: 38.83 kB / 0.9582 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.649e-05/0.8709, allocations: 0.9688 kB / 0.9582 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002986/0.8712, allocations: 107.5 kB / 0.9583 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 2.014e-06/0.8713, allocations: 0 / 0.9583 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0005764/0.8718, allocations: 185 kB / 0.9585 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.965e-05/0.8719, allocations: 56.36 kB / 0.9586 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.121e-05/0.872, allocations: 117.8 kB / 0.9587 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.56e-05/0.872, allocations: 28.92 kB / 0.9587 GB, free: 4.66 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.588e-05/0.8721, allocations: 94.17 kB / 0.9588 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.213e-05/0.8721, allocations: 19.2 kB / 0.9588 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.8721, allocations: 24.08 kB / 0.9588 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.062e-05/0.8722, allocations: 321.1 kB / 0.9592 GB, free: 4.207 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.8723, allocations: 47.5 kB / 0.9592 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001536/0.8725, allocations: 69.95 kB / 0.9593 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002408/0.8728, allocations: 132.8 kB / 0.9594 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.8728, allocations: 0 / 0.9594 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000421/0.8732, allocations: 202.7 kB / 0.9596 GB, free: 3.91 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.015e-05/0.8733, allocations: 37.95 kB / 0.9596 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.8733, allocations: 3.984 kB / 0.9596 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.8733, allocations: 1.375 kB / 0.9596 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.8734, allocations: 18.98 kB / 0.9596 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.8734, allocations: 1.375 kB / 0.9596 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002318/0.8737, allocations: 48.8 kB / 0.9597 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.8737, allocations: 5.5 kB / 0.9597 GB, free: 3.844 MB / 0.7169 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,triggeredTrapezoid1.T,triggeredTrapezoid1.rate,triggeredTrapezoid1.endValue,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition4) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.361e-05/0.8738, allocations: 125.6 kB / 0.9598 GB, free: 3.719 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.8738, allocations: 15.95 kB / 0.9598 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.24e-05/0.8739, allocations: 9.75 kB / 0.9598 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.8739, allocations: 1.375 kB / 0.9598 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.8739, allocations: 0 / 0.9598 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.8739, allocations: 0 / 0.9598 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004769/0.8744, allocations: 406.2 kB / 0.9602 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.8744, allocations: 0 / 0.9602 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.575e-05/0.8744, allocations: 13.48 kB / 0.9602 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.8744, allocations: 0 / 0.9602 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.255e-05/0.8745, allocations: 1.375 kB / 0.9602 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.8745, allocations: 1.375 kB / 0.9602 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.8745, allocations: 4 kB / 0.9603 GB, free: 3.312 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003596/0.8748, allocations: 245.4 kB / 0.9605 GB, free: 3.125 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.8749, allocations: 87.75 kB / 0.9606 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.421e-05/0.8749, allocations: 1.375 kB / 0.9606 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.585e-05/0.875, allocations: 6.688 kB / 0.9606 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.962e-05/0.8751, allocations: 20.09 kB / 0.9606 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.8751, allocations: 4.125 kB / 0.9606 GB, free: 3.004 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.865e-05/0.8751, allocations: 94.08 kB / 0.9607 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9.42e-07/0.8751, allocations: 480 / 0.9607 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002666/0.8754, allocations: 27.31 kB / 0.9607 GB, free: 2.914 MB / 0.7169 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 (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.0001938/0.8756, allocations: 111.1 kB / 0.9608 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003884/0.876, allocations: 189.4 kB / 0.961 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.876, allocations: 0 / 0.961 GB, free: 2.691 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.8762, allocations: 54.28 kB / 0.9611 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000304/0.8765, allocations: 15.06 kB / 0.9611 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004247/0.8769, allocations: 187.8 kB / 0.9612 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001428/0.8771, allocations: 0.6897 MB / 0.9619 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.277e-05/0.8771, allocations: 3.672 kB / 0.9619 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.446e-05/0.8771, allocations: 11.66 kB / 0.9619 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of SimCode: time 6.62e-07/0.8771, allocations: 0 / 0.9619 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of Templates: time 0.004757/0.8819, allocations: 1.556 MB / 0.9635 GB, free: 1 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches