Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1.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.Simplified1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1") translateModel(IDEAS.Fluid.Examples.FlowSystem.Simplified1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.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/Complex 4.0.0+maint.om/package.mo): time 0.003591/0.003591, allocations: 187.2 kB / 7.46 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6568/0.6568, allocations: 130.6 MB / 138.5 MB, free: 2.148 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.605/1.605, allocations: 221.3 MB / 391.4 MB, free: 13.04 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.0009437/0.0009438, allocations: 89.78 kB / 473.4 MB, free: 14.38 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 7.274e-06/7.314e-06, allocations: 0 / 0.5479 GB, free: 89.04 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1833, allocations: 81.58 MB / 0.6276 GB, free: 18.19 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.189/1.372, allocations: 423.1 MB / 1.041 GB, free: 188.7 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/1.372, allocations: 96.44 kB / 1.041 GB, free: 188.6 MB / 0.6667 GB Notification: Performance of FrontEnd: time 36.17/37.54, allocations: 8.758 GB / 9.799 GB, free: 58.41 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 0.004902/37.54, allocations: 431.9 kB / 9.8 GB, free: 58.32 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.06651/37.61, allocations: 14.41 MB / 9.814 GB, free: 52.18 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 5.421e-05/37.61, allocations: 14.52 kB / 9.814 GB, free: 52.18 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01871/37.63, allocations: 2.231 MB / 9.816 GB, free: 51.19 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.08815/37.72, allocations: 25.19 MB / 9.841 GB, free: 47.83 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000796/37.72, allocations: 250.8 kB / 9.841 GB, free: 47.83 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006368/37.72, allocations: 0.5856 MB / 9.841 GB, free: 47.82 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04092/37.76, allocations: 19.92 MB / 9.861 GB, free: 47.79 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04412/37.81, allocations: 14.61 MB / 9.875 GB, free: 46.98 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005379/37.81, allocations: 18.22 kB / 9.875 GB, free: 46.96 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00459/37.81, allocations: 7.125 kB / 9.875 GB, free: 46.96 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003771/37.81, allocations: 374.3 kB / 9.875 GB, free: 46.95 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1672/37.98, allocations: 83.62 MB / 9.957 GB, free: 1.117 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02328/38.01, allocations: 11.01 MB / 9.968 GB, free: 8.859 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01675/38.02, allocations: 9.574 MB / 9.977 GB, free: 272 kB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8257/38.85, allocations: 36.19 MB / 10.01 GB, free: 115.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01672/38.86, allocations: 9.266 MB / 10.02 GB, free: 115.7 MB / 0.948 GB Notification: Performance of pre-optimization done (n=616): time 1.14e-05/38.86, allocations: 1.781 kB / 10.02 GB, free: 115.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=618): time 0.681/39.55, allocations: 150.4 MB / 10.17 GB, free: 106.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001082/39.55, allocations: 119.5 kB / 10.17 GB, free: 106.2 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03737/39.58, allocations: 13.69 MB / 10.18 GB, free: 105.4 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.004057/39.59, allocations: 39.48 kB / 10.18 GB, free: 105.4 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.007749/39.59, allocations: 3.679 MB / 10.19 GB, free: 104.2 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.01171/39.61, allocations: 2.103 MB / 10.19 GB, free: 103.1 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004121/39.61, allocations: 0 / 10.19 GB, free: 103.1 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.001082/39.61, allocations: 0.6467 MB / 10.19 GB, free: 102.8 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01535/39.63, allocations: 8.288 MB / 10.2 GB, free: 102.8 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01794/39.65, allocations: 11.06 MB / 10.21 GB, free: 99.55 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01868/39.66, allocations: 9.683 MB / 10.22 GB, free: 99.35 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000142/39.66, allocations: 18.09 kB / 10.22 GB, free: 99.35 MB / 0.948 GB Notification: Performance of matching and sorting (n=1102) (initialization): time 0.627/40.29, allocations: 133.8 MB / 10.35 GB, free: 39.43 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.007142/40.3, allocations: 35.22 MB / 10.38 GB, free: 2.215 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002913/40.3, allocations: 48 kB / 10.38 GB, free: 2.168 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391/41.69, allocations: 161.4 MB / 10.54 GB, free: 97.93 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01587/41.71, allocations: 2.51 MB / 10.54 GB, free: 97.91 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1451/41.85, allocations: 67.56 MB / 10.61 GB, free: 90.87 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02152/41.87, allocations: 0.9232 MB / 10.61 GB, free: 90.81 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004565/41.88, allocations: 0.7943 MB / 10.61 GB, free: 90.81 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.475e-05/41.88, allocations: 2.906 kB / 10.61 GB, free: 90.81 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 1.432/43.31, allocations: 131.1 MB / 10.74 GB, free: 102.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000319/43.31, allocations: 50.72 kB / 10.74 GB, free: 102.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6701/43.98, allocations: 161.2 MB / 10.89 GB, free: 90.18 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01328/43.99, allocations: 2.474 MB / 10.9 GB, free: 90.16 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1587/44.15, allocations: 68.52 MB / 10.96 GB, free: 86.36 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02328/44.17, allocations: 0.9006 MB / 10.97 GB, free: 86.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005439/44.18, allocations: 0.7532 MB / 10.97 GB, free: 86.3 MB / 0.948 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 {39 65} Notification: Performance of prepare postOptimizeDAE: time 0.01015/44.19, allocations: 316.5 kB / 10.97 GB, free: 86.19 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01059/44.2, allocations: 1.402 MB / 10.97 GB, free: 86.19 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2158/44.42, allocations: 58.08 MB / 11.02 GB, free: 61.78 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002348/44.42, allocations: 77 kB / 11.02 GB, free: 61.71 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001146/44.42, allocations: 29.03 kB / 11.02 GB, free: 61.68 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.918/45.34, allocations: 53.59 MB / 11.08 GB, free: 101.4 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2292/45.56, allocations: 71.83 MB / 11.15 GB, free: 94.02 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-05/45.56, allocations: 3.188 kB / 11.15 GB, free: 94.02 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007924/45.57, allocations: 1.168 MB / 11.15 GB, free: 94.02 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2099/45.78, allocations: 67.03 MB / 11.21 GB, free: 80.7 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003945/45.79, allocations: 160.1 kB / 11.21 GB, free: 80.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05761/45.84, allocations: 26.46 MB / 11.24 GB, free: 74.08 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/45.84, allocations: 4.062 kB / 11.24 GB, free: 74.08 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2073/46.05, allocations: 62.79 MB / 11.3 GB, free: 66.41 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01349/46.07, allocations: 3.268 MB / 11.3 GB, free: 65.94 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007588/46.07, allocations: 82.09 kB / 11.3 GB, free: 65.94 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01807/46.09, allocations: 0.7772 MB / 11.3 GB, free: 65.84 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002733/46.09, allocations: 381.8 kB / 11.31 GB, free: 65.84 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002478/46.1, allocations: 269.5 kB / 11.31 GB, free: 65.84 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.02493/46.12, allocations: 10.3 MB / 11.32 GB, free: 65.4 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.05299/46.17, allocations: 7.687 MB / 11.32 GB, free: 65.4 MB / 0.948 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 {39 65} Notification: Performance of Backend phase and start with SimCode phase: time 0.01179/46.19, allocations: 5.227 MB / 11.33 GB, free: 63.12 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.07427/46.26, allocations: 33.29 MB / 11.36 GB, free: 50.97 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/46.26, allocations: 4 kB / 11.36 GB, free: 50.96 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.01839/46.28, allocations: 9.057 MB / 11.37 GB, free: 46.03 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03929/46.32, allocations: 6.854 MB / 11.38 GB, free: 42.17 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.284/47.6, allocations: 27.56 MB / 11.4 GB, free: 100.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01927/47.62, allocations: 9.645 MB / 11.41 GB, free: 99.18 MB / 0.948 GB Notification: Performance of SimCode: time 9.92e-07/47.62, allocations: 1.531 kB / 11.41 GB, free: 99.18 MB / 0.948 GB Notification: Performance of Templates: time 1.362/48.98, allocations: 459 MB / 11.86 GB, free: 92.4 MB / 0.948 GB make -j1 -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1.makefile (rm -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1.sim & ./IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified1.pipe 2>&1)