Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_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.3+maint.om/package.mo): time 0.0008953/0.0008953, allocations: 188.9 kB / 7.805 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.05/1.05, allocations: 205.2 MB / 213.4 MB, free: 13.87 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008286/0.0008286, allocations: 105 kB / 261.4 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1594/0.1594, allocations: 43.5 MB / 352.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.42e-06/5.451e-06, allocations: 0 / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2433, allocations: 58.84 MB / 476.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.317/4.561, allocations: 2.821 GB / 3.286 GB, free: 45.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002062/4.561, allocations: 71.97 kB / 3.286 GB, free: 45.13 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.001/6.562, allocations: 0.7405 GB / 4.027 GB, free: 38.12 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.764e-05/6.562, allocations: 31.86 kB / 4.027 GB, free: 38.11 MB / 0.5105 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.009135/6.571, allocations: 2.771 MB / 4.03 GB, free: 36.55 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/6.571, allocations: 7.562 kB / 4.03 GB, free: 36.55 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003231/6.574, allocations: 0.4888 MB / 4.03 GB, free: 36.43 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/6.577, allocations: 1.142 MB / 4.031 GB, free: 35.79 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/6.577, allocations: 107.5 kB / 4.031 GB, free: 35.72 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001534/6.577, allocations: 63.31 kB / 4.031 GB, free: 35.72 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002023/6.579, allocations: 1.362 MB / 4.033 GB, free: 35.2 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002129/6.581, allocations: 1.481 MB / 4.034 GB, free: 34.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.05e-05/6.581, allocations: 6.656 kB / 4.034 GB, free: 34.42 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/6.581, allocations: 6.844 kB / 4.034 GB, free: 34.42 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.402e-05/6.581, allocations: 81.81 kB / 4.034 GB, free: 34.41 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4541/7.035, allocations: 135.3 MB / 4.166 GB, free: 81.11 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007774/7.036, allocations: 0.4911 MB / 4.167 GB, free: 81.09 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000446/7.037, allocations: 380.7 kB / 4.167 GB, free: 81.09 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.08102/7.118, allocations: 48.32 MB / 4.214 GB, free: 50.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000988/7.119, allocations: 0.5043 MB / 4.215 GB, free: 50.19 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=66): time 3.056e-06/7.119, allocations: 0 / 4.215 GB, free: 50.19 MB / 0.5417 GB Notification: Performance of matching and sorting (n=70): time 0.008897/7.128, allocations: 3.236 MB / 4.218 GB, free: 49.52 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.784e-05/7.128, allocations: 349 kB / 4.218 GB, free: 49.11 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001143/7.129, allocations: 0.8593 MB / 4.219 GB, free: 48.96 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.444e-05/7.129, allocations: 28.45 kB / 4.219 GB, free: 48.93 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/7.129, allocations: 0.5021 MB / 4.22 GB, free: 48.66 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/7.129, allocations: 240.5 kB / 4.22 GB, free: 48.55 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.593e-05/7.13, allocations: 4.062 kB / 4.22 GB, free: 48.54 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 8.056e-05/7.13, allocations: 355 kB / 4.22 GB, free: 48.24 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006986/7.13, allocations: 0.4933 MB / 4.221 GB, free: 48.23 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008623/7.131, allocations: 0.9642 MB / 4.222 GB, free: 47.66 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006994/7.138, allocations: 1.769 MB / 4.224 GB, free: 47.62 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.688e-06/7.138, allocations: 9.594 kB / 4.224 GB, free: 47.61 MB / 0.5417 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01014/7.148, allocations: 3.299 MB / 4.227 GB, free: 47.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009649/7.149, allocations: 5.385 MB / 4.232 GB, free: 41.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.204e-05/7.149, allocations: 15.66 kB / 4.232 GB, free: 41.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003286/7.153, allocations: 0.7577 MB / 4.233 GB, free: 41.77 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009084/7.154, allocations: 251.9 kB / 4.233 GB, free: 41.77 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003236/7.157, allocations: 1.865 MB / 4.235 GB, free: 41.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/7.159, allocations: 123.3 kB / 4.235 GB, free: 41.21 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/7.159, allocations: 68.59 kB / 4.235 GB, free: 41.21 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/7.159, allocations: 7.844 kB / 4.235 GB, free: 41.21 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008276/7.167, allocations: 2.492 MB / 4.237 GB, free: 41.15 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/7.167, allocations: 11.62 kB / 4.237 GB, free: 41.15 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/7.168, allocations: 347.6 kB / 4.238 GB, free: 41.13 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009463/7.169, allocations: 287.2 kB / 4.238 GB, free: 41.13 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001115/7.17, allocations: 1.082 MB / 4.239 GB, free: 40.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/7.172, allocations: 112.1 kB / 4.239 GB, free: 40.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001119/7.172, allocations: 77.64 kB / 4.239 GB, free: 40.58 MB / 0.5417 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.0003748/7.172, allocations: 152.6 kB / 4.239 GB, free: 40.47 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009898/7.173, allocations: 410.6 kB / 4.24 GB, free: 40.41 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004029/7.177, allocations: 3.018 MB / 4.243 GB, free: 40.22 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.972e-05/7.177, allocations: 33.73 kB / 4.243 GB, free: 40.22 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/7.177, allocations: 0 / 4.243 GB, free: 40.22 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.159e-05/7.177, allocations: 7.375 kB / 4.243 GB, free: 40.21 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00572/7.183, allocations: 4.694 MB / 4.247 GB, free: 39.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/7.183, allocations: 0 / 4.247 GB, free: 39.51 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000533/7.184, allocations: 126.8 kB / 4.248 GB, free: 39.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004463/7.188, allocations: 1.342 MB / 4.249 GB, free: 39.42 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-05/7.188, allocations: 16.36 kB / 4.249 GB, free: 39.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001976/7.19, allocations: 2.159 MB / 4.251 GB, free: 38.35 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/7.19, allocations: 0.9844 kB / 4.251 GB, free: 38.35 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004657/7.195, allocations: 3.425 MB / 4.254 GB, free: 37.95 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006593/7.195, allocations: 363.7 kB / 4.255 GB, free: 37.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001993/7.196, allocations: 8.516 kB / 4.255 GB, free: 37.78 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008097/7.196, allocations: 71.33 kB / 4.255 GB, free: 37.77 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/7.197, allocations: 61.56 kB / 4.255 GB, free: 37.77 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.135e-05/7.197, allocations: 34.11 kB / 4.255 GB, free: 37.76 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.000877/7.198, allocations: 0.623 MB / 4.255 GB, free: 37.65 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007553/7.205, allocations: 1.959 MB / 4.257 GB, free: 37.65 MB / 0.5417 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.007069/7.212, allocations: 2.573 MB / 4.26 GB, free: 37.27 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003562/7.216, allocations: 2.464 MB / 4.262 GB, free: 37.23 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.723e-06/7.216, allocations: 4.969 kB / 4.262 GB, free: 37.23 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001302/7.217, allocations: 1.155 MB / 4.263 GB, free: 37.22 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/7.219, allocations: 453.9 kB / 4.264 GB, free: 37.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003681/7.223, allocations: 2.505 MB / 4.266 GB, free: 36.63 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000852/7.224, allocations: 1.444 MB / 4.268 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of SimCode: time 4.11e-07/7.224, allocations: 0 / 4.268 GB, free: 35.88 MB / 0.5417 GB Notification: Performance of Templates: time 0.08059/7.304, allocations: 64.05 MB / 4.33 GB, free: 14.6 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1)