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.001112/0.001112, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009682/0.0009683, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.759/1.759, allocations: 205.4 MB / 222.1 MB, free: 5.652 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.629/1.629, allocations: 251.9 MB / 0.51 GB, free: 4.852 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.0005189/0.000519, allocations: 12 kB / 0.6241 GB, free: 1.188 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.77/0.7706, allocations: 106.3 MB / 0.728 GB, free: 11.43 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.PIDHysteresis): time 0.005565/0.7762, allocations: 2.488 MB / 0.7304 GB, free: 8.934 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.003149/0.7794, allocations: 0.8972 MB / 0.7313 GB, free: 8.027 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000651/0.7801, allocations: 11.94 kB / 0.7313 GB, free: 8.016 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.7803, allocations: 27.66 kB / 0.7313 GB, free: 7.988 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.000914/0.7813, allocations: 111.6 kB / 0.7314 GB, free: 7.879 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009481/0.7822, allocations: 159.7 kB / 0.7316 GB, free: 7.723 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0009411/0.7832, allocations: 304.1 kB / 0.7319 GB, free: 7.426 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004492/0.7837, allocations: 145 kB / 0.732 GB, free: 7.277 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004184/0.7841, allocations: 139.3 kB / 0.7321 GB, free: 7.141 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002996/0.7844, allocations: 127.2 kB / 0.7323 GB, free: 7.016 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 6.773e-05/0.7845, allocations: 8 kB / 0.7323 GB, free: 7.008 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 5.675e-05/0.7846, allocations: 12 kB / 0.7323 GB, free: 6.996 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 9.327e-05/0.7847, allocations: 47.78 kB / 0.7323 GB, free: 6.949 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.7848, allocations: 93.39 kB / 0.7324 GB, free: 6.852 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0005192/0.7853, allocations: 369 kB / 0.7328 GB, free: 6.492 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.7853, allocations: 4 kB / 0.7328 GB, free: 6.488 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7853, allocations: 0 / 0.7328 GB, free: 6.488 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.686e-05/0.7854, allocations: 0 / 0.7328 GB, free: 6.488 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.001985/0.7874, allocations: 0.6534 MB / 0.7334 GB, free: 5.789 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 6.079e-05/0.7874, allocations: 12.03 kB / 0.7334 GB, free: 5.777 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.7877, allocations: 51.38 kB / 0.7335 GB, free: 5.727 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009898/0.7887, allocations: 375.4 kB / 0.7338 GB, free: 5.316 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.641e-05/0.7887, allocations: 28.66 kB / 0.7338 GB, free: 5.289 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.404e-05/0.7888, allocations: 24 kB / 0.7339 GB, free: 5.266 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009217/0.7898, allocations: 337.1 kB / 0.7342 GB, free: 4.91 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.373e-05/0.7898, allocations: 7.891 kB / 0.7342 GB, free: 4.902 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.316e-05/0.7899, allocations: 16 kB / 0.7342 GB, free: 4.887 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.79, allocations: 12 kB / 0.7342 GB, free: 4.875 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007696/0.7908, allocations: 214.1 kB / 0.7344 GB, free: 4.668 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002457/0.7932, allocations: 1.186 MB / 0.7356 GB, free: 3.402 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008729/0.7941, allocations: 235.3 kB / 0.7358 GB, free: 3.164 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.7942, allocations: 4.188 kB / 0.7358 GB, free: 3.16 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.247e-05/0.7942, allocations: 34.75 kB / 0.7358 GB, free: 3.117 MB / 0.545 GB Notification: Performance of pre-optimization done (n=22): time 1.894e-06/0.7943, allocations: 0 / 0.7358 GB, free: 3.117 MB / 0.545 GB Notification: Performance of matching and sorting (n=22): time 0.001117/0.7954, allocations: 306.4 kB / 0.7361 GB, free: 2.816 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.882e-05/0.7955, allocations: 106.8 kB / 0.7362 GB, free: 2.688 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005744/0.7961, allocations: 337.7 kB / 0.7366 GB, free: 2.352 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.28e-05/0.7962, allocations: 29.7 kB / 0.7366 GB, free: 2.316 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003125/0.7965, allocations: 228.2 kB / 0.7368 GB, free: 2.09 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001039/0.7966, allocations: 74.86 kB / 0.7369 GB, free: 2.016 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-05/0.7967, allocations: 4 kB / 0.7369 GB, free: 2.012 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0002606/0.7969, allocations: 346.8 kB / 0.7372 GB, free: 1.664 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003279/0.7973, allocations: 75.95 kB / 0.7373 GB, free: 1.59 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.7977, allocations: 147.6 kB / 0.7374 GB, free: 1.418 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003776/0.7981, allocations: 92.02 kB / 0.7375 GB, free: 1.328 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.7981, allocations: 0 / 0.7375 GB, free: 1.328 MB / 0.545 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0009087/0.799, allocations: 278 kB / 0.7378 GB, free: 1.051 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.712e-05/0.7991, allocations: 12.03 kB / 0.7378 GB, free: 1.039 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.7991, allocations: 0 / 0.7378 GB, free: 1.039 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.189e-05/0.7991, allocations: 4 kB / 0.7378 GB, free: 1.035 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004018/0.7995, allocations: 51.91 kB / 0.7378 GB, free: 0.9844 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.534e-05/0.7996, allocations: 11.89 kB / 0.7379 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003562/0.8, allocations: 39.7 kB / 0.7379 GB, free: 0.9336 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/0.8, allocations: 16 kB / 0.7379 GB, free: 0.918 MB / 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 ($PRE.con.hys.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002722/0.8003, allocations: 153.8 kB / 0.7381 GB, free: 0.7578 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001781/0.8005, allocations: 43.52 kB / 0.7381 GB, free: 0.7148 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001299/0.8006, allocations: 39.36 kB / 0.7381 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.8007, allocations: 0 / 0.7381 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.8007, allocations: 0 / 0.7381 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.249e-05/0.8007, allocations: 7.938 kB / 0.7381 GB, free: 0.6641 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007217/0.8014, allocations: 393.2 kB / 0.7385 GB, free: 236 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.8015, allocations: 0 / 0.7385 GB, free: 236 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003756/0.8018, allocations: 51.97 kB / 0.7386 GB, free: 184 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/0.8019, allocations: 4 kB / 0.7386 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.8019, allocations: 0 / 0.7386 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.617e-06/0.8019, allocations: 0 / 0.7386 GB, free: 180 kB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.8019, allocations: 3.984 kB / 0.7386 GB, free: 176 kB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.8031, allocations: 437.2 kB / 0.739 GB, free: 15.73 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.8033, allocations: 132.6 kB / 0.7391 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.8034, allocations: 4 kB / 0.7391 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003622/0.8038, allocations: 23.98 kB / 0.7391 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.622e-05/0.8039, allocations: 19.97 kB / 0.7392 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.21e-05/0.804, allocations: 8.062 kB / 0.7392 GB, free: 15.52 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0004122/0.8044, allocations: 239.2 kB / 0.7394 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.1e-07/0.8044, allocations: 0 / 0.7394 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0006023/0.805, allocations: 59.84 kB / 0.7395 GB, free: 15.23 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 (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.0001817/0.8052, allocations: 111.1 kB / 0.7396 GB, free: 15.11 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0008045/0.806, allocations: 201.6 kB / 0.7398 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.087e-06/0.8061, allocations: 0 / 0.7398 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000417/0.8065, allocations: 107.8 kB / 0.7399 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008028/0.8073, allocations: 69.64 kB / 0.7399 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002154/0.8095, allocations: 0.8484 MB / 0.7408 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007001/0.8102, allocations: 0.8031 MB / 0.7415 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002651/0.8105, allocations: 38.95 kB / 0.7416 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.8106, allocations: 27.44 kB / 0.7416 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of SimCode: time 5.51e-07/0.8107, allocations: 3.938 kB / 0.7416 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of Templates: time 0.01178/0.8224, allocations: 2.838 MB / 0.7444 GB, free: 10.17 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: