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.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.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.00713/0.00713, allocations: 98.52 kB / 15.73 MB, free: 5.527 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.001569/0.001569, allocations: 187.4 kB / 16.67 MB, free: 5.465 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001996/0.001997, allocations: 65.53 kB / 0.9508 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3459, allocations: 140.4 MB / 1.088 GB, free: 1.535 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005262/0.3512, allocations: 4.124 MB / 1.092 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002472/0.3537, allocations: 1.325 MB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003666/0.3541, allocations: 27.88 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000358/0.3545, allocations: 122.8 kB / 1.093 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003411/0.3549, allocations: 182.4 kB / 1.094 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008346/0.3557, allocations: 421.9 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0008444/0.3566, allocations: 0.9671 MB / 1.095 GB, free: 10.35 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006106/0.3572, allocations: 458.1 kB / 1.095 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003383/0.3575, allocations: 334.7 kB / 1.096 GB, free: 9.555 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003157/0.3578, allocations: 338.3 kB / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001051/0.358, allocations: 92 kB / 1.096 GB, free: 9.133 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.3581, allocations: 92 kB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.3582, allocations: 183.4 kB / 1.096 GB, free: 8.863 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000309/0.3585, allocations: 382.1 kB / 1.097 GB, free: 8.488 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0009704/0.3595, allocations: 1.074 MB / 1.098 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.3595, allocations: 4 kB / 1.098 GB, free: 7.406 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.223e-06/0.3595, allocations: 0 / 1.098 GB, free: 7.406 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.12e-05/0.3595, allocations: 0 / 1.098 GB, free: 7.406 MB / 0.8575 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.001781/0.3613, allocations: 1.096 MB / 1.099 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.3614, allocations: 8.031 kB / 1.099 GB, free: 6.242 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.3615, allocations: 88.38 kB / 1.099 GB, free: 6.156 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009172/0.3624, allocations: 0.5693 MB / 1.099 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.182e-05/0.3625, allocations: 49.69 kB / 1.099 GB, free: 5.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-05/0.3626, allocations: 56.38 kB / 1.1 GB, free: 5.445 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.3636, allocations: 0.6079 MB / 1.1 GB, free: 4.812 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.3637, allocations: 3.938 kB / 1.1 GB, free: 4.809 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.884e-05/0.3637, allocations: 24 kB / 1.1 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.3637, allocations: 12 kB / 1.1 GB, free: 4.773 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000916/0.3647, allocations: 457 kB / 1.101 GB, free: 4.328 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002689/0.3674, allocations: 1.997 MB / 1.103 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000877/0.3683, allocations: 445.5 kB / 1.103 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004318/0.3687, allocations: 238.6 kB / 1.103 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.153e-05/0.3687, allocations: 8.438 kB / 1.103 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005216/0.3693, allocations: 265.2 kB / 1.103 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=49): time 2.214e-06/0.3693, allocations: 0 / 1.103 GB, free: 1.309 MB / 0.8575 GB Notification: Performance of matching and sorting (n=49): time 0.001238/0.3705, allocations: 0.5885 MB / 1.104 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.3706, allocations: 59.84 kB / 1.104 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004576/0.3711, allocations: 446 kB / 1.105 GB, free: 200 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.3711, allocations: 37.64 kB / 1.105 GB, free: 156 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000246/0.3714, allocations: 329.6 kB / 1.105 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.3715, allocations: 178.5 kB / 1.105 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.3716, allocations: 94.2 kB / 1.105 GB, free: 15.55 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001384/0.3718, allocations: 370.7 kB / 1.105 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003709/0.3722, allocations: 169 kB / 1.106 GB, free: 15.02 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004071/0.3726, allocations: 241.8 kB / 1.106 GB, free: 14.75 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007818/0.3734, allocations: 460 kB / 1.106 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.3734, allocations: 0 / 1.106 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009828/0.3744, allocations: 0.5627 MB / 1.107 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.217e-05/0.3744, allocations: 33.64 kB / 1.107 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.3744, allocations: 7.984 kB / 1.107 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.3745, allocations: 4 kB / 1.107 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004844/0.3749, allocations: 115.8 kB / 1.107 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.342e-05/0.375, allocations: 7.984 kB / 1.107 GB, free: 13.53 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.3753, allocations: 55.66 kB / 1.107 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.288e-05/0.3754, allocations: 24.22 kB / 1.107 GB, free: 13.45 MB / 0.8731 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.0002433/0.3756, allocations: 215.4 kB / 1.107 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/0.3757, allocations: 63.56 kB / 1.107 GB, free: 13.17 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.3758, allocations: 57.59 kB / 1.107 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3758, allocations: 4 kB / 1.107 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3758, allocations: 0 / 1.107 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.3758, allocations: 3.984 kB / 1.107 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001675/0.3775, allocations: 1.182 MB / 1.109 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3775, allocations: 0 / 1.109 GB, free: 11.86 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004653/0.378, allocations: 95.88 kB / 1.109 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.378, allocations: 4 kB / 1.109 GB, free: 11.77 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.988e-05/0.3781, allocations: 8 kB / 1.109 GB, free: 11.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3781, allocations: 0 / 1.109 GB, free: 11.76 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3781, allocations: 4 kB / 1.109 GB, free: 11.75 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001266/0.3793, allocations: 0.7732 MB / 1.109 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.3795, allocations: 172.7 kB / 1.11 GB, free: 10.78 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.107e-05/0.3796, allocations: 11.98 kB / 1.11 GB, free: 10.77 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002791/0.3799, allocations: 23.98 kB / 1.11 GB, free: 10.74 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.492e-05/0.38, allocations: 36.39 kB / 1.11 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.38, allocations: 15.98 kB / 1.11 GB, free: 10.69 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0003143/0.3803, allocations: 306.9 kB / 1.11 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3803, allocations: 3.938 kB / 1.11 GB, free: 10.39 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0004483/0.3808, allocations: 143.6 kB / 1.11 GB, free: 10.25 MB / 0.8731 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.0001418/0.3809, allocations: 119.2 kB / 1.11 GB, free: 10.12 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0008915/0.3818, allocations: 481 kB / 1.111 GB, free: 9.637 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3819, allocations: 3.938 kB / 1.111 GB, free: 9.633 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003999/0.3823, allocations: 214.9 kB / 1.111 GB, free: 9.426 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007514/0.383, allocations: 163.6 kB / 1.111 GB, free: 9.277 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002703/0.3857, allocations: 1.351 MB / 1.112 GB, free: 7.895 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005182/0.3863, allocations: 0.8899 MB / 1.113 GB, free: 6.977 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002572/0.3865, allocations: 64.58 kB / 1.113 GB, free: 6.91 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.3867, allocations: 35.44 kB / 1.113 GB, free: 6.875 MB / 0.8731 GB Notification: Performance of SimCode: time 6.61e-07/0.3867, allocations: 0 / 1.113 GB, free: 6.875 MB / 0.8731 GB Notification: Performance of Templates: time 0.01278/0.3995, allocations: 6.018 MB / 1.119 GB, free: 0.9414 MB / 0.8731 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches