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.413/1.413, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001189/0.001189, allocations: 184.8 kB / 326.5 MB, free: 2.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.4 MB / 0.5775 GB, free: 20.25 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.0009158/0.0009158, allocations: 95.64 kB / 0.6821 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003505, allocations: 7 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2175/0.2179, allocations: 106.3 MB / 0.9001 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2087/0.4266, allocations: 138.5 MB / 1.035 GB, free: 5.332 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002671/0.4269, allocations: 79.95 kB / 1.035 GB, free: 5.254 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01778/0.4447, allocations: 6.967 MB / 1.042 GB, free: 14.26 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.914e-06/0.4447, allocations: 0 / 1.042 GB, free: 14.26 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.229e-05/0.4448, allocations: 8 kB / 1.042 GB, free: 14.25 MB / 0.698 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.001033/0.4458, allocations: 0.6508 MB / 1.043 GB, free: 13.55 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4459, allocations: 8.031 kB / 1.043 GB, free: 13.54 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.495e-05/0.446, allocations: 55.38 kB / 1.043 GB, free: 13.49 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005586/0.4466, allocations: 383.3 kB / 1.043 GB, free: 13.07 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.439e-05/0.4466, allocations: 20.66 kB / 1.043 GB, free: 13.05 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.7e-05/0.4467, allocations: 35.91 kB / 1.043 GB, free: 13.02 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006101/0.4473, allocations: 367 kB / 1.044 GB, free: 12.63 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.4473, allocations: 0 / 1.044 GB, free: 12.63 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.584e-05/0.4473, allocations: 12 kB / 1.044 GB, free: 12.62 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.986e-06/0.4474, allocations: 7.984 kB / 1.044 GB, free: 12.61 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004954/0.4479, allocations: 250.1 kB / 1.044 GB, free: 12.36 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.4495, allocations: 1.241 MB / 1.045 GB, free: 11.05 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006213/0.4501, allocations: 287.2 kB / 1.045 GB, free: 10.76 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 3.419e-05/0.4501, allocations: 4.188 kB / 1.045 GB, free: 10.75 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.4502, allocations: 38.69 kB / 1.045 GB, free: 10.71 MB / 0.698 GB Notification: Performance of pre-optimization done (n=22): time 1.343e-06/0.4502, allocations: 4 kB / 1.045 GB, free: 10.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=22): time 0.0006972/0.4509, allocations: 349 kB / 1.046 GB, free: 10.36 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.714e-05/0.451, allocations: 158.2 kB / 1.046 GB, free: 10.17 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003235/0.4513, allocations: 308.9 kB / 1.046 GB, free: 9.859 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.631e-05/0.4514, allocations: 33.7 kB / 1.046 GB, free: 9.82 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001404/0.4515, allocations: 208.3 kB / 1.046 GB, free: 9.613 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 6.934e-05/0.4516, allocations: 82.84 kB / 1.047 GB, free: 9.531 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.4516, allocations: 4 kB / 1.047 GB, free: 9.527 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001389/0.4518, allocations: 346.8 kB / 1.047 GB, free: 9.18 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.452, allocations: 91.95 kB / 1.047 GB, free: 9.09 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002344/0.4522, allocations: 167.6 kB / 1.047 GB, free: 8.898 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002007/0.4524, allocations: 96.64 kB / 1.047 GB, free: 8.805 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.4524, allocations: 0 / 1.047 GB, free: 8.805 MB / 0.698 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000496/0.4529, allocations: 303.2 kB / 1.047 GB, free: 8.504 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.4529, allocations: 4 kB / 1.048 GB, free: 8.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.453, allocations: 8.109 kB / 1.048 GB, free: 8.492 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.453, allocations: 4 kB / 1.048 GB, free: 8.488 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002494/0.4532, allocations: 59.91 kB / 1.048 GB, free: 8.43 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.488e-06/0.4533, allocations: 3.953 kB / 1.048 GB, free: 8.426 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002093/0.4535, allocations: 39.83 kB / 1.048 GB, free: 8.387 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.911e-05/0.4535, allocations: 15.94 kB / 1.048 GB, free: 8.371 MB / 0.698 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.000173/0.4537, allocations: 165.8 kB / 1.048 GB, free: 8.199 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.118e-05/0.4537, allocations: 35.53 kB / 1.048 GB, free: 8.164 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.663e-05/0.4538, allocations: 43.47 kB / 1.048 GB, free: 8.121 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.4539, allocations: 0 / 1.048 GB, free: 8.121 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.4539, allocations: 0 / 1.048 GB, free: 8.121 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4539, allocations: 3.953 kB / 1.048 GB, free: 8.117 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004321/0.4543, allocations: 417.3 kB / 1.048 GB, free: 7.66 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4543, allocations: 0 / 1.048 GB, free: 7.66 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.4545, allocations: 51.91 kB / 1.048 GB, free: 7.609 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.4546, allocations: 4.031 kB / 1.048 GB, free: 7.605 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.081e-05/0.4546, allocations: 8 kB / 1.048 GB, free: 7.598 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.4546, allocations: 0 / 1.048 GB, free: 7.598 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.4546, allocations: 0 / 1.048 GB, free: 7.598 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000703/0.4553, allocations: 484.1 kB / 1.049 GB, free: 7.113 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.4555, allocations: 136.6 kB / 1.049 GB, free: 6.961 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.244e-05/0.4555, allocations: 8 kB / 1.049 GB, free: 6.953 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.4557, allocations: 39.91 kB / 1.049 GB, free: 6.914 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.02e-05/0.4558, allocations: 19.97 kB / 1.049 GB, free: 6.895 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.4558, allocations: 4 kB / 1.049 GB, free: 6.891 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002311/0.4561, allocations: 247.2 kB / 1.049 GB, free: 6.652 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4561, allocations: 0 / 1.049 GB, free: 6.652 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003135/0.4564, allocations: 71.84 kB / 1.049 GB, free: 6.582 MB / 0.698 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.0001331/0.4565, allocations: 115.1 kB / 1.049 GB, free: 6.457 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004574/0.457, allocations: 228 kB / 1.05 GB, free: 6.234 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.457, allocations: 0 / 1.05 GB, free: 6.234 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.4572, allocations: 119.8 kB / 1.05 GB, free: 6.117 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004663/0.4577, allocations: 75.41 kB / 1.05 GB, free: 6.039 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.459, allocations: 0.8699 MB / 1.051 GB, free: 5.145 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.4593, allocations: 0.8031 MB / 1.051 GB, free: 4.316 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001459/0.4595, allocations: 38.95 kB / 1.051 GB, free: 4.277 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.779e-05/0.4596, allocations: 27.42 kB / 1.051 GB, free: 4.25 MB / 0.698 GB Notification: Performance of SimCode: time 3.01e-07/0.4596, allocations: 0 / 1.051 GB, free: 4.25 MB / 0.698 GB Notification: Performance of Templates: time 0.006673/0.4663, allocations: 3.318 MB / 1.055 GB, free: 0.9648 MB / 0.698 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