Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2.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-master/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-master/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.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2") translateModel(IDEAS.Fluid.Examples.FlowSystem.Simplified2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2") [: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.002075/0.002075, allocations: 178.3 kB / 7.462 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.5855/0.5855, allocations: 133.5 MB / 141.4 MB, free: 15.65 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.103/1.103, allocations: 221.3 MB / 395 MB, free: 10.18 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.0008377/0.0008376, allocations: 94.97 kB / 477.8 MB, free: 10.77 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.614e-06/7.764e-06, allocations: 2.531 kB / 0.5528 GB, free: 89.17 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 82.3 MB / 0.6332 GB, free: 14.08 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7395/0.85, allocations: 423.4 MB / 1.047 GB, free: 187.1 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001723/0.8502, allocations: 93 kB / 1.047 GB, free: 187.1 MB / 0.6823 GB Notification: Performance of FrontEnd: time 24.96/25.81, allocations: 8.759 GB / 9.806 GB, free: 78.64 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.002702/25.81, allocations: 432.8 kB / 9.806 GB, free: 78.55 MB / 0.9636 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.04145/25.85, allocations: 14.4 MB / 9.821 GB, free: 72.39 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/25.85, allocations: 11.52 kB / 9.821 GB, free: 72.39 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01141/25.86, allocations: 2.236 MB / 9.823 GB, free: 71.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06098/25.93, allocations: 25.2 MB / 9.847 GB, free: 67.86 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005794/25.93, allocations: 250.8 kB / 9.848 GB, free: 67.86 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004138/25.93, allocations: 0.5865 MB / 9.848 GB, free: 67.84 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02875/25.96, allocations: 19.94 MB / 9.868 GB, free: 54.97 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02642/25.99, allocations: 14.61 MB / 9.882 GB, free: 43.46 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002868/25.99, allocations: 11.84 kB / 9.882 GB, free: 43.45 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002362/25.99, allocations: 8.703 kB / 9.882 GB, free: 43.44 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002595/25.99, allocations: 383.5 kB / 9.882 GB, free: 43.09 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5811/26.57, allocations: 83.61 MB / 9.964 GB, free: 71.54 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/26.58, allocations: 10.56 MB / 9.974 GB, free: 71.38 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01233/26.59, allocations: 9.581 MB / 9.984 GB, free: 71.32 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06236/26.66, allocations: 36.19 MB / 10.02 GB, free: 63.18 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01255/26.67, allocations: 9.269 MB / 10.03 GB, free: 63.02 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=616): time 8.215e-06/26.67, allocations: 0 / 10.03 GB, free: 63.02 MB / 0.9636 GB Notification: Performance of matching and sorting (n=618): time 0.6168/27.29, allocations: 150.4 MB / 10.17 GB, free: 53.11 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.315e-05/27.29, allocations: 118.6 kB / 10.17 GB, free: 53.04 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03011/27.32, allocations: 13.68 MB / 10.19 GB, free: 52.31 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.003522/27.32, allocations: 43.48 kB / 10.19 GB, free: 52.28 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.006009/27.33, allocations: 3.687 MB / 10.19 GB, free: 51.08 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.01012/27.34, allocations: 2.11 MB / 10.19 GB, free: 49.98 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001057/27.34, allocations: 0 / 10.19 GB, free: 49.98 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0003997/27.34, allocations: 0.6419 MB / 10.19 GB, free: 49.65 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009366/27.35, allocations: 8.297 MB / 10.2 GB, free: 45.89 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01083/27.36, allocations: 11.05 MB / 10.21 GB, free: 38.34 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01384/27.37, allocations: 9.694 MB / 10.22 GB, free: 33.68 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.577e-05/27.37, allocations: 16 kB / 10.22 GB, free: 33.66 MB / 0.9636 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 1.062/28.43, allocations: 133.8 MB / 10.35 GB, free: 102.4 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 0.004797/28.44, allocations: 35.22 MB / 10.39 GB, free: 65.46 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/28.44, allocations: 53.34 kB / 10.39 GB, free: 65.46 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6219/29.06, allocations: 161.2 MB / 10.55 GB, free: 49.97 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0141/29.07, allocations: 2.512 MB / 10.55 GB, free: 49.96 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1321/29.21, allocations: 67.34 MB / 10.61 GB, free: 18.25 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01865/29.23, allocations: 0.9245 MB / 10.61 GB, free: 17.41 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003276/29.23, allocations: 0.7975 MB / 10.62 GB, free: 16.68 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 8.486e-06/29.23, allocations: 4 kB / 10.62 GB, free: 16.68 MB / 0.9948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.054/30.28, allocations: 131.1 MB / 10.74 GB, free: 123.7 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001749/30.28, allocations: 55.09 kB / 10.74 GB, free: 123.7 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6264/30.91, allocations: 161.2 MB / 10.9 GB, free: 108.2 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01225/30.92, allocations: 2.478 MB / 10.9 GB, free: 108.2 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1333/31.06, allocations: 68.38 MB / 10.97 GB, free: 66.68 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01784/31.07, allocations: 0.9008 MB / 10.97 GB, free: 65.85 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003047/31.08, allocations: 0.7537 MB / 10.97 GB, free: 65.16 MB / 1.026 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 (907): * Single equations (assignments): 893 * 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 {14 90} Notification: Performance of prepare postOptimizeDAE: time 0.004234/31.08, allocations: 316.5 kB / 10.97 GB, free: 65.01 MB / 1.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004221/31.08, allocations: 1.399 MB / 10.97 GB, free: 64.36 MB / 1.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1837/31.27, allocations: 58.09 MB / 11.03 GB, free: 14.07 MB / 1.026 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001266/31.27, allocations: 77.86 kB / 11.03 GB, free: 14 MB / 1.026 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.271e-05/31.27, allocations: 28 kB / 11.03 GB, free: 13.97 MB / 1.026 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.6873/31.96, allocations: 52 MB / 11.08 GB, free: 116.7 MB / 1.026 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2103/32.17, allocations: 71.84 MB / 11.15 GB, free: 106.6 MB / 1.026 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-05/32.17, allocations: 0 / 11.15 GB, free: 106.6 MB / 1.026 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006981/32.17, allocations: 1.159 MB / 11.15 GB, free: 106.6 MB / 1.026 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1991/32.37, allocations: 66.78 MB / 11.22 GB, free: 93.34 MB / 1.026 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001793/32.37, allocations: 171.6 kB / 11.22 GB, free: 93.34 MB / 1.026 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0536/32.43, allocations: 26.34 MB / 11.24 GB, free: 86.73 MB / 1.026 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.074e-06/32.43, allocations: 5.594 kB / 11.24 GB, free: 86.73 MB / 1.026 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1907/32.62, allocations: 62.8 MB / 11.3 GB, free: 68.34 MB / 1.026 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0104/32.63, allocations: 3.266 MB / 11.31 GB, free: 66.8 MB / 1.026 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006017/32.63, allocations: 80.22 kB / 11.31 GB, free: 66.76 MB / 1.026 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01382/32.65, allocations: 0.7758 MB / 11.31 GB, free: 66.25 MB / 1.026 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00168/32.65, allocations: 389.5 kB / 11.31 GB, free: 66.07 MB / 1.026 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001469/32.65, allocations: 270.8 kB / 11.31 GB, free: 65.89 MB / 1.026 GB Notification: Performance of sort global known variables: time 0.01685/32.67, allocations: 10.3 MB / 11.32 GB, free: 60.29 MB / 1.026 GB Notification: Performance of remove unused functions: time 0.0376/32.71, allocations: 7.693 MB / 11.33 GB, free: 53.14 MB / 1.026 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 (562): * Single equations (assignments): 540 * 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 {14 90} Notification: Performance of Backend phase and start with SimCode phase: time 0.00823/32.71, allocations: 5.23 MB / 11.33 GB, free: 48.66 MB / 1.026 GB Notification: Performance of simCode: created initialization part: time 0.0579/32.77, allocations: 32.86 MB / 11.36 GB, free: 31.02 MB / 1.026 GB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/32.77, allocations: 4 kB / 11.36 GB, free: 31.02 MB / 1.026 GB Notification: Performance of simCode: created simulation system equations: time 0.01497/32.79, allocations: 8.853 MB / 11.37 GB, free: 26.26 MB / 1.026 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0322/32.82, allocations: 6.855 MB / 11.38 GB, free: 22.4 MB / 1.026 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06035/32.88, allocations: 27.54 MB / 11.41 GB, free: 1.73 MB / 1.026 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01519/32.9, allocations: 9.768 MB / 11.42 GB, free: 11.88 MB / 1.042 GB Notification: Performance of SimCode: time 6.41e-07/32.9, allocations: 0 / 11.42 GB, free: 11.88 MB / 1.042 GB Notification: Performance of Templates: time 1.908/34.8, allocations: 460.9 MB / 11.87 GB, free: 151.3 MB / 1.073 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2.makefile (rm -f IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2.sim & ./IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.Examples.FlowSystem.Simplified2.pipe 2>&1)