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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.005937/0.005938, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001099/0.001099, allocations: 195.1 kB / 16.67 MB, free: 5.969 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.762/2.762, allocations: 437 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 67.91 kB / 1.019 GB, free: 9.391 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.127/1.128, allocations: 151.6 MB / 1.167 GB, free: 4 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.TriggeredTrapezoid): time 0.004195/1.132, allocations: 0.655 MB / 1.167 GB, free: 3.352 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00292/1.135, allocations: 1.166 MB / 1.168 GB, free: 2.172 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.793e-05/1.135, allocations: 8 kB / 1.168 GB, free: 2.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.807e-05/1.135, allocations: 3.938 kB / 1.168 GB, free: 2.16 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0001162/1.135, allocations: 11.86 kB / 1.168 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008381/1.136, allocations: 147 kB / 1.169 GB, free: 2.008 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000277/1.137, allocations: 143.7 kB / 1.169 GB, free: 1.867 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/1.137, allocations: 4 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001279/1.137, allocations: 51.89 kB / 1.169 GB, free: 1.812 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001606/1.137, allocations: 55.84 kB / 1.169 GB, free: 1.758 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 4.595e-05/1.137, allocations: 15.94 kB / 1.169 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001066/1.137, allocations: 24 kB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 4.953e-05/1.137, allocations: 19.92 kB / 1.169 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0001158/1.137, allocations: 51.86 kB / 1.169 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002996/1.138, allocations: 120.6 kB / 1.169 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.134e-06/1.138, allocations: 0 / 1.169 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of FrontEnd: time 3.146e-06/1.138, allocations: 0 / 1.169 GB, free: 1.531 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.454e-06/1.138, allocations: 0 / 1.169 GB, free: 1.531 MB / 0.8887 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.0009363/1.139, allocations: 405 kB / 1.169 GB, free: 1.078 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/1.139, allocations: 8.031 kB / 1.169 GB, free: 1.07 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.915e-05/1.139, allocations: 16.88 kB / 1.169 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/1.139, allocations: 168.3 kB / 1.17 GB, free: 0.8516 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/1.139, allocations: 4.375 kB / 1.17 GB, free: 0.8477 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/1.139, allocations: 12.38 kB / 1.17 GB, free: 0.8359 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000322/1.139, allocations: 74.14 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/1.139, allocations: 192 / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/1.139, allocations: 7.938 kB / 1.17 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/1.139, allocations: 0 / 1.17 GB, free: 0.75 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/1.14, allocations: 39.97 kB / 1.17 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007111/1.14, allocations: 328.7 kB / 1.17 GB, free: 348 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002882/1.141, allocations: 78.42 kB / 1.17 GB, free: 260 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/1.141, allocations: 36.91 kB / 1.17 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 9.438e-06/1.141, allocations: 0 / 1.17 GB, free: 220 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003918/1.141, allocations: 95.34 kB / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=9): time 2.475e-06/1.141, allocations: 0 / 1.17 GB, free: 112 kB / 0.8887 GB Notification: Performance of matching and sorting (n=9): time 0.0007749/1.142, allocations: 189.6 kB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/1.142, allocations: 51.41 kB / 1.17 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/1.142, allocations: 118.4 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 4.13e-05/1.142, allocations: 33.7 kB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.54e-05/1.142, allocations: 88.09 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.592e-05/1.143, allocations: 19.89 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001101/1.143, allocations: 33.7 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001474/1.143, allocations: 330.8 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002018/1.143, allocations: 47.97 kB / 1.171 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002311/1.143, allocations: 71.89 kB / 1.171 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003273/1.144, allocations: 124.1 kB / 1.171 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/1.144, allocations: 4 kB / 1.171 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005599/1.144, allocations: 195.2 kB / 1.172 GB, free: 14.74 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 5.327e-05/1.144, allocations: 41.69 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/1.144, allocations: 0 / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/1.144, allocations: 0 / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/1.144, allocations: 12 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.057e-05/1.144, allocations: 3.984 kB / 1.172 GB, free: 14.68 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002503/1.145, allocations: 28.03 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.281e-05/1.145, allocations: 12 kB / 1.172 GB, free: 14.64 MB / 0.9044 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.0001509/1.145, allocations: 135.3 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.115e-05/1.145, allocations: 3.953 kB / 1.172 GB, free: 14.49 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.16e-05/1.145, allocations: 12.38 kB / 1.172 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/1.145, allocations: 3.938 kB / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/1.145, allocations: 0 / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/1.145, allocations: 0 / 1.172 GB, free: 14.47 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007062/1.146, allocations: 406.3 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/1.146, allocations: 3.984 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.231e-05/1.146, allocations: 8 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/1.146, allocations: 0 / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/1.146, allocations: 4 kB / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/1.146, allocations: 0 / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/1.146, allocations: 0 / 1.172 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005291/1.146, allocations: 251.3 kB / 1.172 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.81e-05/1.146, allocations: 85.05 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.897e-05/1.147, allocations: 4 kB / 1.172 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/1.147, allocations: 7.984 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.798e-05/1.147, allocations: 4.281 kB / 1.172 GB, free: 13.63 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/1.147, allocations: 4 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 8.611e-05/1.147, allocations: 99.14 kB / 1.173 GB, free: 13.53 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.8e-07/1.147, allocations: 3.938 kB / 1.173 GB, free: 13.52 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0004496/1.147, allocations: 24 kB / 1.173 GB, free: 13.5 MB / 0.9044 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.0002574/1.148, allocations: 113 kB / 1.173 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0005338/1.148, allocations: 183.3 kB / 1.173 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.148, allocations: 0 / 1.173 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001792/1.148, allocations: 51.91 kB / 1.173 GB, free: 13.14 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004416/1.149, allocations: 11.98 kB / 1.173 GB, free: 13.13 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005301/1.149, allocations: 174.7 kB / 1.173 GB, free: 12.93 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/1.15, allocations: 0.6885 MB / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.033e-05/1.15, allocations: 4.672 kB / 1.174 GB, free: 12.21 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.287e-05/1.15, allocations: 11.44 kB / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of SimCode: time 3.8e-07/1.15, allocations: 0 / 1.174 GB, free: 12.2 MB / 0.9044 GB Notification: Performance of Templates: time 0.006169/1.156, allocations: 1.665 MB / 1.175 GB, free: 10.55 MB / 0.9044 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/jenkins/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