Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14") [: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.004774/0.004774, allocations: 177.3 kB / 7.451 MB, free: 2.34 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.608/1.608, allocations: 170.6 MB / 178.4 MB, free: 15.71 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.001932/0.001932, allocations: 119.8 kB / 217.7 MB, free: 8.484 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.2515/0.2515, allocations: 37.97 MB / 294.8 MB, free: 9.637 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.129e-05/1.14e-05, allocations: 1.156 kB / 349.5 MB, free: 37.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1531, allocations: 48.71 MB / 398.2 MB, free: 5.676 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.575/7.728, allocations: 2.566 GB / 2.954 GB, free: 100.7 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000325/7.729, allocations: 75.73 kB / 2.955 GB, free: 100.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.51/11.24, allocations: 0.8756 GB / 3.83 GB, free: 21.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003768/11.24, allocations: 71.5 kB / 3.83 GB, free: 21.89 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: 532 * Number of variables: 532 Notification: Performance of Generate backend data structure: time 0.0186/11.26, allocations: 3.844 MB / 3.834 GB, free: 20.01 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.741e-05/11.26, allocations: 10.66 kB / 3.834 GB, free: 20 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007932/11.27, allocations: 0.8772 MB / 3.835 GB, free: 19.87 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008692/11.27, allocations: 2.103 MB / 3.837 GB, free: 19.36 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003493/11.27, allocations: 94.97 kB / 3.837 GB, free: 19.36 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001354/11.28, allocations: 124.5 kB / 3.837 GB, free: 19.35 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006497/11.28, allocations: 2.681 MB / 3.84 GB, free: 19.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007611/11.29, allocations: 2.897 MB / 3.843 GB, free: 18.14 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/11.29, allocations: 7.531 kB / 3.843 GB, free: 18.13 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008008/11.29, allocations: 6.312 kB / 3.843 GB, free: 18.13 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002826/11.29, allocations: 175.6 kB / 3.843 GB, free: 18.11 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5427/11.83, allocations: 111 MB / 3.951 GB, free: 58.09 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002367/11.84, allocations: 1.123 MB / 3.952 GB, free: 58.06 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/11.84, allocations: 1.066 MB / 3.953 GB, free: 58.04 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03258/11.87, allocations: 17.37 MB / 3.97 GB, free: 46.48 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002393/11.87, allocations: 1.248 MB / 3.972 GB, free: 46.32 MB / 490.7 MB Notification: Performance of pre-optimization done (n=159): time 3.557e-06/11.87, allocations: 3.172 kB / 3.972 GB, free: 46.32 MB / 490.7 MB Notification: Performance of matching and sorting (n=175): time 0.04182/11.92, allocations: 9.758 MB / 3.981 GB, free: 44.8 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/11.92, allocations: 366.8 kB / 3.981 GB, free: 44.39 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001706/11.92, allocations: 1.092 MB / 3.982 GB, free: 44.22 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004755/11.92, allocations: 29.23 kB / 3.982 GB, free: 44.19 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007319/11.92, allocations: 0.7866 MB / 3.983 GB, free: 43.84 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007073/11.92, allocations: 0.5684 MB / 3.984 GB, free: 43.54 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/11.92, allocations: 3.719 kB / 3.984 GB, free: 43.54 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/11.92, allocations: 383.1 kB / 3.984 GB, free: 43.24 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/11.92, allocations: 1.108 MB / 3.985 GB, free: 43.23 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001781/11.92, allocations: 1.57 MB / 3.987 GB, free: 42.72 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009251/11.93, allocations: 2.084 MB / 3.989 GB, free: 42.67 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-05/11.93, allocations: 2.781 kB / 3.989 GB, free: 42.67 MB / 490.7 MB Notification: Performance of matching and sorting (n=266) (initialization): time 0.0168/11.95, allocations: 4.448 MB / 3.993 GB, free: 42.44 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001432/11.95, allocations: 4.878 MB / 3.998 GB, free: 37.41 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.331e-05/11.95, allocations: 11.38 kB / 3.998 GB, free: 37.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007549/11.95, allocations: 228.5 kB / 3.998 GB, free: 37.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002708/11.95, allocations: 0.5309 MB / 3.999 GB, free: 37.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/11.96, allocations: 2.488 MB / 4.001 GB, free: 35.29 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003573/11.96, allocations: 299.6 kB / 4.001 GB, free: 35.25 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006079/11.96, allocations: 110.4 kB / 4.002 GB, free: 35.25 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.391e-05/11.96, allocations: 7.344 kB / 4.002 GB, free: 35.25 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01352/11.97, allocations: 3.378 MB / 4.005 GB, free: 35.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.459e-05/11.97, allocations: 15.12 kB / 4.005 GB, free: 35.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006254/11.97, allocations: 225.4 kB / 4.005 GB, free: 35.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002612/11.98, allocations: 0.5331 MB / 4.006 GB, free: 35.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/11.98, allocations: 2.485 MB / 4.008 GB, free: 33.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003888/11.98, allocations: 277.6 kB / 4.008 GB, free: 32.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007732/11.98, allocations: 105.3 kB / 4.008 GB, free: 32.99 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 28 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.state_a.phase,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,$PRE.valveOpening1.nextEvent,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (254): * Single equations (assignments): 248 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001448/11.98, allocations: 237.8 kB / 4.009 GB, free: 32.82 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002837/11.99, allocations: 0.6579 MB / 4.009 GB, free: 32.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01956/12.01, allocations: 6.742 MB / 4.016 GB, free: 32.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-05/12.01, allocations: 51.48 kB / 4.016 GB, free: 32.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.211e-05/12.01, allocations: 5.328 kB / 4.016 GB, free: 32.23 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01558/12.02, allocations: 5.818 MB / 4.022 GB, free: 31.51 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02662/12.05, allocations: 10.99 MB / 4.032 GB, free: 29.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.492e-05/12.05, allocations: 5.344 kB / 4.032 GB, free: 29.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002009/12.05, allocations: 365.9 kB / 4.033 GB, free: 29.76 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009952/12.05, allocations: 334.8 kB / 4.033 GB, free: 29.71 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005102/12.05, allocations: 49.44 kB / 4.033 GB, free: 29.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001655/12.05, allocations: 2.667 MB / 4.036 GB, free: 27.62 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.479e-05/12.05, allocations: 10.88 kB / 4.036 GB, free: 27.62 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02009/12.07, allocations: 8.025 MB / 4.043 GB, free: 26.33 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002167/12.08, allocations: 0.6758 MB / 4.044 GB, free: 26.1 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009855/12.08, allocations: 25.2 kB / 4.044 GB, free: 26.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002549/12.08, allocations: 181.1 kB / 4.044 GB, free: 26.08 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004147/12.08, allocations: 152.1 kB / 4.044 GB, free: 26.07 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002953/12.08, allocations: 82.78 kB / 4.045 GB, free: 26.07 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.002388/12.08, allocations: 1.006 MB / 4.046 GB, free: 25.96 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01618/12.1, allocations: 2.609 MB / 4.048 GB, free: 25.86 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 36 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,junctionIdeal.medium.phase) * Number of discrete states: 10 (valveOpening2.last,valveOpening2.nextEvent,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 169 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01561/12.12, allocations: 3.092 MB / 4.051 GB, free: 25.41 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01061/12.13, allocations: 5.231 MB / 4.056 GB, free: 25.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.372e-05/12.13, allocations: 3.844 kB / 4.056 GB, free: 25.21 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004391/12.13, allocations: 3.107 MB / 4.059 GB, free: 25.14 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005559/12.14, allocations: 0.7945 MB / 4.06 GB, free: 25.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05636/12.19, allocations: 19.68 MB / 4.079 GB, free: 16.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00359/12.2, allocations: 2.319 MB / 4.081 GB, free: 14.46 MB / 490.7 MB Notification: Performance of SimCode: time 1.943e-06/12.2, allocations: 0 / 4.081 GB, free: 14.46 MB / 490.7 MB Notification: Performance of Templates: time 0.446/12.64, allocations: 88.58 MB / 4.168 GB, free: 75.56 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1)