Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001623/0.001629, allocations: 172 kB / 8.149 MB, free: 2.188 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.754/1.754, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00131/0.00131, allocations: 91.69 kB / 261.8 MB, free: 13.65 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2857/0.2857, allocations: 43.5 MB / 353.2 MB, free: 2.055 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.817e-06/8.936e-06, allocations: 0 / 417.7 MB, free: 40.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2751, allocations: 58.84 MB / 476.5 MB, free: 5.09 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.377/6.652, allocations: 2.832 GB / 3.298 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002819/6.653, allocations: 78.66 kB / 3.298 GB, free: 102.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.157/8.809, allocations: 499.5 MB / 3.786 GB, free: 24.77 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001586/8.81, allocations: 47.94 kB / 3.786 GB, free: 24.73 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01536/8.825, allocations: 2.989 MB / 3.789 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/8.825, allocations: 12.03 kB / 3.789 GB, free: 21.68 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008444/8.834, allocations: 0.7351 MB / 3.789 GB, free: 20.95 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006704/8.84, allocations: 1.595 MB / 3.791 GB, free: 19.33 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002638/8.841, allocations: 95.97 kB / 3.791 GB, free: 19.23 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009561/8.842, allocations: 103.9 kB / 3.791 GB, free: 19.13 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008407/8.85, allocations: 2.924 MB / 3.794 GB, free: 16.21 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008517/8.859, allocations: 2.94 MB / 3.797 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-05/8.859, allocations: 7.906 kB / 3.797 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003799/8.859, allocations: 4 kB / 3.797 GB, free: 13.1 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001805/8.859, allocations: 187.4 kB / 3.797 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6781/9.537, allocations: 141.1 MB / 3.935 GB, free: 29.17 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003144/9.541, allocations: 1.156 MB / 3.936 GB, free: 29.15 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002491/9.543, allocations: 1.027 MB / 3.937 GB, free: 29.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05942/9.603, allocations: 16.72 MB / 3.953 GB, free: 34.23 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003232/9.606, allocations: 1.177 MB / 3.954 GB, free: 34.12 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=139): time 5.42e-06/9.606, allocations: 0 / 3.954 GB, free: 34.12 MB / 0.5261 GB Notification: Performance of matching and sorting (n=159): time 0.03277/9.639, allocations: 7.675 MB / 3.962 GB, free: 33.19 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001647/9.639, allocations: 229.3 kB / 3.962 GB, free: 32.94 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002161/9.641, allocations: 0.949 MB / 3.963 GB, free: 32.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0005721/9.642, allocations: 29.3 kB / 3.963 GB, free: 32.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000764/9.643, allocations: 0.7888 MB / 3.964 GB, free: 32.31 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009059/9.643, allocations: 0.5336 MB / 3.964 GB, free: 32.04 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002721/9.644, allocations: 0 / 3.964 GB, free: 32.04 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000275/9.644, allocations: 400.2 kB / 3.965 GB, free: 31.72 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003141/9.647, allocations: 1.239 MB / 3.966 GB, free: 31.71 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003848/9.651, allocations: 1.777 MB / 3.968 GB, free: 31.08 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0115/9.663, allocations: 2.169 MB / 3.97 GB, free: 31.02 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.588e-05/9.663, allocations: 3.969 kB / 3.97 GB, free: 31.02 MB / 0.5261 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.022/9.685, allocations: 5.261 MB / 3.975 GB, free: 30.87 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.002841/9.688, allocations: 6.257 MB / 3.981 GB, free: 40.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.542e-05/9.688, allocations: 17.66 kB / 3.981 GB, free: 40.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01932/9.707, allocations: 2.773 MB / 3.984 GB, free: 40.21 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0027/9.71, allocations: 339 kB / 3.984 GB, free: 40.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/9.726, allocations: 4.831 MB / 3.989 GB, free: 39.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/9.73, allocations: 229.8 kB / 3.989 GB, free: 39.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004523/9.731, allocations: 112.4 kB / 3.989 GB, free: 39.59 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/9.731, allocations: 7.406 kB / 3.989 GB, free: 39.59 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01837/9.749, allocations: 4.193 MB / 3.993 GB, free: 39.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-05/9.749, allocations: 16.44 kB / 3.993 GB, free: 39.51 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01392/9.763, allocations: 2.113 MB / 3.995 GB, free: 39.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/9.766, allocations: 370.2 kB / 3.996 GB, free: 39.44 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009295/9.776, allocations: 3.63 MB / 3.999 GB, free: 38.87 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003762/9.779, allocations: 231.4 kB / 4 GB, free: 38.84 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003983/9.78, allocations: 106.3 kB / 4 GB, free: 38.84 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: 72 * Number of states: 0 () * Number of discrete variables: 17 ($PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,source.medium.phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0008063/9.781, allocations: 84.8 kB / 4 GB, free: 38.81 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002241/9.783, allocations: 0.5149 MB / 4 GB, free: 38.73 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01336/9.796, allocations: 5.187 MB / 4.005 GB, free: 38.39 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.349e-05/9.796, allocations: 46.39 kB / 4.005 GB, free: 38.39 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/9.796, allocations: 8.75 kB / 4.005 GB, free: 38.38 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01031/9.807, allocations: 4.662 MB / 4.01 GB, free: 35.78 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/9.825, allocations: 7.677 MB / 4.017 GB, free: 31.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-05/9.825, allocations: 1 kB / 4.017 GB, free: 31.74 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00331/9.828, allocations: 365.6 kB / 4.018 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001956/9.83, allocations: 425.9 kB / 4.018 GB, free: 31.22 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003205/9.83, allocations: 40.86 kB / 4.018 GB, free: 31.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003333/9.834, allocations: 3.398 MB / 4.021 GB, free: 28.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/9.834, allocations: 4.031 kB / 4.021 GB, free: 28.15 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01511/9.849, allocations: 6.389 MB / 4.028 GB, free: 24.55 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001919/9.851, allocations: 0.5475 MB / 4.028 GB, free: 24.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005397/9.851, allocations: 20.31 kB / 4.028 GB, free: 24.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002728/9.854, allocations: 174.4 kB / 4.028 GB, free: 24.07 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004848/9.855, allocations: 159.2 kB / 4.029 GB, free: 24 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002357/9.855, allocations: 63.38 kB / 4.029 GB, free: 23.96 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.001493/9.856, allocations: 0.6849 MB / 4.029 GB, free: 23.54 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01089/9.867, allocations: 2.214 MB / 4.031 GB, free: 21.67 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse11.phase,$cse11.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,m_flow_initial) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 161 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01334/9.881, allocations: 2.146 MB / 4.034 GB, free: 20.18 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.01389/9.895, allocations: 5.34 MB / 4.039 GB, free: 17.16 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/9.895, allocations: 4 kB / 4.039 GB, free: 17.16 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005714/9.9, allocations: 2.389 MB / 4.041 GB, free: 15.96 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005641/9.906, allocations: 0.5145 MB / 4.042 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01495/9.921, allocations: 5.068 MB / 4.047 GB, free: 11.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003592/9.925, allocations: 1.957 MB / 4.048 GB, free: 9.598 MB / 0.5417 GB Notification: Performance of SimCode: time 2.024e-06/9.925, allocations: 4 kB / 4.048 GB, free: 9.594 MB / 0.5417 GB Notification: Performance of Templates: time 0.3488/10.27, allocations: 76.71 MB / 4.123 GB, free: 123.6 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization.pipe 2>&1)