Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_9_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.00129/0.00129, allocations: 100.1 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.001536/0.001536, 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 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.257/2.257, allocations: 390.3 MB / 0.6653 GB, free: 2.891 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003172/0.0003173, allocations: 8 kB / 0.8145 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6421/0.6424, allocations: 142.3 MB / 0.9535 GB, free: 8.07 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis): time 0.002785/0.6453, allocations: 2.514 MB / 0.956 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001277/0.6466, allocations: 0.843 MB / 0.9568 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002191/0.6468, allocations: 11.59 kB / 0.9568 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 6.021e-05/0.6469, allocations: 28.84 kB / 0.9568 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003898/0.6473, allocations: 108.3 kB / 0.9569 GB, free: 5.32 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003451/0.6476, allocations: 163.6 kB / 0.9571 GB, free: 5.207 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003503/0.648, allocations: 302.9 kB / 0.9574 GB, free: 5 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002571/0.6482, allocations: 146 kB / 0.9575 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001654/0.6484, allocations: 139.1 kB / 0.9576 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.6486, allocations: 122.8 kB / 0.9578 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.53e-05/0.6486, allocations: 11.78 kB / 0.9578 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 3.469e-05/0.6487, allocations: 10.81 kB / 0.9578 GB, free: 4.742 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.477e-05/0.6487, allocations: 54.67 kB / 0.9578 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.8e-05/0.6488, allocations: 90.95 kB / 0.9579 GB, free: 4.625 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002616/0.649, allocations: 379.9 kB / 0.9583 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.6491, allocations: 4 kB / 0.9583 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.415e-06/0.6491, allocations: 0 / 0.9583 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.953e-06/0.6491, allocations: 1.344 kB / 0.9583 GB, free: 4.332 MB / 0.7169 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.0009173/0.65, allocations: 0.6499 MB / 0.9589 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.65, allocations: 9.094 kB / 0.9589 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.279e-05/0.6501, allocations: 51.2 kB / 0.959 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004901/0.6506, allocations: 379.9 kB / 0.9593 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.186e-05/0.6507, allocations: 20.53 kB / 0.9594 GB, free: 3.371 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.203e-05/0.6507, allocations: 31.28 kB / 0.9594 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.6512, allocations: 335.8 kB / 0.9597 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.507e-05/0.6513, allocations: 0 / 0.9597 GB, free: 3.117 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.6513, allocations: 11 kB / 0.9597 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.077e-05/0.6513, allocations: 11.31 kB / 0.9597 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.6518, allocations: 221.6 kB / 0.9599 GB, free: 3 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001319/0.6531, allocations: 1.189 MB / 0.9611 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005549/0.6537, allocations: 238.9 kB / 0.9613 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.722e-05/0.6537, allocations: 3.188 kB / 0.9613 GB, free: 1.832 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.015e-05/0.6537, allocations: 43.7 kB / 0.9614 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=22): time 1.403e-06/0.6537, allocations: 1 kB / 0.9614 GB, free: 1.781 MB / 0.7169 GB Notification: Performance of matching and sorting (n=22): time 0.0006713/0.6544, allocations: 300.4 kB / 0.9617 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.6545, allocations: 105.5 kB / 0.9618 GB, free: 1.5 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003452/0.6548, allocations: 340.9 kB / 0.9621 GB, free: 1.277 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.6549, allocations: 31.8 kB / 0.9621 GB, free: 1.242 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.655, allocations: 217.5 kB / 0.9623 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 5.059e-05/0.6551, allocations: 80.22 kB / 0.9624 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.168e-05/0.6551, allocations: 1 kB / 0.9624 GB, free: 0.9727 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.972e-05/0.6552, allocations: 347 kB / 0.9627 GB, free: 0.6328 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001751/0.6553, allocations: 79.73 kB / 0.9628 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.6556, allocations: 145.2 kB / 0.963 GB, free: 484 kB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.6558, allocations: 98.67 kB / 0.9631 GB, free: 432 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.6558, allocations: 0 / 0.9631 GB, free: 432 kB / 0.7169 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000496/0.6563, allocations: 274.9 kB / 0.9633 GB, free: 284 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.6563, allocations: 11.84 kB / 0.9633 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.6563, allocations: 1.344 kB / 0.9633 GB, free: 280 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.6563, allocations: 7.453 kB / 0.9633 GB, free: 276 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.6566, allocations: 57.41 kB / 0.9634 GB, free: 260 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.6566, allocations: 6.094 kB / 0.9634 GB, free: 256 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.6568, allocations: 42.06 kB / 0.9634 GB, free: 232 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.152e-05/0.6568, allocations: 11.72 kB / 0.9634 GB, free: 228 kB / 0.7169 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.0001365/0.657, allocations: 158.3 kB / 0.9636 GB, free: 80 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.381e-05/0.657, allocations: 31.41 kB / 0.9636 GB, free: 64 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.815e-05/0.6571, allocations: 40.27 kB / 0.9637 GB, free: 32 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.6571, allocations: 6.516 kB / 0.9637 GB, free: 28 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.6571, allocations: 0 / 0.9637 GB, free: 28 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.6571, allocations: 5.016 kB / 0.9637 GB, free: 24 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004538/0.6576, allocations: 394.8 kB / 0.9641 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.479e-06/0.6576, allocations: 5.125 kB / 0.9641 GB, free: 15.67 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002267/0.6579, allocations: 40.05 kB / 0.9641 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.6579, allocations: 6.094 kB / 0.9641 GB, free: 15.66 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.6579, allocations: 5.25 kB / 0.9641 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.6579, allocations: 5.391 kB / 0.9641 GB, free: 15.65 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.6579, allocations: 3.953 kB / 0.9641 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007038/0.6586, allocations: 436.5 kB / 0.9645 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.6587, allocations: 127.4 kB / 0.9647 GB, free: 15.23 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.6588, allocations: 6.438 kB / 0.9647 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001903/0.659, allocations: 26.59 kB / 0.9647 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.615e-05/0.6591, allocations: 21.44 kB / 0.9647 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.6591, allocations: 11.45 kB / 0.9647 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002215/0.6593, allocations: 229.6 kB / 0.9649 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.6593, allocations: 0 / 0.9649 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0003327/0.6596, allocations: 69.47 kB / 0.965 GB, free: 15.02 MB / 0.7325 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.0001267/0.6598, allocations: 105.1 kB / 0.9651 GB, free: 14.93 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004693/0.6603, allocations: 206.8 kB / 0.9653 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.6603, allocations: 1.219 kB / 0.9653 GB, free: 14.84 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.6605, allocations: 94.12 kB / 0.9654 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004917/0.661, allocations: 71.72 kB / 0.9655 GB, free: 14.77 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00134/0.6623, allocations: 0.8325 MB / 0.9663 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.6627, allocations: 0.8042 MB / 0.9671 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001575/0.6629, allocations: 45.22 kB / 0.9671 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.974e-05/0.663, allocations: 29.53 kB / 0.9671 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of SimCode: time 5.71e-07/0.663, allocations: 0 / 0.9671 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of Templates: time 0.006928/0.6699, allocations: 2.854 MB / 0.9699 GB, free: 11.97 MB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.csv","../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches