Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.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.Controls.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") translateModel(Buildings.Controls.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") [: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.72/1.72, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.0009019/0.0009019, allocations: 186.2 kB / 490.8 MB, free: 1.961 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.081/1.081, allocations: 221.4 MB / 0.7863 GB, free: 13.69 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.0008239/0.0008239, allocations: 91.86 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.889e-06/4.909e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1681/0.1681, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4711/0.6392, allocations: 157.6 MB / 1.365 GB, free: 17.26 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001744/0.6395, allocations: 79.5 kB / 1.366 GB, free: 17.26 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.04611/0.6856, allocations: 19.38 MB / 1.384 GB, free: 13.59 MB / 0.823 GB Notification: Performance of Transformations before backend: time 6.371e-05/0.6857, allocations: 21.12 kB / 1.384 GB, free: 13.59 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001509/0.6872, allocations: 1.095 MB / 1.386 GB, free: 28.81 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.365e-05/0.6872, allocations: 12.94 kB / 1.386 GB, free: 28.81 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000228/0.6874, allocations: 122.4 kB / 1.386 GB, free: 28.75 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.6886, allocations: 0.7328 MB / 1.386 GB, free: 28.31 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.419e-05/0.6887, allocations: 58.08 kB / 1.386 GB, free: 28.28 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.866e-05/0.6888, allocations: 44.34 kB / 1.386 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007516/0.6895, allocations: 454.4 kB / 1.387 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008817/0.6904, allocations: 0.6206 MB / 1.388 GB, free: 28.02 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.6904, allocations: 4.625 kB / 1.388 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.615e-05/0.6905, allocations: 2.219 kB / 1.388 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.883e-05/0.6905, allocations: 19.52 kB / 1.388 GB, free: 28.01 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002858/0.6934, allocations: 2.209 MB / 1.39 GB, free: 26.78 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009373/0.6943, allocations: 0.5436 MB / 1.39 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.6946, allocations: 207.6 kB / 1.39 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.71e-05/0.6947, allocations: 6.531 kB / 1.39 GB, free: 26.69 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000363/0.6951, allocations: 275.6 kB / 1.391 GB, free: 26.6 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=60): time 1.823e-06/0.6951, allocations: 0 / 1.391 GB, free: 26.6 MB / 0.8386 GB Notification: Performance of matching and sorting (n=60): time 0.0007649/0.6958, allocations: 491.9 kB / 1.391 GB, free: 26.48 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.183e-05/0.6959, allocations: 139.8 kB / 1.391 GB, free: 26.33 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005984/0.6965, allocations: 0.5488 MB / 1.392 GB, free: 26.16 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.6965, allocations: 26.86 kB / 1.392 GB, free: 26.13 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.6967, allocations: 306.5 kB / 1.392 GB, free: 25.91 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.6968, allocations: 196.6 kB / 1.392 GB, free: 25.76 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.6968, allocations: 7.25 kB / 1.392 GB, free: 25.76 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001309/0.697, allocations: 326.7 kB / 1.393 GB, free: 25.45 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002593/0.6972, allocations: 174.9 kB / 1.393 GB, free: 25.44 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003096/0.6976, allocations: 287 kB / 1.393 GB, free: 25.31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/0.6979, allocations: 197 kB / 1.393 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.6979, allocations: 0 / 1.393 GB, free: 25.29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0007979/0.6987, allocations: 0.5559 MB / 1.394 GB, free: 25.16 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002428/0.6989, allocations: 0.8754 MB / 1.395 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.712e-06/0.6989, allocations: 6.688 kB / 1.395 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/0.699, allocations: 6.406 kB / 1.395 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008315/0.6998, allocations: 163.3 kB / 1.395 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.6998, allocations: 5.25 kB / 1.395 GB, free: 24.2 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004971/0.7003, allocations: 76.03 kB / 1.395 GB, free: 24.15 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.576e-05/0.7004, allocations: 18.59 kB / 1.395 GB, free: 24.15 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.162e-06/0.7004, allocations: 4 kB / 1.395 GB, free: 24.15 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006615/0.701, allocations: 455.9 kB / 1.395 GB, free: 24.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.7011, allocations: 3.344 kB / 1.395 GB, free: 24.09 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.184e-06/0.7011, allocations: 4.531 kB / 1.395 GB, free: 24.09 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007505/0.7018, allocations: 151.7 kB / 1.396 GB, free: 24.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.7018, allocations: 5.094 kB / 1.396 GB, free: 24.06 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004706/0.7023, allocations: 59.12 kB / 1.396 GB, free: 24.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/0.7024, allocations: 26.92 kB / 1.396 GB, free: 24.03 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,$PRE.trigger.pulseStart,trigger.pulseStart,limPIDInp.trigger,limPIDOri.I.local_reset,limPIDDef.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * 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.0001344/0.7025, allocations: 123.3 kB / 1.396 GB, free: 23.91 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.7026, allocations: 89.28 kB / 1.396 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001469/0.7028, allocations: 92.55 kB / 1.396 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.7028, allocations: 5.875 kB / 1.396 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.7028, allocations: 0 / 1.396 GB, free: 23.84 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.7028, allocations: 4.984 kB / 1.396 GB, free: 23.83 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.7044, allocations: 1.312 MB / 1.397 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.7044, allocations: 0 / 1.397 GB, free: 23.29 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/0.705, allocations: 120.1 kB / 1.397 GB, free: 23.26 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.653e-06/0.705, allocations: 6.438 kB / 1.397 GB, free: 23.26 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.7051, allocations: 13.62 kB / 1.397 GB, free: 23.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.7051, allocations: 1.938 kB / 1.397 GB, free: 23.25 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.7051, allocations: 0.8125 kB / 1.397 GB, free: 23.25 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001084/0.7062, allocations: 0.8657 MB / 1.398 GB, free: 23.02 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002342/0.7064, allocations: 227.4 kB / 1.398 GB, free: 22.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.7065, allocations: 1.969 kB / 1.398 GB, free: 22.85 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005309/0.7071, allocations: 50.7 kB / 1.398 GB, free: 22.83 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.237e-05/0.7071, allocations: 32.94 kB / 1.398 GB, free: 22.82 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.39e-05/0.7072, allocations: 26.23 kB / 1.399 GB, free: 22.81 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0004928/0.7077, allocations: 429.7 kB / 1.399 GB, free: 22.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007283/0.7084, allocations: 264.3 kB / 1.399 GB, free: 22.63 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (limPIDPar.I.y,limPIDPar.D.x,limPIDDef.I.y,limPIDDef.D.x,limPIDInp.I.y,limPIDInp.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 4 (limPIDInp.trigger,$whenCondition2,$whenCondition1,trigger.pulseStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001358/0.7086, allocations: 110.8 kB / 1.399 GB, free: 22.53 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001127/0.7097, allocations: 0.7437 MB / 1.4 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.7097, allocations: 0.7812 kB / 1.4 GB, free: 22.48 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003416/0.7101, allocations: 242.8 kB / 1.4 GB, free: 22.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009161/0.711, allocations: 210.3 kB / 1.4 GB, free: 22.4 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002311/0.7133, allocations: 1.158 MB / 1.402 GB, free: 21.91 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007679/0.7141, allocations: 1.087 MB / 1.403 GB, free: 21.05 MB / 0.8386 GB Notification: Performance of SimCode: time 2.6e-07/0.7141, allocations: 0 / 1.403 GB, free: 21.05 MB / 0.8386 GB Notification: Performance of Templates: time 0.01784/0.7319, allocations: 12.84 MB / 1.415 GB, free: 9.34 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Validation_LimPIDReset.csv","../files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches