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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) 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) Running command: translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") translateModel(Buildings.Controls.Continuous.Examples.PIDHysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|con.u_s|con.u_m|con.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.45/1.45, allocations: 249.5 MB / 257 MB, free: 6.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001237/0.001237, allocations: 176.9 kB / 316.3 MB, free: 3.312 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.3 MB / 0.5671 GB, free: 15.91 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009199/0.00092, allocations: 106.2 kB / 0.6715 GB, free: 5.02 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.715e-05/1.718e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2578, allocations: 106.3 MB / 0.8852 GB, free: 12.31 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9026/1.161, allocations: 138.7 MB / 1.021 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000296/1.161, allocations: 78.89 kB / 1.021 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.0179/1.179, allocations: 6.889 MB / 1.027 GB, free: 9.602 MB / 0.6511 GB Notification: Performance of FrontEnd: time 3.387e-06/1.179, allocations: 4 kB / 1.027 GB, free: 9.598 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.488e-05/1.179, allocations: 7.938 kB / 1.027 GB, free: 9.59 MB / 0.6511 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.00088/1.18, allocations: 0.5901 MB / 1.028 GB, free: 8.98 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/1.18, allocations: 12.03 kB / 1.028 GB, free: 8.969 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001053/1.18, allocations: 51.44 kB / 1.028 GB, free: 8.918 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005364/1.181, allocations: 381.5 kB / 1.028 GB, free: 8.562 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.388e-05/1.181, allocations: 8 kB / 1.028 GB, free: 8.555 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.45e-05/1.181, allocations: 16 kB / 1.028 GB, free: 8.539 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003673/1.181, allocations: 190.9 kB / 1.029 GB, free: 8.426 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004555/1.181, allocations: 301 kB / 1.029 GB, free: 8.176 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/1.181, allocations: 3.938 kB / 1.029 GB, free: 8.172 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.253e-05/1.182, allocations: 0 / 1.029 GB, free: 8.172 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/1.182, allocations: 8 kB / 1.029 GB, free: 8.164 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/1.183, allocations: 1.175 MB / 1.03 GB, free: 7.125 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004179/1.184, allocations: 229.1 kB / 1.03 GB, free: 6.977 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/1.184, allocations: 94.67 kB / 1.03 GB, free: 6.918 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/1.184, allocations: 7.688 kB / 1.03 GB, free: 6.914 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.023e-05/1.184, allocations: 30.75 kB / 1.03 GB, free: 6.875 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=22): time 1.543e-06/1.184, allocations: 0 / 1.03 GB, free: 6.875 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22): time 0.000409/1.184, allocations: 215.3 kB / 1.031 GB, free: 6.711 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.865e-05/1.184, allocations: 158.2 kB / 1.031 GB, free: 6.52 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002923/1.185, allocations: 264.6 kB / 1.031 GB, free: 6.309 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.717e-05/1.185, allocations: 29.7 kB / 1.031 GB, free: 6.273 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/1.185, allocations: 217.1 kB / 1.031 GB, free: 6.113 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.727e-05/1.185, allocations: 78.53 kB / 1.031 GB, free: 6.043 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/1.185, allocations: 0 / 1.031 GB, free: 6.043 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001531/1.185, allocations: 344.2 kB / 1.032 GB, free: 5.711 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/1.185, allocations: 67.5 kB / 1.032 GB, free: 5.676 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001496/1.185, allocations: 134.2 kB / 1.032 GB, free: 5.555 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/1.185, allocations: 81.88 kB / 1.032 GB, free: 5.508 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/1.185, allocations: 0 / 1.032 GB, free: 5.508 MB / 0.6511 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003376/1.186, allocations: 230.5 kB / 1.032 GB, free: 5.332 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/1.186, allocations: 11.98 kB / 1.032 GB, free: 5.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/1.186, allocations: 3.984 kB / 1.032 GB, free: 5.316 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/1.186, allocations: 4 kB / 1.032 GB, free: 5.312 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/1.186, allocations: 51.91 kB / 1.032 GB, free: 5.262 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/1.186, allocations: 4 kB / 1.032 GB, free: 5.258 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002357/1.186, allocations: 39.84 kB / 1.032 GB, free: 5.219 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.321e-05/1.186, allocations: 15.94 kB / 1.032 GB, free: 5.207 MB / 0.6511 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.0001119/1.187, allocations: 115.5 kB / 1.032 GB, free: 5.09 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.704e-05/1.187, allocations: 31.62 kB / 1.032 GB, free: 5.059 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.729e-05/1.187, allocations: 36.19 kB / 1.032 GB, free: 5.035 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/1.187, allocations: 0 / 1.032 GB, free: 5.035 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/1.187, allocations: 4 kB / 1.032 GB, free: 5.031 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/1.187, allocations: 4 kB / 1.032 GB, free: 5.027 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003956/1.187, allocations: 357.4 kB / 1.033 GB, free: 4.719 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/1.187, allocations: 7.922 kB / 1.033 GB, free: 4.711 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002308/1.187, allocations: 47.86 kB / 1.033 GB, free: 4.668 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/1.187, allocations: 0 / 1.033 GB, free: 4.668 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/1.187, allocations: 8.031 kB / 1.033 GB, free: 4.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/1.187, allocations: 0 / 1.033 GB, free: 4.66 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.96e-06/1.187, allocations: 7.922 kB / 1.033 GB, free: 4.652 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000525/1.188, allocations: 408.8 kB / 1.033 GB, free: 4.34 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/1.188, allocations: 133.9 kB / 1.033 GB, free: 4.207 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.698e-05/1.188, allocations: 0 / 1.033 GB, free: 4.207 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002056/1.188, allocations: 27.97 kB / 1.033 GB, free: 4.18 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.002e-05/1.188, allocations: 19.84 kB / 1.033 GB, free: 4.164 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/1.188, allocations: 8.062 kB / 1.033 GB, free: 4.156 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002009/1.189, allocations: 214.5 kB / 1.034 GB, free: 3.992 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.4e-07/1.189, allocations: 0 / 1.034 GB, free: 3.992 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003138/1.189, allocations: 67.69 kB / 1.034 GB, free: 3.926 MB / 0.6511 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.0001525/1.189, allocations: 99.23 kB / 1.034 GB, free: 3.82 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003163/1.189, allocations: 174.7 kB / 1.034 GB, free: 3.711 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.189, allocations: 256 / 1.034 GB, free: 3.711 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001283/1.19, allocations: 96.92 kB / 1.034 GB, free: 3.645 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/1.19, allocations: 65.12 kB / 1.034 GB, free: 3.598 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001028/1.191, allocations: 0.4982 MB / 1.035 GB, free: 3.137 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/1.192, allocations: 0.799 MB / 1.035 GB, free: 2.312 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001473/1.192, allocations: 39.27 kB / 1.035 GB, free: 2.273 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.202e-05/1.192, allocations: 23.44 kB / 1.035 GB, free: 2.25 MB / 0.6511 GB Notification: Performance of SimCode: time 3.61e-07/1.192, allocations: 0 / 1.035 GB, free: 2.25 MB / 0.6511 GB Notification: Performance of Templates: time 0.006705/1.199, allocations: 2.994 MB / 1.038 GB, free: 15.3 MB / 0.6667 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.makefile (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 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Controls_Continuous_Examples_PIDHysteresis.csv","../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches