Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Using package Buildings with version 1.6 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 1.6.0+build.1/package.mo): time 0.6039/0.6039, allocations: 94.69 MB / 107.3 MB, free: 5.184 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.001201/0.001201, allocations: 175 kB / 130.7 MB, free: 7.551 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.832/1.832, allocations: 170.5 MB / 324.5 MB, free: 3.996 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001655/0.001655, allocations: 107.9 kB / 386.6 MB, free: 16.3 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.508e-05/5.512e-05, allocations: 4 kB / 456 MB, free: 11.77 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.56/0.5601, allocations: 61.51 MB / 0.5054 GB, free: 49.55 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1777/0.7378, allocations: 99.33 MB / 0.6024 GB, free: 12.25 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/0.7382, allocations: 80.55 kB / 0.6024 GB, free: 12.17 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02348/0.7617, allocations: 8.102 MB / 0.6104 GB, free: 4.176 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.7617, allocations: 0 / 0.6104 GB, free: 4.176 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.003e-05/0.7618, allocations: 12.19 kB / 0.6104 GB, free: 4.164 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 69 * Number of variables: 69 Notification: Performance of Generate backend data structure: time 0.001046/0.7628, allocations: 0.6 MB / 0.611 GB, free: 3.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.467e-05/0.7629, allocations: 12.03 kB / 0.611 GB, free: 3.508 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.763, allocations: 47.47 kB / 0.611 GB, free: 3.461 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007087/0.7637, allocations: 372.6 kB / 0.6114 GB, free: 3.059 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/0.7638, allocations: 20.56 kB / 0.6114 GB, free: 3.039 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.803e-05/0.7638, allocations: 28 kB / 0.6114 GB, free: 3.012 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005855/0.7644, allocations: 313.4 kB / 0.6117 GB, free: 2.691 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.7645, allocations: 0 / 0.6117 GB, free: 2.691 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.966e-05/0.7645, allocations: 12.66 kB / 0.6117 GB, free: 2.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.7645, allocations: 8 kB / 0.6117 GB, free: 2.672 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003795/0.7649, allocations: 190.2 kB / 0.6119 GB, free: 2.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.7667, allocations: 0.9978 MB / 0.6129 GB, free: 1.414 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005039/0.7672, allocations: 222.7 kB / 0.6131 GB, free: 1.191 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001618/0.7674, allocations: 97.89 kB / 0.6132 GB, free: 1.094 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.395e-05/0.7675, allocations: 8.188 kB / 0.6132 GB, free: 1.086 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.036e-05/0.7675, allocations: 38.69 kB / 0.6132 GB, free: 1.039 MB / 426.7 MB Notification: Performance of pre-optimization done (n=21): time 1.422e-06/0.7675, allocations: 0 / 0.6132 GB, free: 1.039 MB / 426.7 MB Notification: Performance of matching and sorting (n=21): time 0.0004296/0.7679, allocations: 208 kB / 0.6134 GB, free: 0.832 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.483e-05/0.768, allocations: 133.7 kB / 0.6136 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003415/0.7684, allocations: 287.7 kB / 0.6138 GB, free: 396 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.23e-05/0.7684, allocations: 29.7 kB / 0.6139 GB, free: 360 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.7686, allocations: 204.3 kB / 0.6141 GB, free: 152 kB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.789e-05/0.7687, allocations: 74.86 kB / 0.6141 GB, free: 76 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.012e-05/0.7687, allocations: 0 / 0.6141 GB, free: 76 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001954/0.7689, allocations: 350.8 kB / 0.6145 GB, free: 15.72 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.769, allocations: 64 kB / 0.6145 GB, free: 15.66 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.7692, allocations: 114.6 kB / 0.6146 GB, free: 15.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.7693, allocations: 75.84 kB / 0.6147 GB, free: 15.46 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.7694, allocations: 0 / 0.6147 GB, free: 15.46 MB / 442.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003563/0.7697, allocations: 230.3 kB / 0.6149 GB, free: 15.23 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.7697, allocations: 4 kB / 0.6149 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.7698, allocations: 1.312 kB / 0.6149 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.7698, allocations: 3 kB / 0.6149 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002205/0.77, allocations: 47.97 kB / 0.615 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.344e-05/0.77, allocations: 0 / 0.615 GB, free: 15.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.7702, allocations: 43.8 kB / 0.615 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.703e-05/0.7703, allocations: 4 kB / 0.615 GB, free: 15.13 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.con.hys.y,con.hys.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 25 * 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.0001096/0.7704, allocations: 129.7 kB / 0.6152 GB, free: 15 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.7705, allocations: 31.62 kB / 0.6152 GB, free: 14.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.73e-05/0.7706, allocations: 39.05 kB / 0.6152 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.7706, allocations: 4 kB / 0.6152 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.7706, allocations: 0 / 0.6152 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.7706, allocations: 0 / 0.6152 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005492/0.7711, allocations: 417.2 kB / 0.6156 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.7712, allocations: 0 / 0.6156 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002414/0.7714, allocations: 46.45 kB / 0.6157 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.7714, allocations: 0 / 0.6157 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.54e-05/0.7715, allocations: 11.98 kB / 0.6157 GB, free: 14.42 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.7715, allocations: 0 / 0.6157 GB, free: 14.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7715, allocations: 4 kB / 0.6157 GB, free: 14.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006106/0.7721, allocations: 406.9 kB / 0.6161 GB, free: 14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001472/0.7722, allocations: 132.7 kB / 0.6162 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.971e-05/0.7723, allocations: 0 / 0.6162 GB, free: 13.85 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.7725, allocations: 28.05 kB / 0.6162 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.473e-05/0.7726, allocations: 19.97 kB / 0.6162 GB, free: 13.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.031e-05/0.7726, allocations: 7.938 kB / 0.6163 GB, free: 13.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000253/0.7729, allocations: 234.2 kB / 0.6165 GB, free: 13.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7729, allocations: 0 / 0.6165 GB, free: 13.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003285/0.7732, allocations: 63.78 kB / 0.6165 GB, free: 13.5 MB / 442.7 MB 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 (21): * Single equations (assignments): 21 * 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.0001834/0.7734, allocations: 107.2 kB / 0.6166 GB, free: 13.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0003426/0.7738, allocations: 165.5 kB / 0.6168 GB, free: 13.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.7738, allocations: 4.062 kB / 0.6168 GB, free: 13.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001472/0.7739, allocations: 99.8 kB / 0.6169 GB, free: 13.13 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000442/0.7744, allocations: 61.05 kB / 0.617 GB, free: 13.07 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.7755, allocations: 499.7 kB / 0.6174 GB, free: 12.57 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004576/0.7759, allocations: 0.795 MB / 0.6182 GB, free: 11.75 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000137/0.7761, allocations: 34.17 kB / 0.6182 GB, free: 11.72 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.703e-05/0.7762, allocations: 19.44 kB / 0.6183 GB, free: 11.7 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.7762, allocations: 8 kB / 0.6183 GB, free: 11.7 MB / 442.7 MB Notification: Performance of Templates: time 0.00719/0.7834, allocations: 2.974 MB / 0.6212 GB, free: 8.789 MB / 442.7 MB make -j1 -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)