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.465/1.465, allocations: 249.3 MB / 261.9 MB, free: 5.867 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.00105/0.00105, allocations: 178.6 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.432/1.432, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.0008059/0.0008061, allocations: 91.77 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.747e-05/3.75e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.249, allocations: 106.3 MB / 0.8918 GB, free: 6.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8419/1.091, allocations: 138.4 MB / 1.027 GB, free: 12.41 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002835/1.091, allocations: 81.7 kB / 1.027 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.01724/1.109, allocations: 6.943 MB / 1.034 GB, free: 6.535 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.174e-06/1.109, allocations: 0 / 1.034 GB, free: 6.535 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 2.648e-05/1.109, allocations: 12 kB / 1.034 GB, free: 6.523 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.0008163/1.109, allocations: 0.5888 MB / 1.034 GB, free: 5.914 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/1.11, allocations: 8.031 kB / 1.034 GB, free: 5.906 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.68e-05/1.11, allocations: 47.44 kB / 1.034 GB, free: 5.859 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/1.11, allocations: 387 kB / 1.035 GB, free: 5.496 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.787e-05/1.11, allocations: 27.72 kB / 1.035 GB, free: 5.48 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.338e-05/1.11, allocations: 24.5 kB / 1.035 GB, free: 5.465 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005382/1.111, allocations: 343.1 kB / 1.035 GB, free: 5.199 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/1.111, allocations: 0 / 1.035 GB, free: 5.199 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/1.111, allocations: 14.5 kB / 1.035 GB, free: 5.195 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/1.111, allocations: 11.98 kB / 1.035 GB, free: 5.184 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003439/1.111, allocations: 205.1 kB / 1.035 GB, free: 5.059 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/1.113, allocations: 1.238 MB / 1.037 GB, free: 3.969 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004541/1.113, allocations: 244.4 kB / 1.037 GB, free: 3.805 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/1.113, allocations: 101.2 kB / 1.037 GB, free: 3.746 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/1.113, allocations: 4.188 kB / 1.037 GB, free: 3.742 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.513e-05/1.113, allocations: 34.69 kB / 1.037 GB, free: 3.699 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=22): time 1.272e-06/1.113, allocations: 0 / 1.037 GB, free: 3.699 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22): time 0.0004044/1.114, allocations: 230.8 kB / 1.037 GB, free: 3.523 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/1.114, allocations: 160.4 kB / 1.037 GB, free: 3.332 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003125/1.114, allocations: 301 kB / 1.038 GB, free: 3.09 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/1.114, allocations: 32.94 kB / 1.038 GB, free: 3.055 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/1.115, allocations: 216.2 kB / 1.038 GB, free: 2.895 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 6.099e-05/1.115, allocations: 69.73 kB / 1.038 GB, free: 2.836 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.163e-05/1.115, allocations: 3.375 kB / 1.038 GB, free: 2.836 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001304/1.115, allocations: 348.2 kB / 1.038 GB, free: 2.504 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/1.115, allocations: 73.31 kB / 1.038 GB, free: 2.461 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/1.115, allocations: 148.3 kB / 1.038 GB, free: 2.328 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001353/1.115, allocations: 80.16 kB / 1.039 GB, free: 2.277 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/1.115, allocations: 4 kB / 1.039 GB, free: 2.273 MB / 0.6511 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003696/1.116, allocations: 252.3 kB / 1.039 GB, free: 2.086 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/1.116, allocations: 8 kB / 1.039 GB, free: 2.078 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/1.116, allocations: 3.984 kB / 1.039 GB, free: 2.074 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/1.116, allocations: 4 kB / 1.039 GB, free: 2.07 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002359/1.116, allocations: 55.86 kB / 1.039 GB, free: 2.016 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/1.116, allocations: 4.125 kB / 1.039 GB, free: 2.012 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/1.116, allocations: 58.16 kB / 1.039 GB, free: 1.961 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.84e-05/1.116, allocations: 4 kB / 1.039 GB, free: 1.957 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.000108/1.116, allocations: 121.8 kB / 1.039 GB, free: 1.84 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.208e-05/1.116, allocations: 31.62 kB / 1.039 GB, free: 1.809 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.25e-05/1.116, allocations: 43.62 kB / 1.039 GB, free: 1.785 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/1.116, allocations: 4 kB / 1.039 GB, free: 1.781 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.471e-06/1.116, allocations: 3.953 kB / 1.039 GB, free: 1.777 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/1.116, allocations: 8.016 kB / 1.039 GB, free: 1.77 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000425/1.117, allocations: 410.7 kB / 1.04 GB, free: 1.41 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/1.117, allocations: 4 kB / 1.04 GB, free: 1.406 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002275/1.117, allocations: 47.34 kB / 1.04 GB, free: 1.363 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.425e-06/1.117, allocations: 0 / 1.04 GB, free: 1.363 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.031e-05/1.117, allocations: 7.188 kB / 1.04 GB, free: 1.359 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/1.117, allocations: 7.938 kB / 1.04 GB, free: 1.352 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/1.117, allocations: 0 / 1.04 GB, free: 1.352 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005213/1.118, allocations: 429.8 kB / 1.04 GB, free: 1.023 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001272/1.118, allocations: 135.9 kB / 1.04 GB, free: 0.8906 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.246e-05/1.118, allocations: 7.438 kB / 1.04 GB, free: 0.8867 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002144/1.118, allocations: 28.03 kB / 1.04 GB, free: 0.8594 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.211e-05/1.118, allocations: 18.28 kB / 1.04 GB, free: 0.8438 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/1.118, allocations: 10.88 kB / 1.04 GB, free: 0.8359 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0002231/1.118, allocations: 238.8 kB / 1.04 GB, free: 0.6484 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.6e-07/1.118, allocations: 0 / 1.04 GB, free: 0.6484 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003065/1.119, allocations: 82.95 kB / 1.04 GB, free: 0.5742 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.0001426/1.119, allocations: 110.4 kB / 1.041 GB, free: 472 kB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003217/1.119, allocations: 184.1 kB / 1.041 GB, free: 352 kB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/1.119, allocations: 0 / 1.041 GB, free: 352 kB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/1.119, allocations: 103.5 kB / 1.041 GB, free: 280 kB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004117/1.12, allocations: 63.11 kB / 1.041 GB, free: 232 kB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009409/1.121, allocations: 0.5092 MB / 1.041 GB, free: 15.76 MB / 0.6667 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003153/1.121, allocations: 0.7992 MB / 1.042 GB, free: 14.93 MB / 0.6667 GB Notification: Performance of simCode: alias equations: time 0.0001444/1.121, allocations: 42.94 kB / 1.042 GB, free: 14.89 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.22e-05/1.121, allocations: 27.44 kB / 1.042 GB, free: 14.86 MB / 0.6667 GB Notification: Performance of SimCode: time 2.31e-07/1.121, allocations: 0 / 1.042 GB, free: 14.86 MB / 0.6667 GB Notification: Performance of Templates: time 0.007178/1.129, allocations: 3.333 MB / 1.046 GB, free: 11.58 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