Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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_maint.7.0.x_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_maint.7.0.x_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 7.0.3-maint.7.0.x/package.mo): time 1.208/1.208, allocations: 249.4 MB / 256.7 MB, free: 7.039 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009888/0.0009889, allocations: 185.2 kB / 316 MB, free: 3.574 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.055/1.055, allocations: 205.2 MB / 0.5667 GB, free: 15.64 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008311/0.0008311, allocations: 89.45 kB / 0.671 GB, free: 4.777 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.921e-06/5.931e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.144/0.144, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8841/1.028, allocations: 438.8 MB / 1.313 GB, free: 306.8 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001945/1.028, allocations: 91.33 kB / 1.313 GB, free: 306.8 MB / 0.8698 GB Notification: Performance of FrontEnd: time 5.859/6.887, allocations: 2.262 GB / 3.576 GB, free: 68.78 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 0.0004911/6.888, allocations: 117.1 kB / 3.576 GB, free: 68.76 MB / 0.9167 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.009117/6.897, allocations: 4.034 MB / 3.58 GB, free: 66.36 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/6.897, allocations: 8.688 kB / 3.58 GB, free: 66.36 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006856/6.904, allocations: 1.274 MB / 3.581 GB, free: 66.07 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07299/6.977, allocations: 30.72 MB / 3.611 GB, free: 48.5 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001792/6.977, allocations: 72 kB / 3.611 GB, free: 48.43 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009472/6.978, allocations: 144 kB / 3.611 GB, free: 48.29 MB / 0.9167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004856/6.983, allocations: 2.284 MB / 3.613 GB, free: 45.99 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004801/6.988, allocations: 2.532 MB / 3.616 GB, free: 43.32 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.548e-05/6.988, allocations: 3.938 kB / 3.616 GB, free: 43.31 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000284/6.988, allocations: 4 kB / 3.616 GB, free: 43.31 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.489e-05/6.988, allocations: 52 kB / 3.616 GB, free: 43.26 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0175/7.006, allocations: 13.06 MB / 3.629 GB, free: 29.82 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00216/7.008, allocations: 2.127 MB / 3.631 GB, free: 27.69 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008968/7.009, allocations: 0.9558 MB / 3.632 GB, free: 26.73 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006055/7.015, allocations: 5.155 MB / 3.637 GB, free: 21.28 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/7.016, allocations: 1.129 MB / 3.638 GB, free: 20.14 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=92): time 2.395e-06/7.016, allocations: 0 / 3.638 GB, free: 20.14 MB / 0.9167 GB Notification: Performance of matching and sorting (n=92): time 0.006439/7.022, allocations: 2.878 MB / 3.641 GB, free: 17.24 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.962e-05/7.022, allocations: 111.6 kB / 3.641 GB, free: 17.11 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005589/7.028, allocations: 4.843 MB / 3.645 GB, free: 12.27 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.0001407/7.028, allocations: 33.69 kB / 3.645 GB, free: 12.23 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006913/7.029, allocations: 1.171 MB / 3.647 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002475/7.029, allocations: 311.5 kB / 3.647 GB, free: 10.73 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/7.029, allocations: 0 / 3.647 GB, free: 10.73 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 8.589e-05/7.029, allocations: 386 kB / 3.647 GB, free: 10.35 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/7.031, allocations: 1.085 MB / 3.648 GB, free: 9.262 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001433/7.032, allocations: 2.119 MB / 3.65 GB, free: 6.633 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/7.035, allocations: 1.538 MB / 3.652 GB, free: 5.09 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.227e-06/7.035, allocations: 8 kB / 3.652 GB, free: 5.082 MB / 0.9167 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.005765/7.041, allocations: 3.715 MB / 3.655 GB, free: 1.348 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.004503/7.045, allocations: 13.56 MB / 3.669 GB, free: 2.449 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.11e-05/7.045, allocations: 30.5 kB / 3.669 GB, free: 2.422 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008064/7.046, allocations: 340.4 kB / 3.669 GB, free: 2.09 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/7.049, allocations: 0.5421 MB / 3.67 GB, free: 1.547 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005255/7.054, allocations: 6.132 MB / 3.676 GB, free: 11.21 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002994/7.057, allocations: 297.5 kB / 3.676 GB, free: 10.92 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003025/7.058, allocations: 216 kB / 3.676 GB, free: 10.71 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 6.702e-06/7.058, allocations: 4 kB / 3.676 GB, free: 10.71 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005516/7.063, allocations: 2.793 MB / 3.679 GB, free: 7.902 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.929e-05/7.063, allocations: 31.91 kB / 3.679 GB, free: 7.871 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007036/7.064, allocations: 337.3 kB / 3.679 GB, free: 7.543 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00216/7.066, allocations: 0.589 MB / 3.68 GB, free: 6.953 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001984/7.068, allocations: 2.62 MB / 3.682 GB, free: 4.234 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002433/7.071, allocations: 230.4 kB / 3.683 GB, free: 4.008 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002699/7.071, allocations: 211.8 kB / 3.683 GB, free: 3.805 MB / 0.948 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.0004476/7.071, allocations: 196.3 kB / 3.683 GB, free: 3.609 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000529/7.072, allocations: 406.7 kB / 3.683 GB, free: 3.207 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006889/7.079, allocations: 2.885 MB / 3.686 GB, free: 392 kB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/7.079, allocations: 19.98 kB / 3.686 GB, free: 372 kB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/7.079, allocations: 0 / 3.686 GB, free: 372 kB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.281e-05/7.079, allocations: 3.984 kB / 3.686 GB, free: 368 kB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3237/7.403, allocations: 5.801 MB / 3.692 GB, free: 177.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/7.403, allocations: 4.656 kB / 3.692 GB, free: 177.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/7.404, allocations: 234.9 kB / 3.692 GB, free: 177.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007445/7.405, allocations: 398.7 kB / 3.692 GB, free: 177.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.58e-05/7.405, allocations: 34.98 kB / 3.692 GB, free: 177.2 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002565/7.407, allocations: 5.119 MB / 3.697 GB, free: 172.9 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/7.407, allocations: 5.781 kB / 3.697 GB, free: 172.9 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00506/7.412, allocations: 2.582 MB / 3.7 GB, free: 172.5 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001715/7.414, allocations: 0.9288 MB / 3.701 GB, free: 172.3 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006193/7.415, allocations: 10.64 kB / 3.701 GB, free: 172.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001865/7.417, allocations: 140.8 kB / 3.701 GB, free: 172.3 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001559/7.417, allocations: 75.89 kB / 3.701 GB, free: 172.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001391/7.417, allocations: 83.67 kB / 3.701 GB, free: 172.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.003989/7.421, allocations: 3.6 MB / 3.705 GB, free: 172.2 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.004735/7.426, allocations: 1.902 MB / 3.707 GB, free: 172.1 MB / 0.948 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.002709/7.428, allocations: 2.2 MB / 3.709 GB, free: 171.6 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.006545/7.435, allocations: 4.155 MB / 3.713 GB, free: 171.6 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/7.435, allocations: 3.312 kB / 3.713 GB, free: 171.6 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.001357/7.436, allocations: 0.8671 MB / 3.714 GB, free: 171.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006305/7.443, allocations: 1.855 MB / 3.715 GB, free: 171.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009104/7.452, allocations: 5.861 MB / 3.721 GB, free: 170.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002823/7.455, allocations: 3.098 MB / 3.724 GB, free: 169.4 MB / 0.948 GB Notification: Performance of SimCode: time 7.21e-07/7.455, allocations: 0 / 3.724 GB, free: 169.4 MB / 0.948 GB Notification: Performance of Templates: time 0.1375/7.592, allocations: 106.6 MB / 3.828 GB, free: 164.7 MB / 0.948 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Movers_Examples_MoverStages.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Movers.Examples.MoverStages.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches