Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.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_9_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_9_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.00095/0.0009501, allocations: 98.72 kB / 16.02 MB, free: 76 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.001138/0.001138, allocations: 179.3 kB / 16.92 MB, free: 6.918 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.454/1.454, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.463/2.463, allocations: 390.9 MB / 0.667 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003761/0.0003762, allocations: 8 kB / 0.8166 GB, free: 13.26 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8352/0.8356, allocations: 142.4 MB / 0.9557 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.003765/0.8394, allocations: 3.726 MB / 0.9593 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002494/0.8419, allocations: 1.259 MB / 0.9606 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005102/0.8424, allocations: 27.41 kB / 0.9606 GB, free: 3.633 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0002798/0.8427, allocations: 91.91 kB / 0.9607 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003746/0.8431, allocations: 156.7 kB / 0.9608 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008306/0.844, allocations: 373.7 kB / 0.9612 GB, free: 3.129 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008231/0.8448, allocations: 0.8791 MB / 0.962 GB, free: 2.59 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005959/0.8454, allocations: 421.2 kB / 0.9625 GB, free: 2.324 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00032/0.8457, allocations: 233.2 kB / 0.9627 GB, free: 2.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002965/0.846, allocations: 253.2 kB / 0.9629 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.849e-05/0.8461, allocations: 22.81 kB / 0.9629 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.346e-05/0.8462, allocations: 24.28 kB / 0.963 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.935e-05/0.8463, allocations: 102.9 kB / 0.9631 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002558/0.8466, allocations: 337.6 kB / 0.9634 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005862/0.8471, allocations: 0.8037 MB / 0.9642 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.8472, allocations: 0.875 kB / 0.9642 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.073e-06/0.8472, allocations: 0 / 0.9642 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.229e-05/0.8472, allocations: 0 / 0.9642 GB, free: 1.043 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001604/0.8488, allocations: 0.954 MB / 0.9651 GB, free: 276 kB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.8488, allocations: 8.156 kB / 0.9651 GB, free: 276 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.849, allocations: 90.28 kB / 0.9652 GB, free: 228 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008329/0.8498, allocations: 0.5453 MB / 0.9657 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.294e-05/0.8499, allocations: 53 kB / 0.9658 GB, free: 15.71 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.85, allocations: 60.16 kB / 0.9658 GB, free: 15.69 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.8512, allocations: 0.6066 MB / 0.9664 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.8512, allocations: 6.766 kB / 0.9664 GB, free: 15.3 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.8513, allocations: 24.53 kB / 0.9665 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.346e-05/0.8513, allocations: 13.66 kB / 0.9665 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.8524, allocations: 472 kB / 0.9669 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003303/0.8557, allocations: 2.023 MB / 0.9689 GB, free: 13.46 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001011/0.8567, allocations: 465.2 kB / 0.9693 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005026/0.8573, allocations: 245.5 kB / 0.9696 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 4.917e-05/0.8573, allocations: 5.406 kB / 0.9696 GB, free: 13.1 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006608/0.858, allocations: 266.9 kB / 0.9698 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 2.645e-06/0.858, allocations: 4 kB / 0.9698 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001501/0.8595, allocations: 0.598 MB / 0.9704 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.8596, allocations: 65.75 kB / 0.9705 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000599/0.8602, allocations: 443.7 kB / 0.9709 GB, free: 12.28 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.8602, allocations: 36.7 kB / 0.9709 GB, free: 12.24 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002794/0.8605, allocations: 321 kB / 0.9712 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001384/0.8607, allocations: 165.5 kB / 0.9714 GB, free: 11.82 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.8608, allocations: 54.88 kB / 0.9715 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001931/0.861, allocations: 358.3 kB / 0.9718 GB, free: 11.43 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.8614, allocations: 177 kB / 0.972 GB, free: 11.34 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004868/0.8619, allocations: 263.4 kB / 0.9722 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008756/0.8628, allocations: 461.8 kB / 0.9727 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.8628, allocations: 5.094 kB / 0.9727 GB, free: 10.86 MB / 0.7325 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001173/0.864, allocations: 0.5724 MB / 0.9732 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.691e-05/0.864, allocations: 40.2 kB / 0.9733 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.864, allocations: 2.125 kB / 0.9733 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.864, allocations: 4.469 kB / 0.9733 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005104/0.8646, allocations: 115.6 kB / 0.9734 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/0.8646, allocations: 4.812 kB / 0.9734 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004221/0.865, allocations: 71.09 kB / 0.9734 GB, free: 10.44 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.408e-05/0.8651, allocations: 18 kB / 0.9735 GB, free: 10.44 MB / 0.7325 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.0003191/0.8654, allocations: 211.4 kB / 0.9737 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.973e-05/0.8655, allocations: 57.81 kB / 0.9737 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001419/0.8656, allocations: 57.78 kB / 0.9738 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.413e-06/0.8656, allocations: 5.469 kB / 0.9738 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.079e-05/0.8657, allocations: 4 kB / 0.9738 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.947e-06/0.8657, allocations: 4.734 kB / 0.9738 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001975/0.8677, allocations: 1.197 MB / 0.975 GB, free: 9.301 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.8677, allocations: 0 / 0.975 GB, free: 9.301 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000478/0.8682, allocations: 98.53 kB / 0.9751 GB, free: 9.277 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.8682, allocations: 2.406 kB / 0.9751 GB, free: 9.277 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.8682, allocations: 11.25 kB / 0.9751 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.75e-06/0.8682, allocations: 6.016 kB / 0.9751 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.8682, allocations: 0 / 0.9751 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001469/0.8697, allocations: 0.7764 MB / 0.9758 GB, free: 8.812 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000213/0.8699, allocations: 172.7 kB / 0.976 GB, free: 8.645 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.903e-05/0.87, allocations: 14.98 kB / 0.976 GB, free: 8.633 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/0.8703, allocations: 28.83 kB / 0.976 GB, free: 8.621 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.8704, allocations: 40 kB / 0.9761 GB, free: 8.598 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/0.8705, allocations: 13.59 kB / 0.9761 GB, free: 8.594 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004056/0.8709, allocations: 315.4 kB / 0.9764 GB, free: 8.398 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.1e-07/0.8709, allocations: 0 / 0.9764 GB, free: 8.398 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000521/0.8714, allocations: 137.8 kB / 0.9765 GB, free: 8.363 MB / 0.7325 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.0001626/0.8716, allocations: 115.3 kB / 0.9766 GB, free: 8.262 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001021/0.8726, allocations: 499.4 kB / 0.9771 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.8726, allocations: 0 / 0.9771 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004542/0.8731, allocations: 219.8 kB / 0.9773 GB, free: 7.91 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008216/0.8739, allocations: 147.2 kB / 0.9775 GB, free: 7.836 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003053/0.877, allocations: 1.733 MB / 0.9791 GB, free: 6.562 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004877/0.8775, allocations: 0.8854 MB / 0.98 GB, free: 5.781 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.8777, allocations: 45.86 kB / 0.9801 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of SimCode: time 8.62e-07/0.8777, allocations: 0 / 0.9801 GB, free: 5.77 MB / 0.7325 GB Notification: Performance of Templates: time 0.01188/0.8896, allocations: 7.48 MB / 0.9874 GB, free: 14.41 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches