Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.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.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_9_Buildings.Controls.Continuous.Examples.LimPID") [: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.788/1.788, allocations: 387.2 MB / 394.5 MB, free: 13.7 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.0009195/0.0009196, allocations: 187.7 kB / 487 MB, free: 5.375 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.139/1.139, allocations: 221.3 MB / 0.7819 GB, free: 1.418 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.0008287/0.0008288, allocations: 98.56 kB / 0.9213 GB, free: 2.684 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.13e-06/5.38e-06, allocations: 0 / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1804, allocations: 142.3 MB / 1.205 GB, free: 26.24 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5112/0.6916, allocations: 156.4 MB / 1.358 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.6918, allocations: 79.06 kB / 1.358 GB, free: 15.9 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.03858/0.7304, allocations: 16.47 MB / 1.374 GB, free: 4.652 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 4.733e-05/0.7305, allocations: 23.94 kB / 1.374 GB, free: 4.629 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001142/0.7316, allocations: 0.9476 MB / 1.375 GB, free: 3.68 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.7317, allocations: 13.03 kB / 1.375 GB, free: 3.668 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001326/0.7318, allocations: 94.78 kB / 1.375 GB, free: 3.574 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007219/0.7326, allocations: 0.5844 MB / 1.376 GB, free: 3.055 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.942e-05/0.7326, allocations: 84.39 kB / 1.376 GB, free: 2.957 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/0.7327, allocations: 43.92 kB / 1.376 GB, free: 2.914 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005175/0.7332, allocations: 337.8 kB / 1.376 GB, free: 2.727 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006235/0.7339, allocations: 0.5024 MB / 1.377 GB, free: 2.301 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.7339, allocations: 7.938 kB / 1.377 GB, free: 2.293 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.455e-05/0.7339, allocations: 0 / 1.377 GB, free: 2.293 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.734, allocations: 15.91 kB / 1.377 GB, free: 2.277 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001995/0.736, allocations: 2.098 MB / 1.379 GB, free: 488 kB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006395/0.7366, allocations: 408.7 kB / 1.379 GB, free: 208 kB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.7368, allocations: 163 kB / 1.379 GB, free: 112 kB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.657e-05/0.7369, allocations: 4 kB / 1.379 GB, free: 108 kB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003646/0.7372, allocations: 222.7 kB / 1.38 GB, free: 15.94 MB / 0.823 GB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.7372, allocations: 0 / 1.38 GB, free: 15.94 MB / 0.823 GB Notification: Performance of matching and sorting (n=45): time 0.0006042/0.7379, allocations: 394.2 kB / 1.38 GB, free: 15.64 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/0.7379, allocations: 187.9 kB / 1.38 GB, free: 15.42 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004652/0.7384, allocations: 473.1 kB / 1.381 GB, free: 15.06 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 4.273e-05/0.7385, allocations: 29.7 kB / 1.381 GB, free: 15.02 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.7386, allocations: 246.7 kB / 1.381 GB, free: 14.81 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 9.798e-05/0.7387, allocations: 153.9 kB / 1.381 GB, free: 14.68 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.21e-05/0.7387, allocations: 1.094 kB / 1.381 GB, free: 14.68 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.7388, allocations: 385.9 kB / 1.381 GB, free: 14.32 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002107/0.7391, allocations: 135.7 kB / 1.381 GB, free: 14.25 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002836/0.7393, allocations: 267.1 kB / 1.382 GB, free: 14.01 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002372/0.7396, allocations: 165.2 kB / 1.382 GB, free: 13.91 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.7396, allocations: 4 kB / 1.382 GB, free: 13.91 MB / 0.823 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0006544/0.7403, allocations: 474.5 kB / 1.382 GB, free: 13.55 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002596/0.7405, allocations: 0.9576 MB / 1.383 GB, free: 12.54 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.7405, allocations: 0 / 1.383 GB, free: 12.54 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.7406, allocations: 8 kB / 1.383 GB, free: 12.54 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005072/0.7411, allocations: 130.5 kB / 1.383 GB, free: 12.41 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.123e-05/0.7411, allocations: 11.91 kB / 1.383 GB, free: 12.4 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000456/0.7416, allocations: 75.58 kB / 1.383 GB, free: 12.32 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.7416, allocations: 19.38 kB / 1.383 GB, free: 12.31 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 6.052e-06/0.7416, allocations: 4 kB / 1.383 GB, free: 12.3 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005434/0.7422, allocations: 369.9 kB / 1.384 GB, free: 12.05 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.607e-06/0.7422, allocations: 3.984 kB / 1.384 GB, free: 12.05 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.111e-06/0.7422, allocations: 16.25 kB / 1.384 GB, free: 12.04 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004567/0.7427, allocations: 115.8 kB / 1.384 GB, free: 11.93 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.7427, allocations: 11.84 kB / 1.384 GB, free: 11.91 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004002/0.7431, allocations: 55.72 kB / 1.384 GB, free: 11.86 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.7431, allocations: 27.44 kB / 1.384 GB, free: 11.84 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 1 * 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.0001155/0.7432, allocations: 122.2 kB / 1.384 GB, free: 11.71 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.876e-05/0.7433, allocations: 75.06 kB / 1.384 GB, free: 11.64 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001142/0.7434, allocations: 66.67 kB / 1.384 GB, free: 11.61 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.7435, allocations: 4 kB / 1.384 GB, free: 11.6 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.7435, allocations: 0 / 1.384 GB, free: 11.6 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.7435, allocations: 7.984 kB / 1.384 GB, free: 11.59 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005168/0.744, allocations: 0.5771 MB / 1.385 GB, free: 11.14 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.744, allocations: 0 / 1.385 GB, free: 11.14 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.7445, allocations: 103.3 kB / 1.385 GB, free: 11.04 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.7445, allocations: 0 / 1.385 GB, free: 11.04 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.256e-05/0.7446, allocations: 11.98 kB / 1.385 GB, free: 11.03 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.7446, allocations: 0 / 1.385 GB, free: 11.03 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.7446, allocations: 0 / 1.385 GB, free: 11.03 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008418/0.7454, allocations: 0.6213 MB / 1.386 GB, free: 10.59 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.7456, allocations: 198.6 kB / 1.386 GB, free: 10.41 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.847e-05/0.7457, allocations: 3.906 kB / 1.386 GB, free: 10.41 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005033/0.7462, allocations: 63.94 kB / 1.386 GB, free: 10.34 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.554e-05/0.7463, allocations: 34.7 kB / 1.386 GB, free: 10.32 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.05e-05/0.7464, allocations: 23.86 kB / 1.386 GB, free: 10.3 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.000326/0.7467, allocations: 355.6 kB / 1.386 GB, free: 10.04 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0005437/0.7473, allocations: 222.7 kB / 1.386 GB, free: 9.824 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001338/0.7474, allocations: 111.1 kB / 1.387 GB, free: 9.707 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0008335/0.7482, allocations: 0.6516 MB / 1.387 GB, free: 9.25 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7482, allocations: 0 / 1.387 GB, free: 9.25 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002448/0.7485, allocations: 184.5 kB / 1.387 GB, free: 9.133 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007046/0.7492, allocations: 152.2 kB / 1.387 GB, free: 9.02 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.7509, allocations: 0.8839 MB / 1.388 GB, free: 8.215 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005317/0.7514, allocations: 0.9807 MB / 1.389 GB, free: 7.211 MB / 0.823 GB Notification: Performance of SimCode: time 2.3e-07/0.7514, allocations: 0 / 1.389 GB, free: 7.211 MB / 0.823 GB Notification: Performance of Templates: time 0.01538/0.7668, allocations: 10.65 MB / 1.4 GB, free: 12.7 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches