Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.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.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSig.y|masFlo.y|varSpePumSta.y.1.|varSpePumSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage") translateModel(Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speSig.y|masFlo.y|varSpePumSta.y.1.|varSpePumSta.y.2.",fileNamePrefix="Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage") [: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.714/1.714, allocations: 390.4 MB / 397.7 MB, free: 11.2 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.0009269/0.0009269, allocations: 190.4 kB / 490.8 MB, free: 1.898 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.047/1.047, allocations: 221.3 MB / 0.7863 GB, free: 13.64 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.0008029/0.0008029, allocations: 85.23 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.318e-06/4.338e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1748, allocations: 143 MB / 1.212 GB, free: 40.1 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4795/0.6543, allocations: 155.3 MB / 1.363 GB, free: 17.37 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000192/0.6545, allocations: 86.22 kB / 1.363 GB, free: 17.37 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.02134/0.6759, allocations: 9.369 MB / 1.372 GB, free: 16.72 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.579e-05/0.6759, allocations: 17.84 kB / 1.372 GB, free: 16.71 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: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.000954/0.6769, allocations: 0.7262 MB / 1.373 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/0.6769, allocations: 8.734 kB / 1.373 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.6771, allocations: 64.86 kB / 1.373 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.6775, allocations: 377.5 kB / 1.374 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.266e-05/0.6775, allocations: 19.25 kB / 1.374 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.288e-05/0.6776, allocations: 35.56 kB / 1.374 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006496/0.6783, allocations: 372.4 kB / 1.374 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006881/0.679, allocations: 449 kB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.367e-05/0.679, allocations: 0 / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.94e-05/0.679, allocations: 6.656 kB / 1.374 GB, free: 31.86 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.274e-05/0.6791, allocations: 15.47 kB / 1.374 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001874/0.6809, allocations: 1.337 MB / 1.376 GB, free: 31.45 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006489/0.6816, allocations: 402.7 kB / 1.376 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002679/0.6819, allocations: 183.4 kB / 1.376 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.834e-05/0.6819, allocations: 9.969 kB / 1.376 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003382/0.6823, allocations: 240.1 kB / 1.377 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=58): time 1.684e-06/0.6823, allocations: 0 / 1.377 GB, free: 31.34 MB / 0.8386 GB Notification: Performance of matching and sorting (n=58): time 0.0005838/0.6829, allocations: 344.8 kB / 1.377 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.6829, allocations: 71.88 kB / 1.377 GB, free: 31.21 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003097/0.6832, allocations: 302 kB / 1.377 GB, free: 31.09 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 5.739e-05/0.6833, allocations: 38.34 kB / 1.377 GB, free: 31.06 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001153/0.6834, allocations: 182.9 kB / 1.377 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.6835, allocations: 136.4 kB / 1.378 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.331e-05/0.6835, allocations: 0 / 1.378 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.6837, allocations: 356.6 kB / 1.378 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002825/0.684, allocations: 148.1 kB / 1.378 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002963/0.6843, allocations: 231.9 kB / 1.378 GB, free: 30.47 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.6845, allocations: 139.4 kB / 1.378 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.6845, allocations: 0.9688 kB / 1.378 GB, free: 30.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0006631/0.6852, allocations: 450.5 kB / 1.379 GB, free: 30.39 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.6852, allocations: 11.88 kB / 1.379 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.6852, allocations: 2.062 kB / 1.379 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.6853, allocations: 9.578 kB / 1.379 GB, free: 30.38 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003177/0.6856, allocations: 80.39 kB / 1.379 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.6856, allocations: 4.828 kB / 1.379 GB, free: 30.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003729/0.686, allocations: 77.64 kB / 1.379 GB, free: 30.35 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.992e-05/0.686, allocations: 22.66 kB / 1.379 GB, free: 30.35 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 62 ($PRE.varSpePumSta.con1.enableFire,$PRE.varSpePumSta.con2.enableFire,$PRE.varSpePumSta.con3.enableFire,$PRE.varSpePumSta.con4.enableFire,varSpePumSta.stateGraphRoot.resume,varSpePumSta.stateGraphRoot.suspend,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varSpePumSta.con1.enableFire,varSpePumSta.con1.fire,$PRE.varSpePumSta.con1.t_start,varSpePumSta.con1.t_start,varSpePumSta.con1.condition,$PRE.varSpePumSta.oneOn.localActive,varSpePumSta.oneOn.localActive,varSpePumSta.oneOn.inPort[2].occupied,varSpePumSta.oneOn.outPort[2].available,$PRE.varSpePumSta.oneOn.newActive,varSpePumSta.oneOn.newActive,$PRE.varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.active,$PRE.varSpePumSta.off.localActive,varSpePumSta.off.localActive,$PRE.varSpePumSta.off.newActive,varSpePumSta.off.newActive,$PRE.varSpePumSta.off.oldActive,varSpePumSta.off.oldActive,varSpePumSta.off.active,$PRE.varSpePumSta.twoOn.localActive,varSpePumSta.twoOn.localActive,$PRE.varSpePumSta.twoOn.newActive,varSpePumSta.twoOn.newActive,$PRE.varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.active,varSpePumSta.con2.enableFire,varSpePumSta.con2.fire,$PRE.varSpePumSta.con2.t_start,varSpePumSta.con2.t_start,varSpePumSta.con2.condition,varSpePumSta.con3.enableFire,varSpePumSta.con3.fire,$PRE.varSpePumSta.con3.t_start,varSpePumSta.con3.t_start,varSpePumSta.con3.condition,varSpePumSta.con4.enableFire,varSpePumSta.con4.fire,$PRE.varSpePumSta.con4.t_start,varSpePumSta.con4.t_start,varSpePumSta.con4.condition,varSpePumSta.stateGraphRoot.activeSteps,varSpePumSta.addInt.u1,varSpePumSta.addInt.u2,varSpePumSta.addInt.y,$PRE.speSig.T_start,speSig.T_start,$PRE.speSig.count,speSig.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 79 * 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.0001282/0.6862, allocations: 147.8 kB / 1.379 GB, free: 30.23 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.653e-05/0.6862, allocations: 39.09 kB / 1.379 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007396/0.687, allocations: 421.8 kB / 1.38 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.687, allocations: 10.03 kB / 1.38 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.687, allocations: 1.031 kB / 1.38 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.015e-05/0.687, allocations: 7.266 kB / 1.38 GB, free: 30.13 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001486/0.6885, allocations: 1.056 MB / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.6885, allocations: 0 / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002472/0.6888, allocations: 66.16 kB / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.6888, allocations: 2.125 kB / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/0.6888, allocations: 5.281 kB / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.6888, allocations: 2 kB / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6888, allocations: 0.7031 kB / 1.381 GB, free: 29.82 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006312/0.6895, allocations: 494.5 kB / 1.381 GB, free: 29.64 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.08e-05/0.6895, allocations: 121.8 kB / 1.381 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.466e-05/0.6896, allocations: 9.406 kB / 1.381 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003548/0.69, allocations: 60.23 kB / 1.381 GB, free: 29.52 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.6902, allocations: 82.55 kB / 1.382 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.718e-05/0.6902, allocations: 18.53 kB / 1.382 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001745/0.6904, allocations: 208 kB / 1.382 GB, free: 29.43 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003769/0.6908, allocations: 99.75 kB / 1.382 GB, free: 29.42 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 47 (varSpePumSta.con3.enableFire,varSpePumSta.con4.enableFire,varSpePumSta.con1.enableFire,varSpePumSta.con2.enableFire,varSpePumSta.twoOn.localActive,varSpePumSta.off.localActive,varSpePumSta.oneOn.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varSpePumSta.con1.fire,varSpePumSta.con1.t_start,varSpePumSta.con1.condition,varSpePumSta.oneOn.inPort[2].occupied,varSpePumSta.oneOn.outPort[2].available,varSpePumSta.oneOn.newActive,varSpePumSta.oneOn.oldActive,varSpePumSta.oneOn.active,varSpePumSta.off.newActive,varSpePumSta.off.oldActive,varSpePumSta.off.active,varSpePumSta.twoOn.newActive,varSpePumSta.twoOn.oldActive,varSpePumSta.twoOn.active,varSpePumSta.con2.fire,varSpePumSta.con2.t_start,varSpePumSta.con2.condition,varSpePumSta.con3.fire,varSpePumSta.con3.t_start,varSpePumSta.con3.condition,varSpePumSta.con4.fire,varSpePumSta.con4.t_start,varSpePumSta.con4.condition,varSpePumSta.stateGraphRoot.activeSteps,varSpePumSta.addInt.u1,varSpePumSta.addInt.u2,varSpePumSta.addInt.y,speSig.T_start,speSig.count) * Number of discrete states: 4 (speSig.count,varSpePumSta.oneOn.newActive,varSpePumSta.off.newActive,varSpePumSta.twoOn.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0005319/0.6913, allocations: 305 kB / 1.382 GB, free: 29.25 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006211/0.6919, allocations: 450.7 kB / 1.383 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.6919, allocations: 1.031 kB / 1.383 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003107/0.6923, allocations: 233.3 kB / 1.383 GB, free: 29.18 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.6926, allocations: 50.86 kB / 1.383 GB, free: 29.17 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.6937, allocations: 0.6042 MB / 1.383 GB, free: 28.99 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005995/0.6944, allocations: 0.908 MB / 1.384 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of SimCode: time 2.91e-07/0.6944, allocations: 0 / 1.384 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of Templates: time 0.009491/0.7039, allocations: 6.04 MB / 1.39 GB, free: 25.54 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.makefile (rm -f Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; mkfifo Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; head -c 1048576 < Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe >> ../files/Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.sim & ./Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage.csv","../files/Buildings_latest_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches