Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4.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.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4") translateModel(IDEAS.Fluid.Examples.FlowSystem.Simplified4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4") [: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.003351/0.003351, allocations: 178.1 kB / 7.454 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6688/0.6688, allocations: 130.6 MB / 138.5 MB, free: 2.184 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.476/1.476, allocations: 221.3 MB / 391.4 MB, free: 13.1 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.0009536/0.0009535, allocations: 93.72 kB / 473.4 MB, free: 14.41 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 1.294e-05/1.297e-05, allocations: 4.344 kB / 0.5479 GB, free: 89.06 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1859/0.186, allocations: 81.58 MB / 0.6276 GB, free: 18.24 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.202/1.388, allocations: 423.8 MB / 1.041 GB, free: 162.3 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/1.388, allocations: 97.81 kB / 1.042 GB, free: 162.2 MB / 0.6667 GB Notification: Performance of FrontEnd: time 43.16/44.55, allocations: 10.54 GB / 11.58 GB, free: 66.7 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.003875/44.56, allocations: 398.5 kB / 11.58 GB, free: 66.61 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: 1775 * Number of variables: 1775 Notification: Performance of Generate backend data structure: time 0.05428/44.61, allocations: 13.13 MB / 11.59 GB, free: 60.88 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/44.61, allocations: 11.69 kB / 11.59 GB, free: 60.88 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01524/44.63, allocations: 2.271 MB / 11.59 GB, free: 59.97 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.079/44.71, allocations: 23.9 MB / 11.62 GB, free: 56.73 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007883/44.71, allocations: 228.9 kB / 11.62 GB, free: 56.73 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006414/44.71, allocations: 494.9 kB / 11.62 GB, free: 56.72 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04556/44.76, allocations: 18.59 MB / 11.64 GB, free: 51.29 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04043/44.8, allocations: 13.09 MB / 11.65 GB, free: 40.95 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005434/44.8, allocations: 15.88 kB / 11.65 GB, free: 40.93 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004531/44.8, allocations: 8 kB / 11.65 GB, free: 40.93 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002234/44.8, allocations: 183.1 kB / 11.65 GB, free: 40.75 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9543/45.76, allocations: 78.52 MB / 11.73 GB, free: 100.1 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01234/45.77, allocations: 8.383 MB / 11.73 GB, free: 100.1 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0143/45.78, allocations: 8.902 MB / 11.74 GB, free: 100 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07282/45.86, allocations: 32.69 MB / 11.77 GB, free: 91.8 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01622/45.87, allocations: 8.072 MB / 11.78 GB, free: 91.7 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=427): time 1.192e-05/45.87, allocations: 0 / 11.78 GB, free: 91.7 MB / 0.9636 GB Notification: Performance of matching and sorting (n=429): time 0.1163/45.99, allocations: 38.35 MB / 11.82 GB, free: 89.66 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.33e-05/45.99, allocations: 97.59 kB / 11.82 GB, free: 89.59 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04084/46.03, allocations: 12.28 MB / 11.83 GB, free: 88.92 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.003936/46.04, allocations: 40.95 kB / 11.83 GB, free: 88.89 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.00791/46.04, allocations: 3.473 MB / 11.84 GB, free: 87.74 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.00677/46.05, allocations: 1.409 MB / 11.84 GB, free: 87.01 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003337/46.05, allocations: 3.062 kB / 11.84 GB, free: 87.01 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0008254/46.05, allocations: 0.5643 MB / 11.84 GB, free: 86.69 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01347/46.07, allocations: 7.147 MB / 11.84 GB, free: 86.67 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01675/46.08, allocations: 9.766 MB / 11.85 GB, free: 83.59 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01913/46.1, allocations: 8.312 MB / 11.86 GB, free: 83.47 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002011/46.1, allocations: 14.47 kB / 11.86 GB, free: 83.47 MB / 0.9636 GB Notification: Performance of matching and sorting (n=851) (initialization): time 0.06129/46.17, allocations: 23.62 MB / 11.89 GB, free: 82.54 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.006195/46.17, allocations: 34.7 MB / 11.92 GB, free: 46.54 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002386/46.17, allocations: 49.94 kB / 11.92 GB, free: 46.54 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6792/46.85, allocations: 161.3 MB / 12.08 GB, free: 12.37 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009882/46.86, allocations: 1.473 MB / 12.08 GB, free: 11.3 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.7709/47.63, allocations: 24.85 MB / 12.1 GB, free: 104.7 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02068/47.65, allocations: 0.8324 MB / 12.1 GB, free: 104.7 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005474/47.66, allocations: 0.7444 MB / 12.1 GB, free: 104.7 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/47.66, allocations: 3.75 kB / 12.1 GB, free: 104.7 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.6033/48.26, allocations: 112.6 MB / 12.21 GB, free: 98.09 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003156/48.26, allocations: 56.47 kB / 12.21 GB, free: 98.09 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.6716/48.93, allocations: 161.3 MB / 12.37 GB, free: 69.39 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008152/48.94, allocations: 1.455 MB / 12.37 GB, free: 68.32 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05966/49, allocations: 26.46 MB / 12.4 GB, free: 54.19 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0215/49.02, allocations: 0.8005 MB / 12.4 GB, free: 53.68 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004385/49.03, allocations: 0.7029 MB / 12.4 GB, free: 53.27 MB / 0.9636 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pmpSouth.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real pmpNorth.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: 237 * 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 (661): * Single equations (assignments): 649 * Array equations: 4 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {32 38,5 80} Notification: Performance of prepare postOptimizeDAE: time 0.006604/49.03, allocations: 303.4 kB / 12.4 GB, free: 53.12 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.007281/49.04, allocations: 1.236 MB / 12.4 GB, free: 52.55 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05075/49.09, allocations: 18.33 MB / 12.42 GB, free: 42.24 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001258/49.09, allocations: 52 kB / 12.42 GB, free: 42.19 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.071e-05/49.09, allocations: 2.031 kB / 12.42 GB, free: 42.19 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.7086/49.8, allocations: 12.49 MB / 12.43 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2077/50.01, allocations: 65.86 MB / 12.5 GB, free: 98.19 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.017e-05/50.01, allocations: 6.844 kB / 12.5 GB, free: 98.19 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00502/50.01, allocations: 0.7901 MB / 12.5 GB, free: 98.18 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.2108/50.22, allocations: 66.87 MB / 12.56 GB, free: 84.88 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001999/50.23, allocations: 76.2 kB / 12.56 GB, free: 84.88 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02418/50.25, allocations: 12.75 MB / 12.57 GB, free: 80.72 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/50.25, allocations: 0.5625 kB / 12.57 GB, free: 80.72 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2014/50.45, allocations: 58.44 MB / 12.63 GB, free: 73.12 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01577/50.47, allocations: 2.732 MB / 12.63 GB, free: 72.82 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006651/50.48, allocations: 11.16 kB / 12.63 GB, free: 72.82 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01446/50.49, allocations: 0.6429 MB / 12.63 GB, free: 72.73 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002028/50.49, allocations: 290.3 kB / 12.64 GB, free: 72.73 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001833/50.49, allocations: 227.4 kB / 12.64 GB, free: 72.72 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.0242/50.52, allocations: 9.198 MB / 12.64 GB, free: 72.37 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.04235/50.56, allocations: 6.165 MB / 12.65 GB, free: 72.37 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (valSouth.vol.dynBal.U,valNorth.vol.dynBal.U,spl.vol.dynBal.U,spl1.vol.dynBal.U,pumpHea.vol.dynBal.U,spl2.vol.dynBal.U,spl3.vol.dynBal.U,pumpCoo.vol.dynBal.U) * 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 (372): * Single equations (assignments): 352 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {32 38,5 80} Notification: Performance of Backend phase and start with SimCode phase: time 0.01058/50.57, allocations: 5.241 MB / 12.66 GB, free: 70.04 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.06696/50.64, allocations: 28.25 MB / 12.68 GB, free: 69.34 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.705e-05/50.64, allocations: 2.562 kB / 12.68 GB, free: 69.34 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.01649/50.65, allocations: 7.405 MB / 12.69 GB, free: 69.18 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.04149/50.7, allocations: 6.296 MB / 12.7 GB, free: 68.04 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06435/50.76, allocations: 21 MB / 12.72 GB, free: 52.02 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01835/50.78, allocations: 8.451 MB / 12.73 GB, free: 46.67 MB / 0.9636 GB Notification: Performance of SimCode: time 1.062e-06/50.78, allocations: 0 / 12.73 GB, free: 46.67 MB / 0.9636 GB Notification: Performance of Templates: time 2.496/53.28, allocations: 427.1 MB / 13.14 GB, free: 95.7 MB / 0.9637 GB make -j1 -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4.makefile (rm -f IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4.pipe ; mkfifo IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4.pipe >> ../files/IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4.sim & ./IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Examples.FlowSystem.Simplified4.pipe 2>&1)