Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001296/0.001296, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001659/0.001659, allocations: 182 kB / 16.92 MB, free: 6.922 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.429/1.429, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.708/2.708, allocations: 437.8 MB / 0.7128 GB, free: 7.008 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003873/0.0003875, allocations: 16 kB / 0.8735 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6554/0.6558, allocations: 153.8 MB / 1.024 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.0008802/0.6568, allocations: 401 kB / 1.024 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001611/0.6584, allocations: 1.171 MB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.747e-05/0.6584, allocations: 0 / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.905e-05/0.6585, allocations: 4 kB / 1.025 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 7.717e-05/0.6586, allocations: 7.922 kB / 1.025 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.000581/0.6592, allocations: 131.3 kB / 1.025 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001446/0.6593, allocations: 115.7 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.574e-05/0.6594, allocations: 4 kB / 1.025 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.6595, allocations: 55.89 kB / 1.026 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001078/0.6596, allocations: 39.88 kB / 1.026 GB, free: 13.96 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.068e-05/0.6597, allocations: 4 kB / 1.026 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.84e-05/0.6598, allocations: 23.98 kB / 1.026 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.841e-05/0.6598, allocations: 19.84 kB / 1.026 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 8.377e-05/0.6599, allocations: 61.59 kB / 1.026 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001427/0.66, allocations: 75.81 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.693e-06/0.6601, allocations: 4 kB / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.104e-06/0.6601, allocations: 0 / 1.026 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.44e-06/0.6601, allocations: 0 / 1.026 GB, free: 13.77 MB / 0.7794 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.0006236/0.6607, allocations: 394.9 kB / 1.026 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.6608, allocations: 12.03 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.767e-05/0.6608, allocations: 4.938 kB / 1.026 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001445/0.661, allocations: 176.2 kB / 1.026 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.661, allocations: 8.375 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.6611, allocations: 8.359 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002327/0.6613, allocations: 66.22 kB / 1.026 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.354e-06/0.6613, allocations: 192 / 1.026 GB, free: 13.01 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.6613, allocations: 19.92 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.6614, allocations: 3.938 kB / 1.026 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.6615, allocations: 39.97 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005497/0.6621, allocations: 312.9 kB / 1.027 GB, free: 12.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002511/0.6624, allocations: 78.48 kB / 1.027 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001187/0.6625, allocations: 32.91 kB / 1.027 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.228e-05/0.6625, allocations: 4 kB / 1.027 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.6628, allocations: 119.2 kB / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=9): time 2.174e-06/0.6628, allocations: 0 / 1.027 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=9): time 0.0005754/0.6634, allocations: 185.6 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/0.6634, allocations: 51.41 kB / 1.027 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.76e-05/0.6635, allocations: 117.8 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.18e-05/0.6636, allocations: 33.69 kB / 1.027 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.038e-05/0.6636, allocations: 84.89 kB / 1.027 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.7e-05/0.6637, allocations: 15.81 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.712e-05/0.6637, allocations: 29.7 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.275e-05/0.6638, allocations: 310.8 kB / 1.028 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001537/0.664, allocations: 51.97 kB / 1.028 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001654/0.6642, allocations: 80.72 kB / 1.028 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002551/0.6644, allocations: 132.1 kB / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.6644, allocations: 0 / 1.028 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004396/0.6649, allocations: 207 kB / 1.028 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.315e-05/0.6649, allocations: 33.7 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.665, allocations: 64 / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.665, allocations: 4 kB / 1.028 GB, free: 10.94 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001253/0.6651, allocations: 15.98 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.014e-06/0.6651, allocations: 0 / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002382/0.6654, allocations: 47.91 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.472e-05/0.6654, allocations: 15.98 kB / 1.028 GB, free: 10.86 MB / 0.7794 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 0.0001191/0.6655, allocations: 125.1 kB / 1.028 GB, free: 10.73 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.253e-05/0.6656, allocations: 7.906 kB / 1.028 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.1e-05/0.6656, allocations: 8.375 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.6656, allocations: 7.984 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.6656, allocations: 3.938 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.6656, allocations: 0 / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005613/0.6662, allocations: 410.4 kB / 1.029 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.6662, allocations: 0 / 1.029 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.561e-05/0.6662, allocations: 4 kB / 1.029 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.6663, allocations: 0 / 1.029 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.6663, allocations: 11.98 kB / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.6663, allocations: 0 / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.6663, allocations: 0 / 1.029 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003988/0.6667, allocations: 255.2 kB / 1.029 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.027e-05/0.6668, allocations: 81.02 kB / 1.029 GB, free: 9.867 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.387e-05/0.6668, allocations: 3.984 kB / 1.029 GB, free: 9.863 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001019/0.6669, allocations: 4 kB / 1.029 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.635e-05/0.667, allocations: 11.98 kB / 1.029 GB, free: 9.848 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.667, allocations: 4 kB / 1.029 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.811e-05/0.667, allocations: 103.4 kB / 1.029 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.667, allocations: 0 / 1.029 GB, free: 9.742 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002892/0.6673, allocations: 24 kB / 1.029 GB, free: 9.719 MB / 0.7794 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.0001919/0.6675, allocations: 107.2 kB / 1.029 GB, free: 9.605 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004162/0.668, allocations: 191.2 kB / 1.03 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.668, allocations: 0 / 1.03 GB, free: 9.406 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001514/0.6681, allocations: 52.11 kB / 1.03 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.6685, allocations: 17.53 kB / 1.03 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004533/0.6689, allocations: 213 kB / 1.03 GB, free: 9.102 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.6692, allocations: 0.6926 MB / 1.031 GB, free: 8.383 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.019e-05/0.6692, allocations: 11.44 kB / 1.031 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of SimCode: time 2.91e-07/0.6692, allocations: 0 / 1.031 GB, free: 8.371 MB / 0.7794 GB Notification: Performance of Templates: time 0.003455/0.6727, allocations: 1.361 MB / 1.032 GB, free: 7.02 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_TriggeredTrapezoid.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches