Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1.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.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1") translateModel(Buildings.Fluid.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pmpNorth.m_flow|pmpSouth.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1") [: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.178/1.178, allocations: 249.4 MB / 256.7 MB, free: 7.012 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.001002/0.001002, allocations: 180.6 kB / 316 MB, free: 3.438 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.039/1.039, allocations: 205.1 MB / 0.5667 GB, free: 15.55 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.000842/0.000842, allocations: 92.39 kB / 0.671 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.821e-06/5.851e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1556, allocations: 106.3 MB / 0.8846 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9265/1.082, allocations: 456.7 MB / 1.331 GB, free: 261.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/1.082, allocations: 96.94 kB / 1.331 GB, free: 261.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 23.53/24.61, allocations: 8.463 GB / 9.794 GB, free: 80.81 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.002838/24.62, allocations: 0.5091 MB / 9.794 GB, free: 80.66 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2061 * Number of variables: 2061 Notification: Performance of Generate backend data structure: time 0.04524/24.66, allocations: 15.04 MB / 9.809 GB, free: 74.22 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/24.66, allocations: 7.562 kB / 9.809 GB, free: 74.22 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0147/24.68, allocations: 2.352 MB / 9.811 GB, free: 73.18 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06745/24.74, allocations: 26.9 MB / 9.837 GB, free: 69.63 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005556/24.75, allocations: 258.8 kB / 9.838 GB, free: 69.63 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004375/24.75, allocations: 0.5893 MB / 9.838 GB, free: 69.62 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03058/24.78, allocations: 19.96 MB / 9.858 GB, free: 57.39 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03062/24.81, allocations: 15.55 MB / 9.873 GB, free: 44.55 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004336/24.81, allocations: 15.84 kB / 9.873 GB, free: 44.54 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003347/24.81, allocations: 23.03 kB / 9.873 GB, free: 44.52 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001543/24.81, allocations: 214.7 kB / 9.873 GB, free: 44.31 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6164/25.43, allocations: 83.09 MB / 9.954 GB, free: 128.3 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01296/25.44, allocations: 10.23 MB / 9.964 GB, free: 128.2 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01087/25.45, allocations: 9.379 MB / 9.973 GB, free: 128.1 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06442/25.52, allocations: 35.33 MB / 10.01 GB, free: 119.9 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01313/25.53, allocations: 9.056 MB / 10.02 GB, free: 119.8 MB / 1.135 GB Notification: Performance of pre-optimization done (n=584): time 8.826e-06/25.53, allocations: 0 / 10.02 GB, free: 119.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=586): time 0.6395/26.17, allocations: 149.8 MB / 10.16 GB, free: 110.8 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000484/26.17, allocations: 2.502 MB / 10.17 GB, free: 107.7 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02314/26.2, allocations: 14.17 MB / 10.18 GB, free: 107 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.003231/26.2, allocations: 46.52 kB / 10.18 GB, free: 106.9 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.004689/26.2, allocations: 4.08 MB / 10.18 GB, free: 105.6 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.004961/26.21, allocations: 2.003 MB / 10.19 GB, free: 104.5 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001014/26.21, allocations: 0 / 10.19 GB, free: 104.5 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 0.0003991/26.21, allocations: 0.6789 MB / 10.19 GB, free: 104.2 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0102/26.22, allocations: 8.669 MB / 10.19 GB, free: 104.2 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01237/26.23, allocations: 12.14 MB / 10.21 GB, free: 100.2 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01599/26.25, allocations: 10.19 MB / 10.22 GB, free: 99.96 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.235e-05/26.25, allocations: 13.31 kB / 10.22 GB, free: 99.96 MB / 1.135 GB Notification: Performance of matching and sorting (n=1198) (initialization): time 0.5906/26.84, allocations: 134.8 MB / 10.35 GB, free: 60.34 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.005474/26.85, allocations: 36.49 MB / 10.38 GB, free: 22.87 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004284/26.85, allocations: 114.4 kB / 10.38 GB, free: 22.79 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141/27.99, allocations: 161.4 MB / 10.54 GB, free: 123.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01189/28, allocations: 2.091 MB / 10.54 GB, free: 123.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1237/28.12, allocations: 67.57 MB / 10.61 GB, free: 116.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01789/28.14, allocations: 0.8741 MB / 10.61 GB, free: 116.4 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003352/28.14, allocations: 0.8362 MB / 10.61 GB, free: 116.4 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 1.12e-05/28.14, allocations: 5.281 kB / 10.61 GB, free: 116.4 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.5927/28.74, allocations: 132.1 MB / 10.74 GB, free: 104.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004103/28.74, allocations: 117.4 kB / 10.74 GB, free: 104.7 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.176/29.91, allocations: 161.2 MB / 10.9 GB, free: 126.9 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01018/29.92, allocations: 2.053 MB / 10.9 GB, free: 126.9 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1318/30.05, allocations: 68.5 MB / 10.97 GB, free: 123.1 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.017/30.07, allocations: 0.8432 MB / 10.97 GB, free: 123.1 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00279/30.07, allocations: 0.7988 MB / 10.97 GB, free: 123.1 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 231 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,$whenCondition2,booleanToInteger.u,booleanToInteger.y,$PRE.stepPump.pulseStart,stepPump.pulseStart,$PRE.stepValve.T_start,stepValve.T_start,$PRE.stepValve.count,stepValve.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (939): * Single equations (assignments): 861 * Array equations: 36 * Algorithm blocks: 1 * Record equations: 32 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {39 65} Notification: Performance of prepare postOptimizeDAE: time 0.002927/30.08, allocations: 348.2 kB / 10.97 GB, free: 123 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003937/30.08, allocations: 1.477 MB / 10.97 GB, free: 123 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1874/30.27, allocations: 57.73 MB / 11.03 GB, free: 115.4 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001608/30.27, allocations: 69.62 kB / 11.03 GB, free: 115.4 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.365e-05/30.27, allocations: 28.62 kB / 11.03 GB, free: 115.4 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1749/30.44, allocations: 51.62 MB / 11.08 GB, free: 108.3 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.209/30.65, allocations: 71.01 MB / 11.15 GB, free: 94.85 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.402e-05/30.65, allocations: 0 / 11.15 GB, free: 94.85 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006883/30.66, allocations: 1.107 MB / 11.15 GB, free: 94.01 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.7006/31.36, allocations: 69.26 MB / 11.21 GB, free: 131.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001896/31.36, allocations: 170 kB / 11.21 GB, free: 131.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04898/31.41, allocations: 26.46 MB / 11.24 GB, free: 125.7 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.97e-06/31.41, allocations: 3.125 kB / 11.24 GB, free: 125.7 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1838/31.6, allocations: 62.37 MB / 11.3 GB, free: 121.6 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01009/31.61, allocations: 3.162 MB / 11.3 GB, free: 121.5 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004709/31.61, allocations: 83.84 kB / 11.3 GB, free: 121.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01142/31.62, allocations: 0.7386 MB / 11.31 GB, free: 121.5 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001035/31.62, allocations: 364.7 kB / 11.31 GB, free: 121.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007711/31.62, allocations: 261.6 kB / 11.31 GB, free: 121.5 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.01611/31.64, allocations: 10.64 MB / 11.32 GB, free: 121 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.03657/31.68, allocations: 7.666 MB / 11.32 GB, free: 121 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 74 (pmpSouth.vol.dynBal.U,pmpSouth.filter.x[1],pmpSouth.filter.x[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.x[1],pmpNorth.filter.x[2],valSouth1[1].filter.x[1],valSouth1[1].filter.x[2],valSouth1[2].filter.x[1],valSouth1[2].filter.x[2],valSouth1[3].filter.x[1],valSouth1[3].filter.x[2],valSouth1[4].filter.x[1],valSouth1[4].filter.x[2],valSouth2[1].filter.x[1],valSouth2[1].filter.x[2],valSouth2[2].filter.x[1],valSouth2[2].filter.x[2],valSouth2[3].filter.x[1],valSouth2[3].filter.x[2],valSouth2[4].filter.x[1],valSouth2[4].filter.x[2],valSouth2[5].filter.x[1],valSouth2[5].filter.x[2],valSouth2[6].filter.x[1],valSouth2[6].filter.x[2],valSouth2[7].filter.x[1],valSouth2[7].filter.x[2],valSouth2[8].filter.x[1],valSouth2[8].filter.x[2],valNorth1[1].filter.x[1],valNorth1[1].filter.x[2],valNorth1[2].filter.x[1],valNorth1[2].filter.x[2],valNorth1[3].filter.x[1],valNorth1[3].filter.x[2],valNorth1[4].filter.x[1],valNorth1[4].filter.x[2],valNorth2[1].filter.x[1],valNorth2[1].filter.x[2],valNorth2[2].filter.x[1],valNorth2[2].filter.x[2],valNorth2[3].filter.x[1],valNorth2[3].filter.x[2],valNorth2[4].filter.x[1],valNorth2[4].filter.x[2],valNorth2[5].filter.x[1],valNorth2[5].filter.x[2],valNorth2[6].filter.x[1],valNorth2[6].filter.x[2],valNorth2[7].filter.x[1],valNorth2[7].filter.x[2],valNorth2[8].filter.x[1],valNorth2[8].filter.x[2],valSouth.vol.dynBal.U,valSouth.filter.x[1],valSouth.filter.x[2],valNorth.vol.dynBal.U,valNorth.filter.x[1],valNorth.filter.x[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.x[1],pumpHea.filter.x[2],valHea.filter.x[1],valHea.filter.x[2],valCoo.filter.x[1],valCoo.filter.x[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.x[1],pumpCoo.filter.x[2]) * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanToInteger.u,booleanToInteger.y,stepPump.pulseStart,stepValve.T_start,stepValve.count) * Number of discrete states: 1 (stepValve.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (530): * Single equations (assignments): 508 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(28,89.3%) 28} * Non-linear torn systems: 1 {39 65} Notification: Performance of Backend phase and start with SimCode phase: time 0.007264/31.68, allocations: 5.286 MB / 11.33 GB, free: 118.8 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.06145/31.75, allocations: 35.97 MB / 11.36 GB, free: 115.8 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 1.195e-05/31.75, allocations: 10.34 kB / 11.36 GB, free: 115.8 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.01469/31.76, allocations: 8.858 MB / 11.37 GB, free: 115.4 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0337/31.79, allocations: 7.269 MB / 11.38 GB, free: 115.1 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05617/31.85, allocations: 27.32 MB / 11.41 GB, free: 109.5 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01435/31.86, allocations: 10.1 MB / 11.42 GB, free: 108.3 MB / 1.135 GB Notification: Performance of SimCode: time 1.322e-06/31.86, allocations: 0 / 11.42 GB, free: 108.3 MB / 1.135 GB Notification: Performance of Templates: time 1.423/33.29, allocations: 472.7 MB / 11.88 GB, free: 123.9 MB / 1.136 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_FlowSystem_Simplified1.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.FlowSystem.Simplified1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches