Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.922/1.922, allocations: 387.2 MB / 394.5 MB, free: 13.63 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.0009771/0.000977, allocations: 189.2 kB / 487 MB, free: 5.34 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.244/1.244, allocations: 221.3 MB / 0.7819 GB, free: 1.324 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000933/0.000933, allocations: 91.58 kB / 0.9213 GB, free: 2.582 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.23e-06/5.26e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2361, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6351/0.8712, allocations: 155.7 MB / 1.357 GB, free: 16.05 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.8715, allocations: 87.61 kB / 1.357 GB, free: 16.05 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.01639/0.8879, allocations: 6.546 MB / 1.364 GB, free: 13.2 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.33e-05/0.888, allocations: 8 kB / 1.364 GB, free: 13.19 MB / 0.8073 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.0006649/0.8886, allocations: 0.6027 MB / 1.364 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.8887, allocations: 8.219 kB / 1.364 GB, free: 12.57 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.337e-05/0.8888, allocations: 47.44 kB / 1.364 GB, free: 12.52 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004571/0.8892, allocations: 383.4 kB / 1.365 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.954e-05/0.8893, allocations: 8 kB / 1.365 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.729e-05/0.8893, allocations: 20 kB / 1.365 GB, free: 12.14 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003313/0.8896, allocations: 187.2 kB / 1.365 GB, free: 12.04 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003907/0.89, allocations: 297.5 kB / 1.365 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.588e-05/0.8901, allocations: 0 / 1.365 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.897e-05/0.8901, allocations: 0 / 1.365 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.904e-06/0.8901, allocations: 8 kB / 1.365 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001245/0.8914, allocations: 1.183 MB / 1.366 GB, free: 10.74 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.8916, allocations: 152.4 kB / 1.367 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.8918, allocations: 95.02 kB / 1.367 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.114e-05/0.8918, allocations: 4.188 kB / 1.367 GB, free: 10.58 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/0.8918, allocations: 38.66 kB / 1.367 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=22): time 1.613e-06/0.8919, allocations: 4 kB / 1.367 GB, free: 10.53 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22): time 0.0003384/0.8922, allocations: 208.4 kB / 1.367 GB, free: 10.38 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.8922, allocations: 161.5 kB / 1.367 GB, free: 10.18 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.8925, allocations: 263.7 kB / 1.367 GB, free: 9.977 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.8925, allocations: 33.7 kB / 1.367 GB, free: 9.938 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/0.8926, allocations: 177.5 kB / 1.368 GB, free: 9.777 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.8926, allocations: 70.67 kB / 1.368 GB, free: 9.715 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.136e-05/0.8926, allocations: 0 / 1.368 GB, free: 9.715 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.652e-05/0.8927, allocations: 345 kB / 1.368 GB, free: 9.383 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.797e-05/0.8928, allocations: 71.44 kB / 1.368 GB, free: 9.344 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001301/0.893, allocations: 143 kB / 1.368 GB, free: 9.215 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001079/0.8931, allocations: 77.34 kB / 1.368 GB, free: 9.168 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.584e-06/0.8931, allocations: 3.906 kB / 1.368 GB, free: 9.164 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0002994/0.8934, allocations: 235.5 kB / 1.368 GB, free: 8.984 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/0.8934, allocations: 8 kB / 1.368 GB, free: 8.977 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.8934, allocations: 4 kB / 1.368 GB, free: 8.973 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.264e-05/0.8934, allocations: 0 / 1.368 GB, free: 8.973 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.8937, allocations: 58.97 kB / 1.368 GB, free: 8.918 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.8937, allocations: 4 kB / 1.368 GB, free: 8.914 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/0.8939, allocations: 35.83 kB / 1.369 GB, free: 8.879 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.846e-05/0.8939, allocations: 15.23 kB / 1.369 GB, free: 8.867 MB / 0.8073 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 7.312e-05/0.894, allocations: 112.8 kB / 1.369 GB, free: 8.75 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.392e-05/0.8941, allocations: 35.62 kB / 1.369 GB, free: 8.715 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.218e-05/0.8941, allocations: 35.34 kB / 1.369 GB, free: 8.695 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.8941, allocations: 4 kB / 1.369 GB, free: 8.691 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.8942, allocations: 0 / 1.369 GB, free: 8.691 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.8942, allocations: 0 / 1.369 GB, free: 8.691 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002945/0.8945, allocations: 366.7 kB / 1.369 GB, free: 8.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.8945, allocations: 0 / 1.369 GB, free: 8.379 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002324/0.8947, allocations: 43.92 kB / 1.369 GB, free: 8.336 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.8947, allocations: 11.98 kB / 1.369 GB, free: 8.324 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.859e-05/0.8947, allocations: 3.375 kB / 1.369 GB, free: 8.324 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.8947, allocations: 0 / 1.369 GB, free: 8.324 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.8948, allocations: 0 / 1.369 GB, free: 8.324 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004566/0.8952, allocations: 403.5 kB / 1.37 GB, free: 8.016 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 9.716e-05/0.8953, allocations: 127.4 kB / 1.37 GB, free: 7.887 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.045e-05/0.8954, allocations: 7.859 kB / 1.37 GB, free: 7.883 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.8956, allocations: 28.05 kB / 1.37 GB, free: 7.855 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.674e-05/0.8957, allocations: 15.97 kB / 1.37 GB, free: 7.84 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.8957, allocations: 10.44 kB / 1.37 GB, free: 7.832 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001462/0.8959, allocations: 216.9 kB / 1.37 GB, free: 7.668 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002875/0.8961, allocations: 63.78 kB / 1.37 GB, free: 7.605 MB / 0.8073 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.0001001/0.8963, allocations: 103.2 kB / 1.37 GB, free: 7.492 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0002756/0.8965, allocations: 173.5 kB / 1.37 GB, free: 7.387 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.8965, allocations: 4 kB / 1.37 GB, free: 7.383 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.8967, allocations: 91.88 kB / 1.37 GB, free: 7.324 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003882/0.8971, allocations: 73.95 kB / 1.37 GB, free: 7.262 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009308/0.898, allocations: 499.6 kB / 1.371 GB, free: 6.809 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003841/0.8984, allocations: 0.8258 MB / 1.372 GB, free: 21.95 MB / 0.823 GB Notification: Performance of SimCode: time 2.71e-07/0.8984, allocations: 0 / 1.372 GB, free: 21.95 MB / 0.823 GB Notification: Performance of Templates: time 0.006172/0.9046, allocations: 3.375 MB / 1.375 GB, free: 18.64 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.makefile (rm -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & ./Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.csv","../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches