Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.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.Fluid.Movers.Examples.MoverStages,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_Nrpm.m_flow|pump_dp.m_flow|pump_m_flow.m_flow|pump_y.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages") translateModel(Buildings.Fluid.Movers.Examples.MoverStages,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump_Nrpm.m_flow|pump_dp.m_flow|pump_m_flow.m_flow|pump_y.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages") [: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 2.056/2.056, allocations: 387.2 MB / 394.5 MB, free: 13.77 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.001174/0.001174, allocations: 179.9 kB / 487 MB, free: 5.441 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.488/1.488, allocations: 221.3 MB / 0.7819 GB, free: 1.402 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.0009854/0.0009852, allocations: 100.1 kB / 0.9213 GB, free: 2.664 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 8.506e-06/8.536e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2664, allocations: 142.3 MB / 1.205 GB, free: 26.29 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.051/1.317, allocations: 444.6 MB / 1.639 GB, free: 11.41 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/1.318, allocations: 93.02 kB / 1.639 GB, free: 11.37 MB / 1.073 GB Notification: Performance of FrontEnd: time 8.92/10.24, allocations: 2.358 GB / 3.998 GB, free: 145.6 MB / 1.229 GB Notification: Performance of Transformations before backend: time 0.0007792/10.24, allocations: 108.8 kB / 3.998 GB, free: 145.6 MB / 1.229 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 517 * Number of variables: 517 Notification: Performance of Generate backend data structure: time 0.01297/10.25, allocations: 4.047 MB / 4.002 GB, free: 144.2 MB / 1.229 GB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/10.25, allocations: 11.7 kB / 4.002 GB, free: 144.2 MB / 1.229 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01185/10.26, allocations: 1.656 MB / 4.003 GB, free: 143.9 MB / 1.229 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0777/10.34, allocations: 32.03 MB / 4.035 GB, free: 142.2 MB / 1.229 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001844/10.34, allocations: 66.75 kB / 4.035 GB, free: 142.2 MB / 1.229 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001017/10.34, allocations: 142.8 kB / 4.035 GB, free: 142.2 MB / 1.229 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004621/10.35, allocations: 2.333 MB / 4.037 GB, free: 142.2 MB / 1.229 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004362/10.35, allocations: 2.575 MB / 4.04 GB, free: 141.8 MB / 1.229 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.767e-05/10.35, allocations: 1.688 kB / 4.04 GB, free: 141.8 MB / 1.229 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002274/10.35, allocations: 3.75 kB / 4.04 GB, free: 141.8 MB / 1.229 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.395e-05/10.35, allocations: 54.81 kB / 4.04 GB, free: 141.8 MB / 1.229 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0254/10.38, allocations: 13.31 MB / 4.053 GB, free: 137.1 MB / 1.229 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002659/10.38, allocations: 2.173 MB / 4.055 GB, free: 137.1 MB / 1.229 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001065/10.38, allocations: 0.9771 MB / 4.056 GB, free: 137.1 MB / 1.229 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008515/10.39, allocations: 5.237 MB / 4.061 GB, free: 135.2 MB / 1.229 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001378/10.39, allocations: 1.164 MB / 4.062 GB, free: 135.1 MB / 1.229 GB Notification: Performance of pre-optimization done (n=92): time 4.037e-06/10.39, allocations: 0 / 4.062 GB, free: 135.1 MB / 1.229 GB Notification: Performance of matching and sorting (n=92): time 0.0083/10.4, allocations: 2.908 MB / 4.065 GB, free: 134.8 MB / 1.229 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.52e-05/10.4, allocations: 115.4 kB / 4.065 GB, free: 134.7 MB / 1.229 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009004/10.41, allocations: 4.864 MB / 4.07 GB, free: 134.4 MB / 1.229 GB Notification: Performance of collectPreVariables (initialization): time 0.0007451/10.41, allocations: 32.55 kB / 4.07 GB, free: 134.3 MB / 1.229 GB Notification: Performance of collectInitialEqns (initialization): time 0.001143/10.41, allocations: 1.188 MB / 4.071 GB, free: 133.8 MB / 1.229 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006063/10.41, allocations: 306.6 kB / 4.071 GB, free: 133.6 MB / 1.229 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/10.41, allocations: 0 / 4.071 GB, free: 133.6 MB / 1.229 GB Notification: Performance of setup shared object (initialization): time 0.0001297/10.41, allocations: 388.3 kB / 4.072 GB, free: 133.3 MB / 1.229 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/10.41, allocations: 1.101 MB / 4.073 GB, free: 133.3 MB / 1.229 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001808/10.41, allocations: 2.139 MB / 4.075 GB, free: 132 MB / 1.229 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00367/10.42, allocations: 1.551 MB / 4.076 GB, free: 131.9 MB / 1.229 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/10.42, allocations: 7.562 kB / 4.076 GB, free: 131.9 MB / 1.229 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.008038/10.43, allocations: 3.752 MB / 4.08 GB, free: 131.6 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 0.002875/10.43, allocations: 13.58 MB / 4.093 GB, free: 117.1 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.272e-05/10.43, allocations: 28.94 kB / 4.093 GB, free: 117.1 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008236/10.43, allocations: 338.1 kB / 4.093 GB, free: 117.1 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003588/10.43, allocations: 0.584 MB / 4.094 GB, free: 117.1 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004671/10.44, allocations: 6.138 MB / 4.1 GB, free: 112.7 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004348/10.44, allocations: 333 kB / 4.1 GB, free: 112.6 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000443/10.44, allocations: 218.5 kB / 4.101 GB, free: 112.6 MB / 1.229 GB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/10.44, allocations: 6.25 kB / 4.101 GB, free: 112.6 MB / 1.229 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005921/10.45, allocations: 2.845 MB / 4.103 GB, free: 112.5 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.29e-05/10.45, allocations: 28.97 kB / 4.103 GB, free: 112.5 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006739/10.45, allocations: 341 kB / 4.104 GB, free: 112.5 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002368/10.45, allocations: 0.6274 MB / 4.104 GB, free: 112.5 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001697/10.45, allocations: 2.607 MB / 4.107 GB, free: 110.4 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004023/10.46, allocations: 257.3 kB / 4.107 GB, free: 110.3 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000354/10.46, allocations: 210.6 kB / 4.107 GB, free: 110.3 MB / 1.229 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump_Nrpm.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump_dp.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump_y.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pump_m_flow.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 131 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 205 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0009196/10.46, allocations: 209.8 kB / 4.108 GB, free: 110.2 MB / 1.229 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009354/10.46, allocations: 416.6 kB / 4.108 GB, free: 109.9 MB / 1.229 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00738/10.47, allocations: 2.936 MB / 4.111 GB, free: 109.8 MB / 1.229 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.909e-05/10.47, allocations: 12.78 kB / 4.111 GB, free: 109.8 MB / 1.229 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/10.47, allocations: 0 / 4.111 GB, free: 109.8 MB / 1.229 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.369e-05/10.47, allocations: 7.5 kB / 4.111 GB, free: 109.8 MB / 1.229 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01421/10.48, allocations: 5.912 MB / 4.117 GB, free: 109.3 MB / 1.229 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/10.48, allocations: 0 / 4.117 GB, free: 109.3 MB / 1.229 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001491/10.48, allocations: 265.2 kB / 4.117 GB, free: 109.3 MB / 1.229 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000838/10.48, allocations: 404.6 kB / 4.117 GB, free: 109.3 MB / 1.229 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001228/10.48, allocations: 35.45 kB / 4.117 GB, free: 109.3 MB / 1.229 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003079/10.49, allocations: 5.111 MB / 4.122 GB, free: 105 MB / 1.229 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.05e-06/10.49, allocations: 5.656 kB / 4.122 GB, free: 105 MB / 1.229 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006639/10.49, allocations: 2.628 MB / 4.125 GB, free: 104.3 MB / 1.229 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00331/10.5, allocations: 0.9409 MB / 4.126 GB, free: 104 MB / 1.229 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00183/10.5, allocations: 3.844 kB / 4.126 GB, free: 104 MB / 1.229 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003785/10.5, allocations: 179.9 kB / 4.126 GB, free: 104 MB / 1.229 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002532/10.5, allocations: 85.8 kB / 4.126 GB, free: 104 MB / 1.229 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000263/10.5, allocations: 87.83 kB / 4.126 GB, free: 104 MB / 1.229 GB Notification: Performance of sort global known variables: time 0.00747/10.51, allocations: 3.614 MB / 4.13 GB, free: 103.8 MB / 1.229 GB Notification: Performance of remove unused functions: time 0.01071/10.52, allocations: 1.952 MB / 4.131 GB, free: 103.5 MB / 1.229 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {1 4,1 4,1 1,1 4,1 4,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.003945/10.53, allocations: 2.238 MB / 4.134 GB, free: 103 MB / 1.229 GB Notification: Performance of simCode: created initialization part: time 0.008799/10.53, allocations: 4.218 MB / 4.138 GB, free: 102.9 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 8.737e-06/10.53, allocations: 3.906 kB / 4.138 GB, free: 102.9 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.001753/10.54, allocations: 0.8914 MB / 4.139 GB, free: 102.9 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009794/10.55, allocations: 1.858 MB / 4.14 GB, free: 102.9 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01794/10.56, allocations: 5.929 MB / 4.146 GB, free: 101.5 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005392/10.57, allocations: 3.122 MB / 4.149 GB, free: 100.7 MB / 1.229 GB Notification: Performance of SimCode: time 1.062e-06/10.57, allocations: 3.188 kB / 4.149 GB, free: 100.7 MB / 1.229 GB Notification: Performance of Templates: time 0.1935/10.76, allocations: 108.8 MB / 4.256 GB, free: 95.11 MB / 1.229 GB make -j1 -f Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.makefile (rm -f Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.pipe ; mkfifo Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.pipe >> ../files/Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.sim & ./Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Movers_Examples_MoverStages.csv","../files/Buildings_9_Buildings.Fluid.Movers.Examples.MoverStages.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches