Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset") translateModel(Buildings.Controls.Continuous.Examples.LimPIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|plaWitRes.temSen.T|plaNoRes.temSen.T|conWitRes.conPID.trigger|conWitRes.conPID.controlError|conNoRes.conPID.controlError",fileNamePrefix="Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 111 kB / 16.41 MB, free: 6.461 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.001145/0.001145, allocations: 189.5 kB / 17.34 MB, free: 5.715 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.19/1.19, allocations: 222.9 MB / 241 MB, free: 15.13 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.242/2.242, allocations: 437 MB / 0.7112 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 59.91 kB / 1.019 GB, free: 9.422 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6448/0.646, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.004898/0.6509, allocations: 4.131 MB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.002225/0.6531, allocations: 1.317 MB / 1.173 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003513/0.6535, allocations: 27.81 kB / 1.173 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0003005/0.6538, allocations: 126.7 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0003189/0.6542, allocations: 186.4 kB / 1.173 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007443/0.6549, allocations: 420.2 kB / 1.173 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.000773/0.6557, allocations: 0.9632 MB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000545/0.6563, allocations: 454.1 kB / 1.175 GB, free: 12.19 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002907/0.6566, allocations: 334.8 kB / 1.175 GB, free: 11.86 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002852/0.6569, allocations: 342.3 kB / 1.175 GB, free: 11.53 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 9.403e-05/0.657, allocations: 88 kB / 1.175 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 9.654e-05/0.6571, allocations: 92 kB / 1.176 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0001199/0.6572, allocations: 183.4 kB / 1.176 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0002803/0.6575, allocations: 390 kB / 1.176 GB, free: 10.79 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0008624/0.6583, allocations: 1.067 MB / 1.177 GB, free: 9.723 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.6583, allocations: 0 / 1.177 GB, free: 9.723 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.483e-06/0.6584, allocations: 0 / 1.177 GB, free: 9.723 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 9.969e-06/0.6584, allocations: 0 / 1.177 GB, free: 9.723 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.00163/0.66, allocations: 1.1 MB / 1.178 GB, free: 8.562 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 3.428e-05/0.66, allocations: 12.88 kB / 1.178 GB, free: 8.551 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.6602, allocations: 88.42 kB / 1.178 GB, free: 8.465 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007822/0.661, allocations: 0.5732 MB / 1.179 GB, free: 7.852 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.496e-05/0.661, allocations: 45.69 kB / 1.179 GB, free: 7.809 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.335e-05/0.6611, allocations: 60.38 kB / 1.179 GB, free: 7.75 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009641/0.6621, allocations: 0.6039 MB / 1.18 GB, free: 7.121 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.6621, allocations: 3.953 kB / 1.18 GB, free: 7.117 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.992e-05/0.6621, allocations: 31.98 kB / 1.18 GB, free: 7.086 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.6622, allocations: 12 kB / 1.18 GB, free: 7.074 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009006/0.6631, allocations: 461 kB / 1.18 GB, free: 6.625 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002419/0.6655, allocations: 1.993 MB / 1.182 GB, free: 4.562 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008276/0.6663, allocations: 437.5 kB / 1.182 GB, free: 4.125 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004046/0.6668, allocations: 246 kB / 1.183 GB, free: 3.883 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.6668, allocations: 4.438 kB / 1.183 GB, free: 3.879 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000496/0.6673, allocations: 273.3 kB / 1.183 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=49): time 2.074e-06/0.6673, allocations: 0 / 1.183 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of matching and sorting (n=49): time 0.001141/0.6685, allocations: 0.5807 MB / 1.183 GB, free: 3.016 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.355e-05/0.6685, allocations: 59.84 kB / 1.183 GB, free: 2.945 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004309/0.6689, allocations: 454.1 kB / 1.184 GB, free: 2.492 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.669, allocations: 33.7 kB / 1.184 GB, free: 2.453 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.6692, allocations: 324.9 kB / 1.184 GB, free: 2.129 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001152/0.6693, allocations: 174.5 kB / 1.184 GB, free: 1.957 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000121/0.6694, allocations: 90.25 kB / 1.185 GB, free: 1.863 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.6696, allocations: 366.8 kB / 1.185 GB, free: 1.496 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/0.6699, allocations: 169 kB / 1.185 GB, free: 1.332 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003973/0.6703, allocations: 253.8 kB / 1.185 GB, free: 1.059 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007671/0.6711, allocations: 448 kB / 1.186 GB, free: 0.582 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.6711, allocations: 7.938 kB / 1.186 GB, free: 0.5742 MB / 0.9044 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009127/0.672, allocations: 0.5588 MB / 1.186 GB, free: 4 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 4.514e-05/0.6721, allocations: 41.62 kB / 1.186 GB, free: 15.96 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.6721, allocations: 256 / 1.186 GB, free: 15.96 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.6721, allocations: 8 kB / 1.186 GB, free: 15.95 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004464/0.6726, allocations: 111.9 kB / 1.186 GB, free: 15.84 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.283e-05/0.6726, allocations: 7.938 kB / 1.186 GB, free: 15.83 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000281/0.6729, allocations: 63.55 kB / 1.186 GB, free: 15.77 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.176e-05/0.6729, allocations: 19.98 kB / 1.186 GB, free: 15.75 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 9 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,conNoRes.trigger.y,conWitRes.trigger.y,$whenCondition1,$whenCondition2,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 64 * 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.0002094/0.6731, allocations: 203.5 kB / 1.187 GB, free: 15.54 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.317e-05/0.6732, allocations: 71.56 kB / 1.187 GB, free: 15.47 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.6733, allocations: 61.58 kB / 1.187 GB, free: 15.41 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.6733, allocations: 7.938 kB / 1.187 GB, free: 15.41 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.6733, allocations: 0 / 1.187 GB, free: 15.41 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.6734, allocations: 4 kB / 1.187 GB, free: 15.4 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001513/0.6749, allocations: 1.174 MB / 1.188 GB, free: 14.17 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.6749, allocations: 4 kB / 1.188 GB, free: 14.17 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004405/0.6753, allocations: 95.88 kB / 1.188 GB, free: 14.07 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.679e-06/0.6753, allocations: 4 kB / 1.188 GB, free: 14.07 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.6754, allocations: 8 kB / 1.188 GB, free: 14.06 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6754, allocations: 7.938 kB / 1.188 GB, free: 14.05 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.6754, allocations: 0 / 1.188 GB, free: 14.05 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.6766, allocations: 0.7654 MB / 1.189 GB, free: 13.27 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001571/0.6768, allocations: 172.7 kB / 1.189 GB, free: 13.09 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.854e-05/0.6768, allocations: 12 kB / 1.189 GB, free: 13.07 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002672/0.6771, allocations: 15.98 kB / 1.189 GB, free: 13.06 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.763e-05/0.6772, allocations: 44.36 kB / 1.189 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.441e-05/0.6772, allocations: 16 kB / 1.189 GB, free: 13 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.000294/0.6775, allocations: 310.9 kB / 1.189 GB, free: 12.7 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6775, allocations: 0 / 1.189 GB, free: 12.7 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000381/0.6779, allocations: 143.6 kB / 1.19 GB, free: 12.56 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.trigger.y,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001264/0.678, allocations: 120.1 kB / 1.19 GB, free: 12.43 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0008392/0.6789, allocations: 485.2 kB / 1.19 GB, free: 11.95 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6789, allocations: 0 / 1.19 GB, free: 11.95 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0003791/0.6793, allocations: 218.3 kB / 1.19 GB, free: 11.73 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006825/0.68, allocations: 163.7 kB / 1.19 GB, free: 11.58 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.6823, allocations: 1.388 MB / 1.192 GB, free: 10.15 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.6827, allocations: 0.8899 MB / 1.193 GB, free: 9.238 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.6828, allocations: 43.44 kB / 1.193 GB, free: 9.199 MB / 0.92 GB Notification: Performance of SimCode: time 2.71e-07/0.6828, allocations: 0 / 1.193 GB, free: 9.199 MB / 0.92 GB Notification: Performance of Templates: time 0.009142/0.692, allocations: 7.653 MB / 1.2 GB, free: 1.586 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches