Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer") translateModel(BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7842/0.7842, allocations: 140.1 MB / 156 MB, free: 5.16 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001047/0.001046, allocations: 184.8 kB / 188.5 MB, free: 15.83 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.59/1.59, allocations: 205.4 MB / 426.3 MB, free: 8.469 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008648/0.0008648, allocations: 86.41 kB / 0.4945 GB, free: 8.422 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001681/0.001681, allocations: 277.2 kB / 0.5729 GB, free: 66.23 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004608/0.0004609, allocations: 16 kB / 0.662 GB, free: 6.828 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3532, allocations: 79.3 MB / 0.7395 GB, free: 46.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1353/0.4885, allocations: 114.9 MB / 0.8517 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.4888, allocations: 79.97 kB / 0.8518 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01851/0.5073, allocations: 7.586 MB / 0.8592 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.783e-06/0.5074, allocations: 0 / 0.8592 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.593e-05/0.5074, allocations: 8 kB / 0.8592 GB, free: 3.57 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001106/0.5085, allocations: 0.6957 MB / 0.8599 GB, free: 2.824 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.5086, allocations: 12.03 kB / 0.8599 GB, free: 2.812 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.5087, allocations: 52.38 kB / 0.8599 GB, free: 2.762 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005913/0.5093, allocations: 416.9 kB / 0.8603 GB, free: 2.312 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.897e-05/0.5094, allocations: 33.38 kB / 0.8604 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.295e-05/0.5094, allocations: 40.31 kB / 0.8604 GB, free: 2.238 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000734/0.5102, allocations: 427 kB / 0.8608 GB, free: 1.797 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.068e-05/0.5102, allocations: 3.938 kB / 0.8608 GB, free: 1.793 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.345e-05/0.5103, allocations: 12 kB / 0.8608 GB, free: 1.781 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.5103, allocations: 12 kB / 0.8608 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005897/0.5109, allocations: 303.8 kB / 0.8611 GB, free: 1.473 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.5128, allocations: 1.367 MB / 0.8624 GB, free: 32 kB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007375/0.5136, allocations: 359.5 kB / 0.8628 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002774/0.5139, allocations: 144.8 kB / 0.8629 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.5139, allocations: 3.938 kB / 0.8629 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003857/0.5143, allocations: 205.3 kB / 0.8631 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.5143, allocations: 0 / 0.8631 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=33): time 0.0008403/0.5151, allocations: 426.7 kB / 0.8635 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.9e-05/0.5152, allocations: 136.5 kB / 0.8637 GB, free: 14.72 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.5157, allocations: 357.7 kB / 0.864 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.139e-05/0.5157, allocations: 37.7 kB / 0.864 GB, free: 14.31 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000171/0.5159, allocations: 232.2 kB / 0.8643 GB, free: 14.09 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.516, allocations: 102.9 kB / 0.8644 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.53e-05/0.516, allocations: 4 kB / 0.8644 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.5162, allocations: 354.8 kB / 0.8647 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002319/0.5164, allocations: 120.6 kB / 0.8648 GB, free: 13.51 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002773/0.5167, allocations: 191 kB / 0.865 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000469/0.5172, allocations: 274.1 kB / 0.8653 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.5172, allocations: 0 / 0.8653 GB, free: 13.02 MB / 0.5417 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0006753/0.5179, allocations: 373.8 kB / 0.8656 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.5179, allocations: 5.562 kB / 0.8656 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.814e-06/0.5179, allocations: 4 kB / 0.8656 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.5179, allocations: 0 / 0.8656 GB, free: 12.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.5182, allocations: 67.89 kB / 0.8657 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.5182, allocations: 4 kB / 0.8657 GB, free: 12.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000228/0.5184, allocations: 51.8 kB / 0.8657 GB, free: 12.52 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.5185, allocations: 15.94 kB / 0.8658 GB, free: 12.5 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.con.offHys.entryTime,con.offHys.entryTime,$PRE.con.onTimer.entryTime,con.onTimer.entryTime,$PRE.con.offTimer.entryTime,con.offTimer.entryTime,con.on,$PRE.con.hys.y,con.hys.y,con.and3.u1,con.con.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002015/0.5187, allocations: 178.9 kB / 0.8659 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.352e-05/0.5188, allocations: 47.41 kB / 0.866 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.64e-05/0.5188, allocations: 48.25 kB / 0.866 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.5189, allocations: 4 kB / 0.866 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.5189, allocations: 0 / 0.866 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.5189, allocations: 0 / 0.866 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001155/0.52, allocations: 0.8728 MB / 0.8669 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.5201, allocations: 0 / 0.8669 GB, free: 11.29 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002468/0.5203, allocations: 55.91 kB / 0.8669 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.5203, allocations: 0 / 0.8669 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.978e-05/0.5204, allocations: 12 kB / 0.8669 GB, free: 11.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5204, allocations: 0 / 0.8669 GB, free: 11.22 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.5204, allocations: 0 / 0.8669 GB, free: 11.22 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008881/0.5213, allocations: 0.5729 MB / 0.8675 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.5214, allocations: 144.5 kB / 0.8676 GB, free: 10.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.5215, allocations: 12 kB / 0.8677 GB, free: 10.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/0.5217, allocations: 31.97 kB / 0.8677 GB, free: 10.43 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.624e-05/0.5218, allocations: 23.97 kB / 0.8677 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.889e-05/0.5218, allocations: 7.984 kB / 0.8677 GB, free: 10.4 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002473/0.5221, allocations: 255.2 kB / 0.868 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5221, allocations: 0 / 0.868 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003355/0.5225, allocations: 83.78 kB / 0.868 GB, free: 10.07 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.con.I.y,cap.T) * Number of discrete variables: 9 (con.on,$whenCondition3,$whenCondition2,$whenCondition1,con.offHys.entryTime,con.onTimer.entryTime,con.offTimer.entryTime,con.hys.y,con.and3.u1) * Number of discrete states: 1 (con.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001468/0.5226, allocations: 119.1 kB / 0.8682 GB, free: 9.941 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005572/0.5232, allocations: 284.7 kB / 0.8684 GB, free: 9.664 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.5232, allocations: 0 / 0.8684 GB, free: 9.664 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002646/0.5235, allocations: 159.8 kB / 0.8686 GB, free: 9.508 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005152/0.524, allocations: 76.17 kB / 0.8686 GB, free: 9.438 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.5255, allocations: 0.9816 MB / 0.8696 GB, free: 8.434 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003875/0.5259, allocations: 0.8152 MB / 0.8704 GB, free: 7.59 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.000184/0.5261, allocations: 43.25 kB / 0.8704 GB, free: 7.543 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.35e-05/0.5261, allocations: 27.44 kB / 0.8705 GB, free: 7.516 MB / 0.5417 GB Notification: Performance of SimCode: time 2.31e-07/0.5261, allocations: 4 kB / 0.8705 GB, free: 7.512 MB / 0.5417 GB Notification: Performance of Templates: time 0.007771/0.5339, allocations: 3.783 MB / 0.8742 GB, free: 3.766 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer.makefile (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.PIDHysteresisTimer.pipe 2>&1)