Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.167/2.167, allocations: 390.3 MB / 402.8 MB, free: 6.695 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.0009646/0.0009646, allocations: 172.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.536/1.536, allocations: 221.3 MB / 0.7915 GB, free: 5.465 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.0009813/0.0009812, allocations: 95.59 kB / 0.9317 GB, free: 5.777 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.993e-05/2.996e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2794, allocations: 143 MB / 1.219 GB, free: 13.57 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9402/1.22, allocations: 157.3 MB / 1.372 GB, free: 12.83 MB / 0.8386 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/1.22, allocations: 92.25 kB / 1.372 GB, free: 12.78 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 0.01726/1.237, allocations: 6.883 MB / 1.379 GB, free: 6.996 MB / 0.8386 GB Notification: Performance of FrontEnd: time 3.706e-06/1.237, allocations: 0 / 1.379 GB, free: 6.996 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.921e-05/1.237, allocations: 9.969 kB / 1.379 GB, free: 6.988 MB / 0.8386 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.0008379/1.238, allocations: 0.5913 MB / 1.38 GB, free: 6.379 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/1.238, allocations: 11.97 kB / 1.38 GB, free: 6.367 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.926e-05/1.238, allocations: 55.39 kB / 1.38 GB, free: 6.312 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005285/1.239, allocations: 379.3 kB / 1.38 GB, free: 5.957 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.852e-05/1.239, allocations: 21.59 kB / 1.38 GB, free: 5.945 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.466e-05/1.239, allocations: 33.22 kB / 1.38 GB, free: 5.922 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005127/1.239, allocations: 342.3 kB / 1.381 GB, free: 5.652 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/1.24, allocations: 0 / 1.381 GB, free: 5.652 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.3e-05/1.24, allocations: 14.81 kB / 1.381 GB, free: 5.648 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/1.24, allocations: 8 kB / 1.381 GB, free: 5.641 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003533/1.24, allocations: 208.2 kB / 1.381 GB, free: 5.512 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001534/1.241, allocations: 1.235 MB / 1.382 GB, free: 4.422 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004992/1.242, allocations: 235.8 kB / 1.382 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/1.242, allocations: 104 kB / 1.382 GB, free: 4.203 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.653e-05/1.242, allocations: 4.188 kB / 1.382 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/1.242, allocations: 54.2 kB / 1.382 GB, free: 4.141 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=22): time 1.893e-06/1.242, allocations: 0 / 1.382 GB, free: 4.141 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22): time 0.0004484/1.243, allocations: 214.5 kB / 1.383 GB, free: 3.98 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/1.243, allocations: 162.1 kB / 1.383 GB, free: 3.789 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003671/1.243, allocations: 301.3 kB / 1.383 GB, free: 3.543 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.903e-05/1.243, allocations: 36.95 kB / 1.383 GB, free: 3.508 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/1.243, allocations: 212.5 kB / 1.383 GB, free: 3.352 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 7.294e-05/1.244, allocations: 73.78 kB / 1.383 GB, free: 3.289 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.74e-05/1.244, allocations: 7.688 kB / 1.383 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001921/1.244, allocations: 340.9 kB / 1.384 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/1.244, allocations: 69.12 kB / 1.384 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/1.244, allocations: 152.2 kB / 1.384 GB, free: 2.781 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001443/1.244, allocations: 77.3 kB / 1.384 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/1.244, allocations: 0 / 1.384 GB, free: 2.738 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004187/1.245, allocations: 266.5 kB / 1.384 GB, free: 2.535 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/1.245, allocations: 4 kB / 1.384 GB, free: 2.531 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/1.245, allocations: 7.953 kB / 1.384 GB, free: 2.523 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/1.245, allocations: 0 / 1.384 GB, free: 2.523 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002666/1.245, allocations: 59.72 kB / 1.384 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/1.245, allocations: 0 / 1.384 GB, free: 2.469 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002366/1.245, allocations: 50.95 kB / 1.384 GB, free: 2.422 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.325e-05/1.245, allocations: 8 kB / 1.384 GB, free: 2.414 MB / 0.8386 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 () * 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.0001378/1.245, allocations: 122.6 kB / 1.384 GB, free: 2.297 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.61e-05/1.246, allocations: 39.53 kB / 1.384 GB, free: 2.258 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001052/1.246, allocations: 37.94 kB / 1.384 GB, free: 2.242 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.222e-06/1.246, allocations: 7.953 kB / 1.385 GB, free: 2.234 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/1.246, allocations: 4 kB / 1.385 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/1.246, allocations: 0 / 1.385 GB, free: 2.23 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005079/1.246, allocations: 414.8 kB / 1.385 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/1.246, allocations: 0 / 1.385 GB, free: 1.867 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002371/1.246, allocations: 47.41 kB / 1.385 GB, free: 1.824 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/1.246, allocations: 4 kB / 1.385 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/1.247, allocations: 0 / 1.385 GB, free: 1.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/1.247, allocations: 3.938 kB / 1.385 GB, free: 1.816 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.247, allocations: 3.953 kB / 1.385 GB, free: 1.812 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006201/1.247, allocations: 425.6 kB / 1.385 GB, free: 1.488 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/1.247, allocations: 143.1 kB / 1.386 GB, free: 1.348 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.416e-05/1.247, allocations: 7.188 kB / 1.386 GB, free: 1.344 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/1.248, allocations: 31.55 kB / 1.386 GB, free: 1.316 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.853e-05/1.248, allocations: 23.3 kB / 1.386 GB, free: 1.297 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/1.248, allocations: 7.984 kB / 1.386 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0002604/1.248, allocations: 245.4 kB / 1.386 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.6e-07/1.248, allocations: 0 / 1.386 GB, free: 1.098 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003584/1.248, allocations: 71.59 kB / 1.386 GB, free: 1.035 MB / 0.8386 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) * 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.0002015/1.249, allocations: 107 kB / 1.386 GB, free: 0.9258 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004065/1.249, allocations: 193 kB / 1.386 GB, free: 0.7969 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.249, allocations: 0 / 1.386 GB, free: 0.7969 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001775/1.249, allocations: 105.7 kB / 1.386 GB, free: 0.7266 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005585/1.25, allocations: 66.92 kB / 1.386 GB, free: 0.6797 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001246/1.251, allocations: 0.5023 MB / 1.387 GB, free: 216 kB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005992/1.252, allocations: 0.7992 MB / 1.388 GB, free: 15.39 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0002219/1.252, allocations: 38.97 kB / 1.388 GB, free: 15.34 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.991e-05/1.252, allocations: 30.86 kB / 1.388 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of SimCode: time 1.393e-06/1.252, allocations: 0 / 1.388 GB, free: 15.32 MB / 0.8542 GB Notification: Performance of Templates: time 0.007702/1.26, allocations: 3.326 MB / 1.391 GB, free: 12.04 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.csv","../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches