Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 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.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.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.0008876/0.0008875, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.005221/0.005221, allocations: 168.9 kB / 16.26 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.554/1.554, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.543/1.543, allocations: 252 MB / 0.5105 GB, free: 4.652 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006275/0.0006276, allocations: 19.98 kB / 0.6249 GB, free: 0.75 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5401/0.5407, allocations: 106.3 MB / 0.7287 GB, free: 11.44 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.003412/0.5442, allocations: 2.638 MB / 0.7313 GB, free: 8.785 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.001595/0.5458, allocations: 0.928 MB / 0.7322 GB, free: 7.848 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002283/0.5461, allocations: 15.94 kB / 0.7322 GB, free: 7.832 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001901/0.5463, allocations: 47.58 kB / 0.7323 GB, free: 7.785 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.5464, allocations: 67.48 kB / 0.7323 GB, free: 7.719 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004713/0.5469, allocations: 198.6 kB / 0.7325 GB, free: 7.527 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0004046/0.5473, allocations: 455.2 kB / 0.7329 GB, free: 7.082 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003184/0.5477, allocations: 207.2 kB / 0.7331 GB, free: 6.879 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001722/0.5478, allocations: 135.2 kB / 0.7333 GB, free: 6.746 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.548, allocations: 139 kB / 0.7334 GB, free: 6.609 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.713e-05/0.5481, allocations: 12 kB / 0.7334 GB, free: 6.598 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 2.998e-05/0.5481, allocations: 8 kB / 0.7334 GB, free: 6.59 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.845e-05/0.5482, allocations: 51.7 kB / 0.7335 GB, free: 6.539 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001318/0.5483, allocations: 192.5 kB / 0.7337 GB, free: 6.344 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003485/0.5487, allocations: 434.3 kB / 0.7341 GB, free: 5.918 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.5487, allocations: 0 / 0.7341 GB, free: 5.918 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.482e-06/0.5487, allocations: 0 / 0.7341 GB, free: 5.918 MB / 0.545 GB Notification: Performance of Transformations before backend: time 6.362e-06/0.5487, allocations: 4 kB / 0.7341 GB, free: 5.914 MB / 0.545 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.0009349/0.5496, allocations: 0.6578 MB / 0.7347 GB, free: 5.211 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.5497, allocations: 12.03 kB / 0.7347 GB, free: 5.199 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.804e-05/0.5498, allocations: 48.38 kB / 0.7348 GB, free: 5.152 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005119/0.5503, allocations: 388.3 kB / 0.7351 GB, free: 4.734 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.5503, allocations: 29.03 kB / 0.7352 GB, free: 4.707 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.5504, allocations: 24.38 kB / 0.7352 GB, free: 4.684 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005621/0.5509, allocations: 345.4 kB / 0.7355 GB, free: 4.32 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.466e-05/0.551, allocations: 3.938 kB / 0.7355 GB, free: 4.316 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.719e-05/0.551, allocations: 12 kB / 0.7355 GB, free: 4.305 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.551, allocations: 8 kB / 0.7355 GB, free: 4.297 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004525/0.5515, allocations: 222.1 kB / 0.7358 GB, free: 4.078 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001422/0.5529, allocations: 1.19 MB / 0.7369 GB, free: 2.812 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005569/0.5535, allocations: 235.7 kB / 0.7371 GB, free: 2.574 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002128/0.5537, allocations: 119.9 kB / 0.7373 GB, free: 2.457 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.878e-05/0.5537, allocations: 4 kB / 0.7373 GB, free: 2.453 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.5538, allocations: 34.94 kB / 0.7373 GB, free: 2.41 MB / 0.545 GB Notification: Performance of pre-optimization done (n=22): time 1.453e-06/0.5538, allocations: 0 / 0.7373 GB, free: 2.41 MB / 0.545 GB Notification: Performance of matching and sorting (n=22): time 0.0006441/0.5544, allocations: 307.8 kB / 0.7376 GB, free: 2.105 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.5545, allocations: 106.8 kB / 0.7377 GB, free: 1.977 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003324/0.5548, allocations: 337.7 kB / 0.738 GB, free: 1.641 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.5549, allocations: 33.7 kB / 0.738 GB, free: 1.602 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.555, allocations: 216.2 kB / 0.7382 GB, free: 1.383 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 6.442e-05/0.5551, allocations: 82.84 kB / 0.7383 GB, free: 1.301 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.5551, allocations: 29.7 kB / 0.7384 GB, free: 1.266 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.5553, allocations: 342.8 kB / 0.7387 GB, free: 0.9219 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001747/0.5554, allocations: 79.95 kB / 0.7388 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002122/0.5557, allocations: 143.6 kB / 0.7389 GB, free: 0.6758 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003637/0.556, allocations: 214.8 kB / 0.7391 GB, free: 456 kB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.5561, allocations: 0 / 0.7391 GB, free: 456 kB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004811/0.5565, allocations: 294.6 kB / 0.7394 GB, free: 156 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.5566, allocations: 7.938 kB / 0.7394 GB, free: 148 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.5566, allocations: 4 kB / 0.7394 GB, free: 144 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.5566, allocations: 0 / 0.7394 GB, free: 144 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002139/0.5568, allocations: 55.91 kB / 0.7394 GB, free: 88 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.5568, allocations: 4.188 kB / 0.7395 GB, free: 84 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001787/0.557, allocations: 39.81 kB / 0.7395 GB, free: 44 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.704e-05/0.557, allocations: 8 kB / 0.7395 GB, free: 36 kB / 0.545 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.000161/0.5572, allocations: 165.7 kB / 0.7397 GB, free: 15.86 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.683e-05/0.5573, allocations: 39.53 kB / 0.7397 GB, free: 15.82 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.531e-05/0.5574, allocations: 51.28 kB / 0.7397 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.5574, allocations: 4 kB / 0.7397 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.5574, allocations: 0 / 0.7397 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.506e-06/0.5574, allocations: 0 / 0.7397 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003741/0.5578, allocations: 397.2 kB / 0.7401 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.5578, allocations: 0 / 0.7401 GB, free: 15.33 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000209/0.558, allocations: 39.98 kB / 0.7402 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.558, allocations: 3.984 kB / 0.7402 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.674e-05/0.558, allocations: 4 kB / 0.7402 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.558, allocations: 3.938 kB / 0.7402 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.558, allocations: 4 kB / 0.7402 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006314/0.5587, allocations: 427 kB / 0.7406 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.5588, allocations: 132.6 kB / 0.7407 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.666e-05/0.5589, allocations: 4 kB / 0.7407 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/0.559, allocations: 28.05 kB / 0.7407 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.128e-05/0.5591, allocations: 19.97 kB / 0.7408 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.5591, allocations: 4 kB / 0.7408 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002167/0.5593, allocations: 239.2 kB / 0.741 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5593, allocations: 0 / 0.741 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002945/0.5596, allocations: 67.78 kB / 0.7411 GB, free: 14.34 MB / 0.5606 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.0001086/0.5598, allocations: 107.2 kB / 0.7412 GB, free: 14.22 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0004152/0.5602, allocations: 209 kB / 0.7414 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.5602, allocations: 0 / 0.7414 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.5604, allocations: 104.3 kB / 0.7415 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005349/0.5609, allocations: 81.25 kB / 0.7415 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.5621, allocations: 0.8842 MB / 0.7424 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003101/0.5625, allocations: 0.7875 MB / 0.7432 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001484/0.5626, allocations: 46.92 kB / 0.7432 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.913e-05/0.5627, allocations: 23.44 kB / 0.7432 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of SimCode: time 3.7e-07/0.5627, allocations: 4 kB / 0.7432 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of Templates: time 0.006951/0.5697, allocations: 2.933 MB / 0.7461 GB, free: 9.137 MB / 0.5606 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) Environment - environmentSimulation: