Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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) 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 Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.746/1.746, allocations: 289.9 MB / 297.4 MB, free: 6.406 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 172.9 kB / 366.7 MB, free: 1.637 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.74/1.74, allocations: 205.2 MB / 0.626 GB, free: 7.156 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009407/0.0009409, allocations: 90.16 kB / 0.74 GB, free: 39.53 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.461e-05/3.455e-05, allocations: 4 kB / 0.8598 GB, free: 12.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6471/0.6472, allocations: 116.3 MB / 0.9733 GB, free: 76.19 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1771/0.8243, allocations: 145 MB / 1.115 GB, free: 5.125 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.8246, allocations: 79.94 kB / 1.115 GB, free: 5.047 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 0.01793/0.8425, allocations: 6.86 MB / 1.122 GB, free: 14.22 MB / 0.7292 GB Notification: Performance of FrontEnd: time 1.403e-06/0.8426, allocations: 0 / 1.122 GB, free: 14.22 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 3.185e-05/0.8426, allocations: 8 kB / 1.122 GB, free: 14.21 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0008544/0.8435, allocations: 0.5959 MB / 1.122 GB, free: 13.57 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.8435, allocations: 8.031 kB / 1.122 GB, free: 13.57 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.8437, allocations: 47.44 kB / 1.122 GB, free: 13.52 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005541/0.8442, allocations: 388.2 kB / 1.123 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.8443, allocations: 15.5 kB / 1.123 GB, free: 13.09 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.179e-05/0.8443, allocations: 18.16 kB / 1.123 GB, free: 13.07 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003558/0.8447, allocations: 185.5 kB / 1.123 GB, free: 12.89 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.8452, allocations: 302.1 kB / 1.123 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.8452, allocations: 0 / 1.123 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.8452, allocations: 0 / 1.123 GB, free: 12.57 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.8452, allocations: 8 kB / 1.123 GB, free: 12.56 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001766/0.847, allocations: 1.174 MB / 1.124 GB, free: 11.32 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005206/0.8476, allocations: 227.2 kB / 1.125 GB, free: 11.09 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001626/0.8477, allocations: 97.23 kB / 1.125 GB, free: 10.99 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.8478, allocations: 192 / 1.125 GB, free: 10.99 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.8478, allocations: 38.75 kB / 1.125 GB, free: 10.94 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=22): time 9.82e-07/0.8478, allocations: 4 kB / 1.125 GB, free: 10.94 MB / 0.7292 GB Notification: Performance of matching and sorting (n=22): time 0.000411/0.8482, allocations: 201.2 kB / 1.125 GB, free: 10.74 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/0.8483, allocations: 158.2 kB / 1.125 GB, free: 10.55 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003073/0.8487, allocations: 266.4 kB / 1.125 GB, free: 10.28 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.362e-05/0.8487, allocations: 29.7 kB / 1.125 GB, free: 10.25 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.8489, allocations: 212 kB / 1.126 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 6.865e-05/0.8489, allocations: 74.84 kB / 1.126 GB, free: 9.961 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.254e-05/0.849, allocations: 6.656 kB / 1.126 GB, free: 9.957 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.8491, allocations: 346.8 kB / 1.126 GB, free: 9.609 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.8493, allocations: 68 kB / 1.126 GB, free: 9.543 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001744/0.8494, allocations: 131.7 kB / 1.126 GB, free: 9.387 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001341/0.8496, allocations: 81.88 kB / 1.126 GB, free: 9.309 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.8496, allocations: 0 / 1.126 GB, free: 9.309 MB / 0.7292 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003665/0.85, allocations: 237 kB / 1.126 GB, free: 9.07 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.85, allocations: 7.984 kB / 1.126 GB, free: 9.062 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.85, allocations: 4 kB / 1.126 GB, free: 9.059 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.85, allocations: 0 / 1.126 GB, free: 9.059 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002541/0.8503, allocations: 63.59 kB / 1.127 GB, free: 9 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.8503, allocations: 2.172 kB / 1.127 GB, free: 9 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.8505, allocations: 35.83 kB / 1.127 GB, free: 8.965 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.437e-05/0.8506, allocations: 15.89 kB / 1.127 GB, free: 8.949 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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.0001138/0.8507, allocations: 118.5 kB / 1.127 GB, free: 8.828 MB / 0.7292 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003213/0.851, allocations: 195.9 kB / 1.127 GB, free: 8.633 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.119e-05/0.8511, allocations: 31.62 kB / 1.127 GB, free: 8.602 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.898e-05/0.8512, allocations: 35.06 kB / 1.127 GB, free: 8.566 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.8512, allocations: 4 kB / 1.127 GB, free: 8.562 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8512, allocations: 3.953 kB / 1.127 GB, free: 8.559 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.256e-06/0.8512, allocations: 3.984 kB / 1.127 GB, free: 8.555 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004625/0.8517, allocations: 365.8 kB / 1.127 GB, free: 8.16 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.8517, allocations: 0 / 1.127 GB, free: 8.16 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002479/0.852, allocations: 51.91 kB / 1.127 GB, free: 8.109 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.852, allocations: 0 / 1.127 GB, free: 8.109 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.852, allocations: 4 kB / 1.127 GB, free: 8.105 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.852, allocations: 0 / 1.127 GB, free: 8.105 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.852, allocations: 0 / 1.127 GB, free: 8.105 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005165/0.8525, allocations: 404.8 kB / 1.128 GB, free: 7.695 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.8527, allocations: 132.7 kB / 1.128 GB, free: 7.547 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.467e-05/0.8527, allocations: 4 kB / 1.128 GB, free: 7.543 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000216/0.853, allocations: 28.05 kB / 1.128 GB, free: 7.516 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.765e-05/0.853, allocations: 15.97 kB / 1.128 GB, free: 7.5 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.794e-05/0.853, allocations: 11.98 kB / 1.128 GB, free: 7.488 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0002072/0.8533, allocations: 212.5 kB / 1.128 GB, free: 7.281 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8533, allocations: 0 / 1.128 GB, free: 7.281 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0003274/0.8536, allocations: 67.69 kB / 1.128 GB, free: 7.215 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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 Backend phase and start with SimCode phase: time 0.0007669/0.8544, allocations: 0.9446 MB / 1.129 GB, free: 6.242 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0003057/0.8547, allocations: 176.1 kB / 1.129 GB, free: 6.07 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.8547, allocations: 0 / 1.129 GB, free: 6.07 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.8548, allocations: 88.23 kB / 1.129 GB, free: 5.984 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004436/0.8553, allocations: 68.11 kB / 1.129 GB, free: 5.922 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.8565, allocations: 0.5668 MB / 1.13 GB, free: 5.324 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.8568, allocations: 0.7997 MB / 1.131 GB, free: 4.5 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 0.0001472/0.857, allocations: 37.28 kB / 1.131 GB, free: 4.469 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001687/0.8571, allocations: 123.4 kB / 1.131 GB, free: 4.348 MB / 0.7292 GB Notification: Performance of SimCode: time 2.71e-07/0.8572, allocations: 0 / 1.131 GB, free: 4.348 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02385/0.881, allocations: 5.847 MB / 1.137 GB, free: 14.64 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002117/0.8813, allocations: 143.5 kB / 1.137 GB, free: 14.44 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.983/2.864, allocations: 0 / 1.137 GB, free: 14.44 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_8_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)