Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002258/0.002258, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00292/0.00292, allocations: 197.9 kB / 16.14 MB, free: 6.688 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.631/1.631, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.973/2.973, allocations: 472.6 MB / 0.7447 GB, free: 4.961 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001526/0.001526, allocations: 61.84 kB / 0.9114 GB, free: 33.76 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4629/0.4644, allocations: 159.9 MB / 1.068 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.005646/0.4701, allocations: 3.052 MB / 1.07 GB, free: 7.867 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002214/0.4724, allocations: 0.8961 MB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005678/0.473, allocations: 15.94 kB / 1.071 GB, free: 6.949 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003794/0.4734, allocations: 47.58 kB / 1.071 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0004519/0.4739, allocations: 71.42 kB / 1.071 GB, free: 6.832 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007075/0.4746, allocations: 191.1 kB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006836/0.4753, allocations: 459.2 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004218/0.4757, allocations: 197.2 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003396/0.4761, allocations: 159.2 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003007/0.4764, allocations: 167 kB / 1.073 GB, free: 5.68 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.956e-05/0.4764, allocations: 20 kB / 1.073 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.518e-05/0.4765, allocations: 20 kB / 1.073 GB, free: 5.641 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.13e-05/0.4766, allocations: 63.7 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.4768, allocations: 182.8 kB / 1.073 GB, free: 5.398 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004772/0.4773, allocations: 478.5 kB / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4773, allocations: 0 / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.052e-06/0.4773, allocations: 0 / 1.073 GB, free: 4.93 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.528e-05/0.4773, allocations: 4 kB / 1.073 GB, free: 4.926 MB / 0.8262 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.001439/0.4788, allocations: 0.7185 MB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.4788, allocations: 8.031 kB / 1.074 GB, free: 4.152 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000141/0.479, allocations: 52.38 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006755/0.4796, allocations: 392.3 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.4797, allocations: 21.03 kB / 1.074 GB, free: 3.656 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.977e-05/0.4797, allocations: 32.38 kB / 1.075 GB, free: 3.625 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006314/0.4804, allocations: 341.4 kB / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/0.4804, allocations: 0 / 1.075 GB, free: 3.266 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.4805, allocations: 12 kB / 1.075 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.138e-05/0.4805, allocations: 8 kB / 1.075 GB, free: 3.246 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004879/0.481, allocations: 218.1 kB / 1.075 GB, free: 3.031 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001773/0.4828, allocations: 1.186 MB / 1.076 GB, free: 1.77 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000586/0.4834, allocations: 234.7 kB / 1.076 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002212/0.4836, allocations: 121.6 kB / 1.077 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.084e-05/0.4836, allocations: 8 kB / 1.077 GB, free: 1.406 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.4837, allocations: 34.88 kB / 1.077 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=22): time 1.292e-06/0.4837, allocations: 0 / 1.077 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of matching and sorting (n=22): time 0.0006758/0.4843, allocations: 289.1 kB / 1.077 GB, free: 1.074 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/0.4844, allocations: 106.8 kB / 1.077 GB, free: 0.9453 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003749/0.4848, allocations: 341.6 kB / 1.077 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.4848, allocations: 41.64 kB / 1.077 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.485, allocations: 220.2 kB / 1.078 GB, free: 352 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 7.694e-05/0.4851, allocations: 74.91 kB / 1.078 GB, free: 276 kB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.884e-05/0.4852, allocations: 49.7 kB / 1.078 GB, free: 220 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001545/0.4854, allocations: 342.8 kB / 1.078 GB, free: 15.87 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.4856, allocations: 79.95 kB / 1.078 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002396/0.4858, allocations: 144.2 kB / 1.078 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003989/0.4862, allocations: 208.3 kB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.4862, allocations: 4 kB / 1.078 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005561/0.4868, allocations: 285.8 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.25e-05/0.4868, allocations: 9.719 kB / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.4869, allocations: 0 / 1.079 GB, free: 15.11 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.903e-05/0.4869, allocations: 4 kB / 1.079 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.4871, allocations: 51.91 kB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.989e-06/0.4871, allocations: 4 kB / 1.079 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002023/0.4873, allocations: 31.77 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.025e-05/0.4874, allocations: 12 kB / 1.079 GB, free: 15 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (con.hys.y,$PRE.con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * 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.0001822/0.4876, allocations: 162.3 kB / 1.079 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.267e-05/0.4876, allocations: 39.53 kB / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.13e-05/0.4877, allocations: 43.34 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.4877, allocations: 0 / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.878e-06/0.4878, allocations: 4 kB / 1.079 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.4878, allocations: 4 kB / 1.079 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004626/0.4882, allocations: 397.2 kB / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.4883, allocations: 0 / 1.079 GB, free: 14.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002274/0.4885, allocations: 47.92 kB / 1.079 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.4885, allocations: 3.984 kB / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/0.4885, allocations: 4 kB / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4885, allocations: 0 / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.4885, allocations: 0 / 1.079 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006994/0.4892, allocations: 423.5 kB / 1.08 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.4894, allocations: 132.7 kB / 1.08 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.628e-05/0.4895, allocations: 8 kB / 1.08 GB, free: 13.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.4897, allocations: 23.86 kB / 1.08 GB, free: 13.64 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.648e-05/0.4897, allocations: 19.97 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.4898, allocations: 4 kB / 1.08 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002342/0.49, allocations: 247.1 kB / 1.08 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.49, allocations: 0 / 1.08 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003228/0.4903, allocations: 63.84 kB / 1.08 GB, free: 13.31 MB / 0.8419 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) * Number of clocked states: 0 () * 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 (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.0001293/0.4905, allocations: 107.2 kB / 1.08 GB, free: 13.2 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0004499/0.4909, allocations: 207.7 kB / 1.081 GB, free: 13 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4909, allocations: 0 / 1.081 GB, free: 13 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.4911, allocations: 100.8 kB / 1.081 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000623/0.4918, allocations: 78.62 kB / 1.081 GB, free: 12.83 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.4931, allocations: 0.8371 MB / 1.082 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.4934, allocations: 0.7875 MB / 1.082 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001512/0.4936, allocations: 38.95 kB / 1.082 GB, free: 11.11 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.143e-05/0.4937, allocations: 23.44 kB / 1.082 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of SimCode: time 3.41e-07/0.4937, allocations: 0 / 1.082 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of Templates: time 0.007584/0.5013, allocations: 2.979 MB / 1.085 GB, free: 8.133 MB / 0.8419 GB make -j1 -f Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)