Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_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.1+maint.om/package.mo): time 0.005514/0.005513, allocations: 184.2 kB / 7.454 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.781/1.781, allocations: 170.6 MB / 178.4 MB, free: 15.38 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001934/0.001934, allocations: 115.8 kB / 217.7 MB, free: 8.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2365/0.2365, allocations: 37.97 MB / 294.8 MB, free: 9.598 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.344e-05/1.347e-05, allocations: 1.25 kB / 349.5 MB, free: 37.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1581, allocations: 48.71 MB / 398.2 MB, free: 5.656 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.004/7.162, allocations: 2.541 GB / 2.93 GB, free: 117.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/7.163, allocations: 76.92 kB / 2.93 GB, free: 117.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.727/9.889, allocations: 0.7191 GB / 3.649 GB, free: 38.83 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001997/9.889, allocations: 28.94 kB / 3.649 GB, free: 38.82 MB / 458.7 MB 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.01301/9.902, allocations: 2.68 MB / 3.652 GB, free: 37.45 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/9.902, allocations: 11.78 kB / 3.652 GB, free: 37.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004196/9.907, allocations: 478.4 kB / 3.652 GB, free: 37.38 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0045/9.911, allocations: 1.132 MB / 3.653 GB, free: 37.06 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002757/9.911, allocations: 110.3 kB / 3.653 GB, free: 37 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005691/9.912, allocations: 60.84 kB / 3.654 GB, free: 36.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003865/9.916, allocations: 1.363 MB / 3.655 GB, free: 36.98 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004775/9.921, allocations: 1.491 MB / 3.656 GB, free: 36.65 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.038e-05/9.921, allocations: 0 / 3.656 GB, free: 36.65 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002957/9.921, allocations: 6.422 kB / 3.656 GB, free: 36.65 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001345/9.921, allocations: 82.89 kB / 3.656 GB, free: 36.64 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5213/10.44, allocations: 134.9 MB / 3.788 GB, free: 78.05 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/10.44, allocations: 499.2 kB / 3.789 GB, free: 78.04 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005769/10.44, allocations: 380.1 kB / 3.789 GB, free: 78.03 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09416/10.54, allocations: 48.31 MB / 3.836 GB, free: 47.41 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001132/10.54, allocations: 0.4988 MB / 3.837 GB, free: 47.3 MB / 490.7 MB Notification: Performance of pre-optimization done (n=66): time 3.366e-06/10.54, allocations: 0 / 3.837 GB, free: 47.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=70): time 0.00985/10.55, allocations: 3.22 MB / 3.84 GB, free: 46.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/10.55, allocations: 344.8 kB / 3.84 GB, free: 46.25 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00125/10.55, allocations: 0.8611 MB / 3.841 GB, free: 46.1 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.245e-05/10.55, allocations: 29.77 kB / 3.841 GB, free: 46.07 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000402/10.55, allocations: 0.5016 MB / 3.842 GB, free: 45.81 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/10.55, allocations: 251.5 kB / 3.842 GB, free: 45.69 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.788e-05/10.55, allocations: 0 / 3.842 GB, free: 45.69 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.302e-05/10.55, allocations: 354.9 kB / 3.842 GB, free: 45.38 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007133/10.55, allocations: 0.4952 MB / 3.843 GB, free: 45.38 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009073/10.55, allocations: 0.9615 MB / 3.844 GB, free: 44.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007369/10.56, allocations: 1.757 MB / 3.845 GB, free: 44.76 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.968e-05/10.56, allocations: 6.562 kB / 3.845 GB, free: 44.76 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.01263/10.57, allocations: 3.291 MB / 3.848 GB, free: 44.62 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001343/10.58, allocations: 5.401 MB / 3.854 GB, free: 38.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/10.58, allocations: 14.12 kB / 3.854 GB, free: 38.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00357/10.58, allocations: 0.7583 MB / 3.854 GB, free: 38.92 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/10.58, allocations: 255.1 kB / 3.855 GB, free: 38.91 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003863/10.58, allocations: 1.862 MB / 3.857 GB, free: 38.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/10.59, allocations: 121.8 kB / 3.857 GB, free: 38.36 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002947/10.59, allocations: 71.36 kB / 3.857 GB, free: 38.36 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/10.59, allocations: 6.594 kB / 3.857 GB, free: 38.36 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01006/10.6, allocations: 2.491 MB / 3.859 GB, free: 38.29 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-05/10.6, allocations: 12.44 kB / 3.859 GB, free: 38.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001294/10.6, allocations: 351.8 kB / 3.86 GB, free: 38.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/10.6, allocations: 286.4 kB / 3.86 GB, free: 38.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001341/10.6, allocations: 1.095 MB / 3.861 GB, free: 37.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001762/10.6, allocations: 110.3 kB / 3.861 GB, free: 37.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002419/10.6, allocations: 67.48 kB / 3.861 GB, free: 37.73 MB / 490.7 MB 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.0006117/10.6, allocations: 163.7 kB / 3.861 GB, free: 37.62 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001543/10.6, allocations: 414.1 kB / 3.862 GB, free: 37.56 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004964/10.61, allocations: 3.011 MB / 3.865 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.22e-05/10.61, allocations: 31.64 kB / 3.865 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/10.61, allocations: 0 / 3.865 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/10.61, allocations: 3.188 kB / 3.865 GB, free: 37.36 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007152/10.62, allocations: 4.684 MB / 3.869 GB, free: 36.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.444e-06/10.62, allocations: 0 / 3.869 GB, free: 36.65 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000563/10.62, allocations: 127.8 kB / 3.869 GB, free: 36.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004645/10.62, allocations: 1.348 MB / 3.871 GB, free: 36.56 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001081/10.62, allocations: 18.14 kB / 3.871 GB, free: 36.56 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002353/10.62, allocations: 2.152 MB / 3.873 GB, free: 35.49 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.153e-06/10.62, allocations: 5.875 kB / 3.873 GB, free: 35.49 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005541/10.63, allocations: 3.423 MB / 3.876 GB, free: 35.08 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001028/10.63, allocations: 364.2 kB / 3.876 GB, free: 34.91 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005082/10.63, allocations: 2.688 kB / 3.876 GB, free: 34.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/10.63, allocations: 76.03 kB / 3.876 GB, free: 34.9 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/10.63, allocations: 61.55 kB / 3.877 GB, free: 34.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.158e-05/10.63, allocations: 31.8 kB / 3.877 GB, free: 34.9 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001301/10.63, allocations: 0.6233 MB / 3.877 GB, free: 34.79 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01273/10.65, allocations: 1.94 MB / 3.879 GB, free: 34.77 MB / 490.7 MB 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/10.66, allocations: 2.568 MB / 3.882 GB, free: 34.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005517/10.67, allocations: 2.468 MB / 3.884 GB, free: 34.35 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/10.67, allocations: 0 / 3.884 GB, free: 34.35 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001681/10.67, allocations: 1.161 MB / 3.885 GB, free: 34.34 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002967/10.67, allocations: 454.3 kB / 3.886 GB, free: 34.31 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005992/10.68, allocations: 2.512 MB / 3.888 GB, free: 33.74 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001603/10.68, allocations: 1.435 MB / 3.889 GB, free: 33 MB / 490.7 MB Notification: Performance of SimCode: time 1.883e-06/10.68, allocations: 0 / 3.889 GB, free: 33 MB / 490.7 MB Notification: Performance of Templates: time 0.1023/10.78, allocations: 63.64 MB / 3.952 GB, free: 8.027 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization.pipe 2>&1)