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.008448/0.008448, allocations: 102.6 kB / 15.73 MB, free: 6.039 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.001706/0.001706, allocations: 190.7 kB / 16.67 MB, free: 5.953 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.292/2.292, allocations: 390.2 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 67.89 kB / 0.9508 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.147/1.148, allocations: 140.4 MB / 1.088 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPIDWithReset): time 0.005016/1.153, allocations: 4.131 MB / 1.092 GB, free: 2.562 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002877/1.156, allocations: 1.324 MB / 1.093 GB, free: 1.586 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006317/1.157, allocations: 24.5 kB / 1.093 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003783/1.157, allocations: 131.4 kB / 1.093 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000392/1.158, allocations: 186 kB / 1.094 GB, free: 1.344 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008997/1.159, allocations: 411.9 kB / 1.094 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009793/1.159, allocations: 0.9582 MB / 1.095 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006817/1.16, allocations: 458.5 kB / 1.095 GB, free: 344 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004325/1.161, allocations: 341.4 kB / 1.096 GB, free: 152 kB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/1.161, allocations: 329.5 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0001457/1.161, allocations: 90.12 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001515/1.161, allocations: 91.22 kB / 1.096 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0001607/1.162, allocations: 184.5 kB / 1.096 GB, free: 15.83 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000383/1.162, allocations: 391.1 kB / 1.097 GB, free: 15.56 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.001255/1.163, allocations: 1.067 MB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/1.163, allocations: 0 / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.344e-06/1.163, allocations: 0.9062 kB / 1.098 GB, free: 15.11 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.577e-05/1.163, allocations: 0 / 1.098 GB, free: 15.11 MB / 0.8731 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.001924/1.165, allocations: 1.067 MB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/1.165, allocations: 14.5 kB / 1.099 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/1.165, allocations: 84.84 kB / 1.099 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001038/1.166, allocations: 0.5655 MB / 1.099 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.94e-05/1.166, allocations: 49.84 kB / 1.099 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/1.167, allocations: 59.86 kB / 1.1 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/1.168, allocations: 0.6083 MB / 1.1 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.454e-05/1.168, allocations: 5.125 kB / 1.1 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.583e-05/1.168, allocations: 30.62 kB / 1.1 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.661e-05/1.168, allocations: 13.62 kB / 1.1 GB, free: 13.52 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/1.169, allocations: 457.3 kB / 1.101 GB, free: 13.36 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003138/1.172, allocations: 1.989 MB / 1.103 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009943/1.173, allocations: 442 kB / 1.103 GB, free: 11.94 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005449/1.174, allocations: 248.9 kB / 1.103 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 4.661e-05/1.174, allocations: 5.312 kB / 1.103 GB, free: 11.84 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006282/1.174, allocations: 261.8 kB / 1.103 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=49): time 3.166e-06/1.174, allocations: 0 / 1.103 GB, free: 11.71 MB / 0.8731 GB Notification: Performance of matching and sorting (n=49): time 0.00136/1.176, allocations: 0.5829 MB / 1.104 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/1.176, allocations: 61.8 kB / 1.104 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005237/1.176, allocations: 445.6 kB / 1.104 GB, free: 11.18 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/1.176, allocations: 37.03 kB / 1.105 GB, free: 11.14 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002411/1.177, allocations: 321.7 kB / 1.105 GB, free: 10.88 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/1.177, allocations: 167.6 kB / 1.105 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/1.177, allocations: 96.31 kB / 1.105 GB, free: 10.7 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001838/1.177, allocations: 364.5 kB / 1.105 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/1.177, allocations: 166.3 kB / 1.106 GB, free: 10.3 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004453/1.178, allocations: 248.6 kB / 1.106 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008086/1.179, allocations: 455.4 kB / 1.106 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/1.179, allocations: 1.312 kB / 1.106 GB, free: 9.879 MB / 0.8731 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001109/1.18, allocations: 0.5603 MB / 1.107 GB, free: 9.613 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 4.303e-05/1.18, allocations: 38.06 kB / 1.107 GB, free: 9.578 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/1.18, allocations: 2.062 kB / 1.107 GB, free: 9.578 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/1.18, allocations: 4.375 kB / 1.107 GB, free: 9.578 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004961/1.18, allocations: 114.1 kB / 1.107 GB, free: 9.566 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/1.18, allocations: 8.828 kB / 1.107 GB, free: 9.562 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003604/1.181, allocations: 56.56 kB / 1.107 GB, free: 9.531 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/1.181, allocations: 18.42 kB / 1.107 GB, free: 9.527 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.0002566/1.181, allocations: 211.2 kB / 1.107 GB, free: 9.348 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.997e-05/1.181, allocations: 57.69 kB / 1.107 GB, free: 9.316 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001427/1.181, allocations: 66.12 kB / 1.107 GB, free: 9.273 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/1.181, allocations: 4.438 kB / 1.107 GB, free: 9.273 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/1.181, allocations: 9.109 kB / 1.107 GB, free: 9.266 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/1.181, allocations: 2.672 kB / 1.107 GB, free: 9.266 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001977/1.183, allocations: 1.179 MB / 1.109 GB, free: 8.586 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/1.183, allocations: 1.5 kB / 1.109 GB, free: 8.586 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005063/1.184, allocations: 94.28 kB / 1.109 GB, free: 8.578 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.072e-06/1.184, allocations: 9.406 kB / 1.109 GB, free: 8.57 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.852e-05/1.184, allocations: 12.34 kB / 1.109 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/1.184, allocations: 2.719 kB / 1.109 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.184, allocations: 0 / 1.109 GB, free: 8.562 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001454/1.186, allocations: 0.7628 MB / 1.109 GB, free: 8.16 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002031/1.186, allocations: 172.5 kB / 1.11 GB, free: 8.004 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.585e-05/1.186, allocations: 12.44 kB / 1.11 GB, free: 7.996 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000281/1.186, allocations: 24.84 kB / 1.11 GB, free: 7.988 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/1.186, allocations: 36.05 kB / 1.11 GB, free: 7.98 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.154e-05/1.186, allocations: 11.69 kB / 1.11 GB, free: 7.98 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004116/1.187, allocations: 308.5 kB / 1.11 GB, free: 7.828 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.21e-07/1.187, allocations: 0 / 1.11 GB, free: 7.828 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0005231/1.187, allocations: 150.5 kB / 1.11 GB, free: 7.781 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.0001624/1.187, allocations: 117 kB / 1.11 GB, free: 7.68 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0009671/1.188, allocations: 481.6 kB / 1.111 GB, free: 7.48 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/1.188, allocations: 4 kB / 1.111 GB, free: 7.477 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004548/1.189, allocations: 213.9 kB / 1.111 GB, free: 7.402 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007998/1.19, allocations: 163.5 kB / 1.111 GB, free: 7.344 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003197/1.193, allocations: 1.333 MB / 1.112 GB, free: 6.57 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005802/1.193, allocations: 0.8922 MB / 1.113 GB, free: 5.859 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003274/1.194, allocations: 55.91 kB / 1.113 GB, free: 5.848 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001347/1.194, allocations: 42.8 kB / 1.113 GB, free: 5.836 MB / 0.8731 GB Notification: Performance of SimCode: time 7.31e-07/1.194, allocations: 4.688 kB / 1.113 GB, free: 5.832 MB / 0.8731 GB Notification: Performance of Templates: time 0.01542/1.209, allocations: 6 MB / 1.119 GB, free: 5.398 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