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/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.27/2.27, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001299/0.001299, allocations: 177.2 kB / 498.1 MB, free: 5.707 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.581/1.581, allocations: 223.2 MB / 0.7948 GB, free: 18.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001058, allocations: 98.27 kB / 0.9346 GB, free: 7.145 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003951/0.0003949, allocations: 9.297 kB / 1.084 GB, free: 212.7 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3798/0.3802, allocations: 142.4 MB / 1.223 GB, free: 89.58 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2442/0.6245, allocations: 156.5 MB / 1.376 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.6249, allocations: 95.94 kB / 1.376 GB, free: 12.74 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01905/0.6439, allocations: 6.913 MB / 1.383 GB, free: 5.801 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.896e-06/0.644, allocations: 0 / 1.383 GB, free: 5.801 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 5.607e-05/0.6441, allocations: 8 kB / 1.383 GB, free: 5.793 MB / 0.8855 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.001519/0.6456, allocations: 0.6582 MB / 1.383 GB, free: 5.082 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.6457, allocations: 12.03 kB / 1.383 GB, free: 5.07 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002348/0.6459, allocations: 51.39 kB / 1.383 GB, free: 5.02 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008434/0.6468, allocations: 375.3 kB / 1.384 GB, free: 4.617 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.221e-05/0.6468, allocations: 24.66 kB / 1.384 GB, free: 4.594 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.516e-05/0.6469, allocations: 28 kB / 1.384 GB, free: 4.566 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007759/0.6477, allocations: 366 kB / 1.384 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.33e-05/0.6477, allocations: 0 / 1.384 GB, free: 4.176 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.45e-05/0.6478, allocations: 12 kB / 1.384 GB, free: 4.164 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.6478, allocations: 8.219 kB / 1.384 GB, free: 4.156 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006028/0.6484, allocations: 254 kB / 1.384 GB, free: 3.906 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002155/0.6506, allocations: 1.252 MB / 1.386 GB, free: 2.578 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007232/0.6513, allocations: 283.3 kB / 1.386 GB, free: 2.293 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.701e-05/0.6514, allocations: 192 / 1.386 GB, free: 2.293 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.632e-05/0.6514, allocations: 50.64 kB / 1.386 GB, free: 2.234 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=22): time 1.263e-06/0.6514, allocations: 0 / 1.386 GB, free: 2.234 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22): time 0.0008647/0.6523, allocations: 341.7 kB / 1.386 GB, free: 1.898 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.6524, allocations: 158.2 kB / 1.386 GB, free: 1.707 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004357/0.6529, allocations: 312.8 kB / 1.387 GB, free: 1.395 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 3.99e-05/0.6529, allocations: 29.7 kB / 1.387 GB, free: 1.359 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001938/0.6531, allocations: 212.3 kB / 1.387 GB, free: 1.148 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 8.395e-05/0.6532, allocations: 70.92 kB / 1.387 GB, free: 1.078 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.404e-05/0.6532, allocations: 4 kB / 1.387 GB, free: 1.074 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001777/0.6534, allocations: 346.8 kB / 1.387 GB, free: 0.7266 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.6536, allocations: 95.89 kB / 1.387 GB, free: 0.6328 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003024/0.654, allocations: 176.6 kB / 1.388 GB, free: 444 kB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.6542, allocations: 91.98 kB / 1.388 GB, free: 352 kB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.6542, allocations: 0 / 1.388 GB, free: 352 kB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005995/0.6548, allocations: 299 kB / 1.388 GB, free: 48 kB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.639e-05/0.6549, allocations: 8.625 kB / 1.388 GB, free: 40 kB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.228e-06/0.6549, allocations: 128 / 1.388 GB, free: 40 kB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.821e-05/0.6549, allocations: 11.95 kB / 1.388 GB, free: 28 kB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/0.6552, allocations: 51.97 kB / 1.388 GB, free: 15.97 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.6552, allocations: 4 kB / 1.388 GB, free: 15.97 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002713/0.6555, allocations: 47.66 kB / 1.388 GB, free: 15.93 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.6555, allocations: 12 kB / 1.388 GB, free: 15.91 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (29): * Single equations (assignments): 29 * 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.00023/0.6558, allocations: 158.9 kB / 1.388 GB, free: 15.75 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.243e-05/0.6558, allocations: 39.61 kB / 1.388 GB, free: 15.71 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.656, allocations: 39.47 kB / 1.388 GB, free: 15.67 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.656, allocations: 7.953 kB / 1.388 GB, free: 15.66 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.656, allocations: 0 / 1.388 GB, free: 15.66 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.656, allocations: 0 / 1.388 GB, free: 15.66 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005424/0.6565, allocations: 417.2 kB / 1.389 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.6566, allocations: 0 / 1.389 GB, free: 15.2 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002501/0.6568, allocations: 55.86 kB / 1.389 GB, free: 15.15 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.6568, allocations: 0 / 1.389 GB, free: 15.15 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.6569, allocations: 7.984 kB / 1.389 GB, free: 15.14 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.6569, allocations: 0 / 1.389 GB, free: 15.14 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.6569, allocations: 7.953 kB / 1.389 GB, free: 15.13 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008233/0.6577, allocations: 483.4 kB / 1.389 GB, free: 14.65 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/0.6579, allocations: 132.7 kB / 1.389 GB, free: 14.5 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.425e-05/0.658, allocations: 8 kB / 1.389 GB, free: 14.49 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/0.6582, allocations: 32.03 kB / 1.389 GB, free: 14.46 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.817e-05/0.6583, allocations: 15.97 kB / 1.389 GB, free: 14.45 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.6584, allocations: 15.95 kB / 1.389 GB, free: 14.43 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0002909/0.6586, allocations: 243.2 kB / 1.39 GB, free: 14.2 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6587, allocations: 0 / 1.39 GB, free: 14.2 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.0003689/0.659, allocations: 71.75 kB / 1.39 GB, free: 14.13 MB / 0.9011 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.0001773/0.6592, allocations: 118.9 kB / 1.39 GB, free: 14 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.0005207/0.6597, allocations: 228 kB / 1.39 GB, free: 13.78 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.6598, allocations: 0 / 1.39 GB, free: 13.78 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.66, allocations: 120.6 kB / 1.39 GB, free: 13.66 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005398/0.6605, allocations: 77.44 kB / 1.39 GB, free: 13.58 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001562/0.6621, allocations: 0.8607 MB / 1.391 GB, free: 12.7 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.6625, allocations: 0.8069 MB / 1.392 GB, free: 11.87 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0001755/0.6627, allocations: 34.95 kB / 1.392 GB, free: 11.83 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.006e-05/0.6628, allocations: 27.44 kB / 1.392 GB, free: 11.8 MB / 0.9011 GB Notification: Performance of SimCode: time 2.474e-06/0.6628, allocations: 0 / 1.392 GB, free: 11.8 MB / 0.9011 GB Notification: Performance of Templates: time 0.008201/0.671, allocations: 3.321 MB / 1.395 GB, free: 8.52 MB / 0.9011 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