Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic.conf.json 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/IDEAS 3.0.0/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic") translateModel(IDEAS.Fluid.Examples.FlowSystem.Basic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic") [: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/Complex 4.0.0+maint.om/package.mo): time 0.003539/0.003539, allocations: 176.6 kB / 7.452 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6791/0.6791, allocations: 130.6 MB / 138.5 MB, free: 2.105 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.641/1.641, allocations: 221.3 MB / 391.4 MB, free: 12.97 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 93.11 kB / 473.4 MB, free: 14.3 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 8.066e-06/8.086e-06, allocations: 0 / 0.5479 GB, free: 89.03 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1961/0.1961, allocations: 81.58 MB / 0.6276 GB, free: 18.16 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.182/1.378, allocations: 422.9 MB / 1.041 GB, free: 188.8 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002537/1.378, allocations: 94.95 kB / 1.041 GB, free: 188.7 MB / 0.6667 GB Notification: Performance of FrontEnd: time 27.11/28.49, allocations: 6.473 GB / 7.514 GB, free: 58.21 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.004669/28.49, allocations: 449.1 kB / 7.514 GB, free: 58.12 MB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2029 * Number of variables: 2029 Notification: Performance of Generate backend data structure: time 0.06652/28.56, allocations: 14.41 MB / 7.528 GB, free: 52.38 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/28.56, allocations: 7.688 kB / 7.528 GB, free: 52.38 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01772/28.58, allocations: 2.243 MB / 7.531 GB, free: 51.42 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08902/28.67, allocations: 25.26 MB / 7.555 GB, free: 48.98 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008376/28.67, allocations: 251.6 kB / 7.555 GB, free: 48.98 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00671/28.68, allocations: 0.5932 MB / 7.556 GB, free: 48.97 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04171/28.72, allocations: 20.14 MB / 7.576 GB, free: 48.94 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05/28.77, allocations: 14.75 MB / 7.59 GB, free: 48.18 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007019/28.77, allocations: 14.47 kB / 7.59 GB, free: 48.17 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004818/28.77, allocations: 9.969 kB / 7.59 GB, free: 48.17 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004879/28.77, allocations: 377.9 kB / 7.591 GB, free: 48.16 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1804/28.95, allocations: 82.77 MB / 7.671 GB, free: 14.78 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02245/28.98, allocations: 11.09 MB / 7.682 GB, free: 14.64 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0176/28.99, allocations: 10.12 MB / 7.692 GB, free: 14.5 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09352/29.09, allocations: 36.79 MB / 7.728 GB, free: 5.316 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.02273/29.11, allocations: 9.488 MB / 7.737 GB, free: 5.16 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=640): time 1.799e-05/29.11, allocations: 0 / 7.737 GB, free: 5.16 MB / 0.9323 GB Notification: Performance of matching and sorting (n=642): time 1.469/30.58, allocations: 152.4 MB / 7.886 GB, free: 124.6 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.031e-05/30.58, allocations: 118.3 kB / 7.886 GB, free: 124.5 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03404/30.61, allocations: 13.66 MB / 7.899 GB, free: 123.9 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.004172/30.62, allocations: 46.16 kB / 7.9 GB, free: 123.8 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.009321/30.63, allocations: 3.645 MB / 7.903 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.01263/30.64, allocations: 2.191 MB / 7.905 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003507/30.64, allocations: 0 / 7.905 GB, free: 123.6 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0008184/30.64, allocations: 0.643 MB / 7.906 GB, free: 123.2 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01402/30.66, allocations: 8.456 MB / 7.914 GB, free: 123.2 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01662/30.67, allocations: 11.26 MB / 7.925 GB, free: 120 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02109/30.7, allocations: 9.853 MB / 7.935 GB, free: 119.8 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000141/30.7, allocations: 11.97 kB / 7.935 GB, free: 119.8 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.6369/31.33, allocations: 134.7 MB / 8.066 GB, free: 109.6 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.007037/31.34, allocations: 31.85 MB / 8.097 GB, free: 76.14 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002405/31.34, allocations: 47.06 kB / 8.097 GB, free: 76.14 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.43/32.77, allocations: 162.4 MB / 8.256 GB, free: 118.6 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01528/32.79, allocations: 2.418 MB / 8.258 GB, free: 118.6 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1473/32.93, allocations: 69.02 MB / 8.326 GB, free: 112.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02477/32.96, allocations: 0.914 MB / 8.327 GB, free: 112.7 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005359/32.96, allocations: 0.7954 MB / 8.327 GB, free: 112.7 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/32.96, allocations: 7.188 kB / 8.327 GB, free: 112.7 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6401/33.6, allocations: 131.7 MB / 8.456 GB, free: 104 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002398/33.6, allocations: 45 kB / 8.456 GB, free: 104 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478/35.08, allocations: 162.2 MB / 8.615 GB, free: 118.1 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01272/35.09, allocations: 2.377 MB / 8.617 GB, free: 118.1 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1539/35.25, allocations: 72.49 MB / 8.688 GB, free: 115.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0277/35.28, allocations: 0.8942 MB / 8.688 GB, free: 115.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005215/35.28, allocations: 0.7464 MB / 8.689 GB, free: 115.5 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * 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 (859): * Single equations (assignments): 845 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * 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 {33 119} Notification: Performance of prepare postOptimizeDAE: time 0.00824/35.29, allocations: 311.4 kB / 8.69 GB, free: 115.4 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.008899/35.3, allocations: 1.403 MB / 8.691 GB, free: 115.4 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2201/35.52, allocations: 58.95 MB / 8.748 GB, free: 109 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002247/35.52, allocations: 79.41 kB / 8.749 GB, free: 109 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001709/35.52, allocations: 27.06 kB / 8.749 GB, free: 109 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.1956/35.72, allocations: 52.77 MB / 8.8 GB, free: 101.8 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2436/35.96, allocations: 73.08 MB / 8.871 GB, free: 91.59 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.042e-05/35.96, allocations: 2.188 kB / 8.871 GB, free: 91.59 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007662/35.97, allocations: 1.11 MB / 8.873 GB, free: 91.58 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2056/36.17, allocations: 67.9 MB / 8.939 GB, free: 35.77 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002848/36.18, allocations: 165.6 kB / 8.939 GB, free: 35.69 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.8031/36.98, allocations: 29.11 MB / 8.967 GB, free: 118.2 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/36.98, allocations: 0 / 8.967 GB, free: 118.2 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2136/37.19, allocations: 63.85 MB / 9.03 GB, free: 113.6 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0145/37.21, allocations: 3.31 MB / 9.033 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008461/37.21, allocations: 81 kB / 9.033 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01876/37.23, allocations: 0.7922 MB / 9.034 GB, free: 113.3 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00297/37.24, allocations: 390.4 kB / 9.034 GB, free: 113.3 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002649/37.24, allocations: 274.8 kB / 9.035 GB, free: 113.3 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.02686/37.27, allocations: 10.28 MB / 9.045 GB, free: 112.8 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.05359/37.32, allocations: 7.682 MB / 9.052 GB, free: 112.8 MB / 0.9636 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.s[1],pmpSouth.filter.s[2],pmpNorth.vol.dynBal.U,pmpNorth.filter.s[1],pmpNorth.filter.s[2],valSouth1[1].filter.s[1],valSouth1[1].filter.s[2],valSouth1[2].filter.s[1],valSouth1[2].filter.s[2],valSouth1[3].filter.s[1],valSouth1[3].filter.s[2],valSouth1[4].filter.s[1],valSouth1[4].filter.s[2],valSouth2[1].filter.s[1],valSouth2[1].filter.s[2],valSouth2[2].filter.s[1],valSouth2[2].filter.s[2],valSouth2[3].filter.s[1],valSouth2[3].filter.s[2],valSouth2[4].filter.s[1],valSouth2[4].filter.s[2],valSouth2[5].filter.s[1],valSouth2[5].filter.s[2],valSouth2[6].filter.s[1],valSouth2[6].filter.s[2],valSouth2[7].filter.s[1],valSouth2[7].filter.s[2],valSouth2[8].filter.s[1],valSouth2[8].filter.s[2],valNorth1[1].filter.s[1],valNorth1[1].filter.s[2],valNorth1[2].filter.s[1],valNorth1[2].filter.s[2],valNorth1[3].filter.s[1],valNorth1[3].filter.s[2],valNorth1[4].filter.s[1],valNorth1[4].filter.s[2],valNorth2[1].filter.s[1],valNorth2[1].filter.s[2],valNorth2[2].filter.s[1],valNorth2[2].filter.s[2],valNorth2[3].filter.s[1],valNorth2[3].filter.s[2],valNorth2[4].filter.s[1],valNorth2[4].filter.s[2],valNorth2[5].filter.s[1],valNorth2[5].filter.s[2],valNorth2[6].filter.s[1],valNorth2[6].filter.s[2],valNorth2[7].filter.s[1],valNorth2[7].filter.s[2],valNorth2[8].filter.s[1],valNorth2[8].filter.s[2],valSouth.vol.dynBal.U,valSouth.filter.s[1],valSouth.filter.s[2],valNorth.vol.dynBal.U,valNorth.filter.s[1],valNorth.filter.s[2],spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,pumpHea.filter.s[1],pumpHea.filter.s[2],valHea.filter.s[1],valHea.filter.s[2],valCoo.filter.s[1],valCoo.filter.s[2],spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U,pumpCoo.filter.s[1],pumpCoo.filter.s[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 (538): * Single equations (assignments): 516 * 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 {33 119} Notification: Performance of Backend phase and start with SimCode phase: time 0.0111/37.33, allocations: 5.233 MB / 9.057 GB, free: 110.6 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.08365/37.41, allocations: 33.88 MB / 9.09 GB, free: 109.5 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.744e-05/37.41, allocations: 7 kB / 9.09 GB, free: 109.5 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.02553/37.44, allocations: 9.322 MB / 9.099 GB, free: 109.2 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0469/37.49, allocations: 6.861 MB / 9.106 GB, free: 108.9 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1104/37.6, allocations: 27.62 MB / 9.133 GB, free: 103.5 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03067/37.63, allocations: 9.627 MB / 9.142 GB, free: 102.3 MB / 0.9636 GB Notification: Performance of SimCode: time 2.565e-06/37.63, allocations: 0 / 9.142 GB, free: 102.3 MB / 0.9636 GB Notification: Performance of Templates: time 2.015/39.64, allocations: 466.6 MB / 9.598 GB, free: 88.42 MB / 0.9637 GB make -j1 -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic.makefile (rm -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic.sim & ./IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Examples.FlowSystem.Basic.pipe 2>&1)