Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") [: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.002521/0.002521, allocations: 171.9 kB / 8.147 MB, free: 2.211 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.807/1.807, allocations: 205.2 MB / 213.8 MB, free: 13.93 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.001294/0.001293, allocations: 85.19 kB / 261.8 MB, free: 13.62 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.2648/0.2648, allocations: 43.5 MB / 353.2 MB, free: 2.035 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.999e-06/1.014e-05, allocations: 4 kB / 417.7 MB, free: 40.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3102, allocations: 58.83 MB / 476.5 MB, free: 5.098 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.279/6.589, allocations: 2.824 GB / 3.29 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/6.589, allocations: 79.14 kB / 3.29 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 3.555/10.14, allocations: 0.8027 GB / 4.093 GB, free: 39.87 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0003287/10.14, allocations: 68.8 kB / 4.093 GB, free: 39.86 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.02081/10.17, allocations: 4.091 MB / 4.097 GB, free: 37.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/10.17, allocations: 11.16 kB / 4.097 GB, free: 37.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009795/10.18, allocations: 0.8628 MB / 4.098 GB, free: 37.76 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01017/10.19, allocations: 2.168 MB / 4.1 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002777/10.19, allocations: 97.59 kB / 4.1 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001093/10.19, allocations: 116.3 kB / 4.1 GB, free: 37.3 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009226/10.2, allocations: 2.944 MB / 4.103 GB, free: 37.29 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009417/10.21, allocations: 2.957 MB / 4.106 GB, free: 36.74 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.584e-05/10.21, allocations: 9.469 kB / 4.106 GB, free: 36.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004222/10.21, allocations: 7.219 kB / 4.106 GB, free: 36.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002414/10.21, allocations: 182.2 kB / 4.106 GB, free: 36.73 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4409/10.65, allocations: 126.2 MB / 4.229 GB, free: 17.77 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003086/10.65, allocations: 1.183 MB / 4.23 GB, free: 17.1 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002459/10.65, allocations: 1.038 MB / 4.231 GB, free: 16.54 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2839/10.94, allocations: 17.02 MB / 4.248 GB, free: 146.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00339/10.94, allocations: 1.268 MB / 4.249 GB, free: 146 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=152): time 5.27e-06/10.94, allocations: 1.625 kB / 4.249 GB, free: 146 MB / 0.5886 GB Notification: Performance of matching and sorting (n=164): time 0.03563/10.98, allocations: 8.322 MB / 4.257 GB, free: 144.6 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001817/10.98, allocations: 0.5055 MB / 4.258 GB, free: 144 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002779/10.98, allocations: 1.223 MB / 4.259 GB, free: 143.8 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0005694/10.98, allocations: 29.05 kB / 4.259 GB, free: 143.8 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007106/10.98, allocations: 0.7287 MB / 4.26 GB, free: 143.4 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.001028/10.98, allocations: 0.5348 MB / 4.26 GB, free: 143.1 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/10.98, allocations: 0 / 4.26 GB, free: 143.1 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001712/10.98, allocations: 394.5 kB / 4.261 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003087/10.99, allocations: 1.172 MB / 4.262 GB, free: 142.8 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003591/10.99, allocations: 1.598 MB / 4.263 GB, free: 142.3 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02195/11.01, allocations: 3.124 MB / 4.266 GB, free: 142.3 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.509e-05/11.01, allocations: 10.66 kB / 4.266 GB, free: 142.3 MB / 0.5886 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0314/11.04, allocations: 5.595 MB / 4.272 GB, free: 142.2 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008385/11.04, allocations: 3.832 MB / 4.276 GB, free: 138.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.412e-05/11.04, allocations: 16.47 kB / 4.276 GB, free: 138.2 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006993/11.05, allocations: 0.8587 MB / 4.276 GB, free: 138.2 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004157/11.05, allocations: 480.3 kB / 4.277 GB, free: 138.2 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005531/11.06, allocations: 3.504 MB / 4.28 GB, free: 136.1 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003433/11.06, allocations: 220.5 kB / 4.28 GB, free: 136.1 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005311/11.06, allocations: 103.3 kB / 4.281 GB, free: 136.1 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/11.06, allocations: 8.312 kB / 4.281 GB, free: 136.1 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02652/11.09, allocations: 4.568 MB / 4.285 GB, free: 136 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.376e-05/11.09, allocations: 13.47 kB / 4.285 GB, free: 136 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001811/11.09, allocations: 344.9 kB / 4.285 GB, free: 135.9 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00426/11.1, allocations: 495.5 kB / 4.286 GB, free: 135.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005624/11.1, allocations: 3.985 MB / 4.29 GB, free: 133.2 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/11.11, allocations: 220.5 kB / 4.29 GB, free: 133.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005018/11.11, allocations: 98.91 kB / 4.29 GB, free: 133.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.state_a.phase,pipe1.state_b.phase,pipe1.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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,source.medium.phase,sink.medium.phase,pipe3.state_b.phase,pipe2.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.000821/11.11, allocations: 162.7 kB / 4.29 GB, free: 133.1 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002748/11.11, allocations: 0.6244 MB / 4.291 GB, free: 133 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0179/11.13, allocations: 6.788 MB / 4.297 GB, free: 132.5 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.061e-05/11.13, allocations: 53.39 kB / 4.297 GB, free: 132.5 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/11.13, allocations: 9.547 kB / 4.297 GB, free: 132.5 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01228/11.14, allocations: 5.733 MB / 4.303 GB, free: 131.8 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02122/11.16, allocations: 9.37 MB / 4.312 GB, free: 131 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.61e-05/11.16, allocations: 0 / 4.312 GB, free: 131 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002652/11.16, allocations: 278.7 kB / 4.313 GB, free: 131 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006523/11.17, allocations: 2.073 MB / 4.315 GB, free: 130.9 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005573/11.17, allocations: 48.62 kB / 4.315 GB, free: 130.9 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005831/11.18, allocations: 4.286 MB / 4.319 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.298e-06/11.18, allocations: 5.094 kB / 4.319 GB, free: 128.7 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0177/11.2, allocations: 7.241 MB / 4.326 GB, free: 128.1 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002493/11.2, allocations: 0.7085 MB / 4.327 GB, free: 127.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001018/11.2, allocations: 16.66 kB / 4.327 GB, free: 127.9 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003422/11.2, allocations: 169.2 kB / 4.327 GB, free: 127.9 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005138/11.2, allocations: 126.5 kB / 4.327 GB, free: 127.9 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002708/11.2, allocations: 71.16 kB / 4.327 GB, free: 127.9 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.002726/11.21, allocations: 1.164 MB / 4.328 GB, free: 127.7 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01307/11.22, allocations: 2.766 MB / 4.331 GB, free: 127.7 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h) * Number of discrete variables: 39 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.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,$cse37.phase,$cse37.region,$whenCondition1,$whenCondition2,pipe1.statesFM[2].phase,pipe2.statesFM[2].phase,pipe3.statesFM[2].phase,valveOpening1.a,valveOpening1.b,valveOpening1.last,valveOpening1.nextEvent,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,valveOpening2.nextEvent,valveOpening2.nextEventScaled) * Number of discrete states: 12 (valveOpening2.nextEvent,valveOpening2.last,valveOpening2.nextEventScaled,valveOpening2.b,valveOpening2.a,$whenCondition2,valveOpening1.nextEvent,valveOpening1.last,valveOpening1.nextEventScaled,valveOpening1.b,valveOpening1.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.01568/11.24, allocations: 3.072 MB / 4.334 GB, free: 127.4 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01483/11.25, allocations: 5.556 MB / 4.339 GB, free: 127 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/11.25, allocations: 0 / 4.339 GB, free: 127 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.008307/11.26, allocations: 2.737 MB / 4.342 GB, free: 126.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00969/11.27, allocations: 0.7497 MB / 4.343 GB, free: 126.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02138/11.29, allocations: 5.721 MB / 4.348 GB, free: 125.9 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005113/11.29, allocations: 2.3 MB / 4.35 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of SimCode: time 1.773e-06/11.29, allocations: 0 / 4.35 GB, free: 125.1 MB / 0.5886 GB Notification: Performance of Templates: time 0.1849/11.48, allocations: 110.2 MB / 4.458 GB, free: 79.79 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)