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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 1.934/1.934, allocations: 390.4 MB / 397.7 MB, free: 11.18 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.001005/0.001005, allocations: 181.2 kB / 490.8 MB, free: 1.91 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.298/1.298, allocations: 221.3 MB / 0.7863 GB, free: 13.65 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.0008972/0.0008977, allocations: 101.5 kB / 0.9264 GB, free: 14.17 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.222e-06/6.252e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/0.2229, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7032/0.9262, allocations: 156.5 MB / 1.364 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.9265, allocations: 88.78 kB / 1.364 GB, free: 17.07 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.01694/0.9434, allocations: 6.542 MB / 1.371 GB, free: 16.62 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.175e-05/0.9435, allocations: 7.188 kB / 1.371 GB, free: 16.62 MB / 0.823 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.0008134/0.9443, allocations: 0.6012 MB / 1.371 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.9444, allocations: 13.34 kB / 1.371 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.581e-05/0.9445, allocations: 48.17 kB / 1.372 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000519/0.945, allocations: 379.8 kB / 1.372 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.945, allocations: 9.875 kB / 1.372 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.9451, allocations: 16.91 kB / 1.372 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003617/0.9455, allocations: 185.9 kB / 1.372 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004816/0.946, allocations: 298.2 kB / 1.372 GB, free: 31.78 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.946, allocations: 9.156 kB / 1.372 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.866e-05/0.946, allocations: 0 / 1.372 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.946, allocations: 7.906 kB / 1.372 GB, free: 31.77 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001508/0.9476, allocations: 1.178 MB / 1.374 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002968/0.9479, allocations: 153.3 kB / 1.374 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.948, allocations: 99.66 kB / 1.374 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.44e-05/0.9481, allocations: 6.047 kB / 1.374 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.9481, allocations: 37.25 kB / 1.374 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=22): time 1.302e-06/0.9481, allocations: 0 / 1.374 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of matching and sorting (n=22): time 0.0003792/0.9485, allocations: 205.9 kB / 1.374 GB, free: 31.02 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/0.9485, allocations: 161.8 kB / 1.374 GB, free: 30.82 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002756/0.9488, allocations: 268.8 kB / 1.374 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.463e-05/0.9488, allocations: 26.83 kB / 1.374 GB, free: 30.7 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.245e-05/0.9489, allocations: 176.7 kB / 1.375 GB, free: 30.57 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.597e-05/0.949, allocations: 74.56 kB / 1.375 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.236e-05/0.949, allocations: 0 / 1.375 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.9491, allocations: 343.3 kB / 1.375 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.9492, allocations: 70.22 kB / 1.375 GB, free: 30.2 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001596/0.9494, allocations: 134.4 kB / 1.375 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001241/0.9495, allocations: 78.36 kB / 1.375 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.9495, allocations: 0 / 1.375 GB, free: 30.12 MB / 0.8386 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003649/0.9499, allocations: 236.7 kB / 1.376 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.9499, allocations: 6.328 kB / 1.376 GB, free: 30.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.9499, allocations: 4.969 kB / 1.376 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.477e-05/0.95, allocations: 3 kB / 1.376 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002591/0.9502, allocations: 54.19 kB / 1.376 GB, free: 30.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.9502, allocations: 10.84 kB / 1.376 GB, free: 30.05 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.9505, allocations: 42.64 kB / 1.376 GB, free: 30.04 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.078e-05/0.9505, allocations: 9.656 kB / 1.376 GB, free: 30.04 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 8.773e-05/0.9506, allocations: 112 kB / 1.376 GB, free: 29.93 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.007e-05/0.9507, allocations: 31.72 kB / 1.376 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.688e-05/0.9508, allocations: 43.09 kB / 1.376 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.9508, allocations: 3.188 kB / 1.376 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.9508, allocations: 0 / 1.376 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.9508, allocations: 1.547 kB / 1.376 GB, free: 29.89 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003702/0.9512, allocations: 361.3 kB / 1.376 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.9512, allocations: 0 / 1.376 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000255/0.9514, allocations: 48.98 kB / 1.376 GB, free: 29.73 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.9514, allocations: 9 kB / 1.376 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.886e-05/0.9515, allocations: 2.156 kB / 1.376 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.9515, allocations: 1.094 kB / 1.376 GB, free: 29.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/0.9515, allocations: 4 kB / 1.376 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004955/0.952, allocations: 410.2 kB / 1.377 GB, free: 29.56 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.9521, allocations: 133.3 kB / 1.377 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.9522, allocations: 1.906 kB / 1.377 GB, free: 29.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002378/0.9524, allocations: 29.86 kB / 1.377 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.168e-05/0.9525, allocations: 17.19 kB / 1.377 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.9525, allocations: 9.703 kB / 1.377 GB, free: 29.44 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002012/0.9527, allocations: 209.4 kB / 1.377 GB, free: 29.36 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003278/0.953, allocations: 67.97 kB / 1.377 GB, free: 29.34 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.0001446/0.9532, allocations: 107 kB / 1.377 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003159/0.9535, allocations: 172.5 kB / 1.377 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.9535, allocations: 0 / 1.377 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001536/0.9537, allocations: 90.48 kB / 1.377 GB, free: 29.24 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004577/0.9541, allocations: 67.59 kB / 1.378 GB, free: 29.23 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.9553, allocations: 0.4964 MB / 1.378 GB, free: 29.01 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004844/0.9558, allocations: 0.8301 MB / 1.379 GB, free: 28.3 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.9558, allocations: 4.844 kB / 1.379 GB, free: 28.29 MB / 0.8386 GB Notification: Performance of Templates: time 0.008301/0.9641, allocations: 3.383 MB / 1.382 GB, free: 28.05 MB / 0.8386 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