Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") [: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 3.2.2+maint.om/package.mo): time 0.002296/0.002296, allocations: 187 kB / 7.459 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.171/1.171, allocations: 194.2 MB / 202.1 MB, free: 8.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001733/0.001733, allocations: 120.1 kB / 247.1 MB, free: 6.402 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1669/0.1669, allocations: 39.94 MB / 331.9 MB, free: 4.957 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.721e-06/5.761e-06, allocations: 0 / 392.8 MB, free: 75.9 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09333/0.09335, allocations: 54.87 MB / 447.6 MB, free: 21 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.808/4.901, allocations: 2.652 GB / 3.089 GB, free: 54.74 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/4.902, allocations: 75.09 kB / 3.089 GB, free: 54.71 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.973/7.874, allocations: 0.7366 GB / 3.825 GB, free: 40.08 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0002234/7.875, allocations: 41.23 kB / 3.826 GB, free: 40.07 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.01497/7.89, allocations: 2.773 MB / 3.828 GB, free: 38.63 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.827e-05/7.89, allocations: 7.469 kB / 3.828 GB, free: 38.63 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004455/7.894, allocations: 498.7 kB / 3.829 GB, free: 38.56 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004288/7.899, allocations: 1.131 MB / 3.83 GB, free: 38.21 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/7.899, allocations: 116 kB / 3.83 GB, free: 38.15 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000568/7.899, allocations: 58.97 kB / 3.83 GB, free: 38.14 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003537/7.903, allocations: 1.362 MB / 3.831 GB, free: 38.14 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004229/7.907, allocations: 1.478 MB / 3.833 GB, free: 37.43 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.398e-05/7.907, allocations: 7.094 kB / 3.833 GB, free: 37.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/7.908, allocations: 7.719 kB / 3.833 GB, free: 37.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000146/7.908, allocations: 82.69 kB / 3.833 GB, free: 37.41 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5905/8.498, allocations: 135.1 MB / 3.965 GB, free: 83.07 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00106/8.499, allocations: 0.4929 MB / 3.965 GB, free: 83.05 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005516/8.5, allocations: 374.6 kB / 3.966 GB, free: 83.05 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09855/8.598, allocations: 48.33 MB / 4.013 GB, free: 52.33 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001841/8.6, allocations: 0.5051 MB / 4.013 GB, free: 52.22 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=66): time 5.61e-06/8.6, allocations: 0 / 4.013 GB, free: 52.22 MB / 0.5261 GB Notification: Performance of matching and sorting (n=70): time 0.0144/8.615, allocations: 3.212 MB / 4.016 GB, free: 51.58 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002061/8.615, allocations: 351 kB / 4.017 GB, free: 51.18 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/8.617, allocations: 0.8686 MB / 4.018 GB, free: 51.02 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001537/8.617, allocations: 25.7 kB / 4.018 GB, free: 50.99 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004795/8.618, allocations: 0.5 MB / 4.018 GB, free: 50.73 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002897/8.618, allocations: 242.1 kB / 4.018 GB, free: 50.61 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.829e-05/8.618, allocations: 0 / 4.018 GB, free: 50.61 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001264/8.618, allocations: 359 kB / 4.019 GB, free: 50.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000816/8.619, allocations: 0.499 MB / 4.019 GB, free: 50.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001258/8.62, allocations: 0.9561 MB / 4.02 GB, free: 49.73 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007958/8.628, allocations: 1.759 MB / 4.022 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.792e-05/8.628, allocations: 3.812 kB / 4.022 GB, free: 49.68 MB / 0.5261 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01177/8.64, allocations: 3.294 MB / 4.025 GB, free: 49.54 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.001481/8.642, allocations: 5.391 MB / 4.03 GB, free: 43.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.615e-05/8.642, allocations: 18.16 kB / 4.03 GB, free: 43.87 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003459/8.645, allocations: 0.7585 MB / 4.031 GB, free: 43.84 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/8.646, allocations: 252 kB / 4.031 GB, free: 43.83 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003626/8.65, allocations: 1.86 MB / 4.033 GB, free: 43.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/8.652, allocations: 130.3 kB / 4.033 GB, free: 43.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001477/8.652, allocations: 73.36 kB / 4.033 GB, free: 43.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.524e-05/8.652, allocations: 3.875 kB / 4.033 GB, free: 43.27 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0091/8.661, allocations: 2.493 MB / 4.036 GB, free: 43.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/8.661, allocations: 12.72 kB / 4.036 GB, free: 43.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001249/8.663, allocations: 342.1 kB / 4.036 GB, free: 43.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001082/8.664, allocations: 291.2 kB / 4.036 GB, free: 43.19 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001327/8.665, allocations: 1.086 MB / 4.037 GB, free: 42.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/8.667, allocations: 117.7 kB / 4.038 GB, free: 42.64 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001569/8.667, allocations: 73.12 kB / 4.038 GB, free: 42.64 MB / 0.5261 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 19 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,source.medium.phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.0006942/8.668, allocations: 157.8 kB / 4.038 GB, free: 42.54 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/8.669, allocations: 407.6 kB / 4.038 GB, free: 42.48 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005241/8.675, allocations: 3.009 MB / 4.041 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.564e-05/8.675, allocations: 27.97 kB / 4.041 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/8.675, allocations: 5.438 kB / 4.041 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/8.675, allocations: 6.328 kB / 4.041 GB, free: 42.27 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007027/8.682, allocations: 4.685 MB / 4.046 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/8.682, allocations: 3.062 kB / 4.046 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005546/8.682, allocations: 127.5 kB / 4.046 GB, free: 41.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004691/8.687, allocations: 1.346 MB / 4.047 GB, free: 41.47 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001074/8.687, allocations: 21.44 kB / 4.047 GB, free: 41.47 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002394/8.69, allocations: 2.155 MB / 4.049 GB, free: 40.4 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/8.69, allocations: 1.219 kB / 4.049 GB, free: 40.4 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005549/8.695, allocations: 3.424 MB / 4.053 GB, free: 40 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009988/8.696, allocations: 358.6 kB / 4.053 GB, free: 39.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002095/8.696, allocations: 6.125 kB / 4.053 GB, free: 39.83 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008962/8.697, allocations: 79.39 kB / 4.053 GB, free: 39.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/8.698, allocations: 55.97 kB / 4.053 GB, free: 39.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.997e-05/8.698, allocations: 36.56 kB / 4.053 GB, free: 39.81 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001042/8.699, allocations: 0.6239 MB / 4.054 GB, free: 39.7 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01048/8.709, allocations: 1.945 MB / 4.056 GB, free: 39.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 18 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (66): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.01431/8.724, allocations: 2.572 MB / 4.058 GB, free: 39.33 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005104/8.729, allocations: 2.471 MB / 4.061 GB, free: 39.29 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/8.729, allocations: 0 / 4.061 GB, free: 39.29 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001657/8.73, allocations: 1.153 MB / 4.062 GB, free: 39.27 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003206/8.734, allocations: 442.8 kB / 4.062 GB, free: 39.25 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006697/8.74, allocations: 2.508 MB / 4.065 GB, free: 38.68 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001446/8.742, allocations: 1.44 MB / 4.066 GB, free: 37.93 MB / 0.5261 GB Notification: Performance of SimCode: time 2.876e-06/8.742, allocations: 3.344 kB / 4.066 GB, free: 37.93 MB / 0.5261 GB Notification: Performance of Templates: time 0.09232/8.834, allocations: 63.91 MB / 4.128 GB, free: 17.11 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1)