Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.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.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.816/1.816, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.0009534/0.0009534, allocations: 188.6 kB / 487 MB, free: 5.395 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.134/1.134, allocations: 221.3 MB / 0.7819 GB, free: 1.41 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.000816/0.0008163, allocations: 98.36 kB / 0.9213 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 6.222e-06/6.232e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2044, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.575/0.7795, allocations: 154.3 MB / 1.356 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.7797, allocations: 87.02 kB / 1.356 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.02307/0.8028, allocations: 9.229 MB / 1.365 GB, free: 12.21 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.497e-05/0.8029, allocations: 19.94 kB / 1.365 GB, free: 12.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: 115 * Number of variables: 115 Notification: Performance of Generate backend data structure: time 0.0009138/0.8038, allocations: 0.7232 MB / 1.366 GB, free: 11.46 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.8038, allocations: 9.031 kB / 1.366 GB, free: 11.45 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.804, allocations: 59.25 kB / 1.366 GB, free: 11.39 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/0.8044, allocations: 376.1 kB / 1.366 GB, free: 11.05 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.242e-05/0.8044, allocations: 23.81 kB / 1.366 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.959e-05/0.8045, allocations: 35.94 kB / 1.366 GB, free: 11 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000576/0.8051, allocations: 371.5 kB / 1.367 GB, free: 10.78 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006014/0.8057, allocations: 441.1 kB / 1.367 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.402e-05/0.8057, allocations: 0 / 1.367 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.8058, allocations: 0 / 1.367 GB, free: 10.46 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.121e-05/0.8058, allocations: 12 kB / 1.367 GB, free: 10.45 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001597/0.8074, allocations: 1.329 MB / 1.368 GB, free: 9.445 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005888/0.808, allocations: 407.5 kB / 1.369 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/0.8082, allocations: 189.8 kB / 1.369 GB, free: 9.039 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.714e-05/0.8083, allocations: 11.64 kB / 1.369 GB, free: 9.031 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002891/0.8086, allocations: 234.4 kB / 1.369 GB, free: 8.855 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=58): time 1.744e-06/0.8086, allocations: 0 / 1.369 GB, free: 8.855 MB / 0.8073 GB Notification: Performance of matching and sorting (n=58): time 0.0005108/0.8091, allocations: 348 kB / 1.369 GB, free: 8.586 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.497e-05/0.8091, allocations: 67.78 kB / 1.369 GB, free: 8.512 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002361/0.8094, allocations: 304.3 kB / 1.37 GB, free: 8.273 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.828e-05/0.8094, allocations: 38.52 kB / 1.37 GB, free: 8.234 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.44e-05/0.8095, allocations: 179 kB / 1.37 GB, free: 8.082 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 8.265e-05/0.8096, allocations: 133.1 kB / 1.37 GB, free: 7.977 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.257e-05/0.8096, allocations: 0 / 1.37 GB, free: 7.977 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.483e-05/0.8097, allocations: 355.5 kB / 1.37 GB, free: 7.637 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.8099, allocations: 148.9 kB / 1.371 GB, free: 7.555 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002486/0.8102, allocations: 234.2 kB / 1.371 GB, free: 7.371 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000202/0.8104, allocations: 140.7 kB / 1.371 GB, free: 7.289 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.8104, allocations: 4 kB / 1.371 GB, free: 7.285 MB / 0.8073 GB Notification: Performance of matching and sorting (n=81) (initialization): time 0.0005738/0.811, allocations: 446.8 kB / 1.371 GB, free: 6.941 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.072e-05/0.811, allocations: 4 kB / 1.371 GB, free: 6.938 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.811, allocations: 4 kB / 1.371 GB, free: 6.934 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/0.811, allocations: 4 kB / 1.371 GB, free: 6.93 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002984/0.8113, allocations: 82.8 kB / 1.371 GB, free: 6.852 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.303e-06/0.8113, allocations: 7.984 kB / 1.371 GB, free: 6.844 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003399/0.8117, allocations: 71.7 kB / 1.372 GB, free: 6.773 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.627e-05/0.8117, allocations: 31.8 kB / 1.372 GB, free: 6.746 MB / 0.8073 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.0001123/0.8118, allocations: 139.4 kB / 1.372 GB, free: 6.609 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.585e-05/0.8119, allocations: 39.53 kB / 1.372 GB, free: 6.57 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006722/0.8126, allocations: 426 kB / 1.372 GB, free: 6.254 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.8126, allocations: 11.98 kB / 1.372 GB, free: 6.242 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.8126, allocations: 0 / 1.372 GB, free: 6.242 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.8126, allocations: 7.891 kB / 1.372 GB, free: 6.234 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001265/0.8139, allocations: 1.042 MB / 1.373 GB, free: 5.414 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.8139, allocations: 0 / 1.373 GB, free: 5.414 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.8141, allocations: 63.22 kB / 1.373 GB, free: 5.355 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.8142, allocations: 4 kB / 1.373 GB, free: 5.352 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.8142, allocations: 7.422 kB / 1.373 GB, free: 5.348 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.8142, allocations: 4 kB / 1.373 GB, free: 5.344 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.8142, allocations: 0 / 1.373 GB, free: 5.344 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005356/0.8147, allocations: 485.3 kB / 1.374 GB, free: 4.945 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.821e-05/0.8148, allocations: 128.1 kB / 1.374 GB, free: 4.805 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.192e-05/0.8149, allocations: 3.438 kB / 1.374 GB, free: 4.805 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003241/0.8152, allocations: 63.94 kB / 1.374 GB, free: 4.742 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.8154, allocations: 79.03 kB / 1.374 GB, free: 4.68 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.239e-05/0.8154, allocations: 22.73 kB / 1.374 GB, free: 4.664 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001382/0.8155, allocations: 206.8 kB / 1.374 GB, free: 4.5 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0003547/0.8159, allocations: 91.94 kB / 1.374 GB, free: 4.41 MB / 0.8073 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.0005528/0.8165, allocations: 305.6 kB / 1.375 GB, free: 4.188 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0005461/0.817, allocations: 445.2 kB / 1.375 GB, free: 3.871 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.817, allocations: 0 / 1.375 GB, free: 3.871 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0002572/0.8173, allocations: 236.5 kB / 1.375 GB, free: 3.715 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003202/0.8176, allocations: 62.44 kB / 1.375 GB, free: 3.66 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009964/0.8186, allocations: 0.5924 MB / 1.376 GB, free: 3.152 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004446/0.8191, allocations: 0.9028 MB / 1.377 GB, free: 18.23 MB / 0.823 GB Notification: Performance of SimCode: time 6.71e-07/0.8191, allocations: 0 / 1.377 GB, free: 18.23 MB / 0.823 GB Notification: Performance of Templates: time 0.009444/0.8285, allocations: 5.954 MB / 1.383 GB, free: 12.33 MB / 0.823 GB make -j1 -f Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.makefile (rm -f Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; mkfifo Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe >> ../files/Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.sim & ./Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Applications_BaseClasses_Controls_Validation_VariableSpeedPumpStage.csv","../files/Buildings_9_Buildings.Applications.BaseClasses.Controls.Validation.VariableSpeedPumpStage.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches