Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12",fmuType="me",version="2.0",platforms={"static"}) [: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.001219/0.001219, allocations: 191.9 kB / 7.806 MB, free: 2.488 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.7/1.7, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.001048/0.001048, allocations: 91.69 kB / 261.4 MB, free: 13.54 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.2507/0.2507, allocations: 43.49 MB / 352.8 MB, free: 1.965 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2709/0.5217, allocations: 64.97 MB / 417.8 MB, free: 40.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4312/0.9529, allocations: 58.83 MB / 476.6 MB, free: 5.191 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.746/7.699, allocations: 2.824 GB / 3.29 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003067/7.7, allocations: 72.55 kB / 3.29 GB, free: 145.1 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 3.013/10.71, allocations: 0.8067 GB / 4.097 GB, free: 36.93 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.814e-05/10.71, allocations: 6.562 kB / 4.097 GB, free: 36.93 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007301/10.72, allocations: 0.8703 MB / 4.098 GB, free: 36.79 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008072/10.73, allocations: 2.183 MB / 4.1 GB, free: 36.32 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002335/10.73, allocations: 91.52 kB / 4.1 GB, free: 36.32 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/10.73, allocations: 113.6 kB / 4.1 GB, free: 36.32 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007152/10.74, allocations: 2.945 MB / 4.103 GB, free: 36.31 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008475/10.75, allocations: 2.957 MB / 4.106 GB, free: 35.76 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.833e-05/10.75, allocations: 9.031 kB / 4.106 GB, free: 35.76 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006612/10.75, allocations: 7.375 kB / 4.106 GB, free: 35.76 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002011/10.75, allocations: 173 kB / 4.106 GB, free: 35.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2565/11, allocations: 126.2 MB / 4.229 GB, free: 20.7 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002247/11.01, allocations: 1.188 MB / 4.23 GB, free: 20.68 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001565/11.01, allocations: 1.034 MB / 4.231 GB, free: 20.67 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0358/11.04, allocations: 17.01 MB / 4.248 GB, free: 25.46 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002944/11.05, allocations: 1.276 MB / 4.249 GB, free: 25.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=152): time 6.943e-06/11.05, allocations: 3 kB / 4.249 GB, free: 25.3 MB / 0.6042 GB Notification: Performance of matching and sorting (n=164): time 0.02593/11.07, allocations: 8.337 MB / 4.257 GB, free: 23.54 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002859/11.07, allocations: 0.507 MB / 4.258 GB, free: 22.95 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002192/11.07, allocations: 1.218 MB / 4.259 GB, free: 22.77 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0003621/11.07, allocations: 32.08 kB / 4.259 GB, free: 22.73 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008764/11.08, allocations: 0.7728 MB / 4.26 GB, free: 22.29 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008532/11.08, allocations: 0.533 MB / 4.26 GB, free: 21.93 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/11.08, allocations: 1.125 kB / 4.26 GB, free: 21.93 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0002636/11.08, allocations: 385.2 kB / 4.261 GB, free: 21.63 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/11.08, allocations: 1.177 MB / 4.262 GB, free: 21.62 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002359/11.08, allocations: 1.604 MB / 4.263 GB, free: 21.14 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01197/11.09, allocations: 3.121 MB / 4.266 GB, free: 19.92 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.954e-05/11.09, allocations: 4 kB / 4.266 GB, free: 19.92 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01811/11.11, allocations: 5.695 MB / 4.272 GB, free: 16.7 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.001414/11.11, allocations: 3.925 MB / 4.276 GB, free: 12.64 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.844e-05/11.11, allocations: 16.41 kB / 4.276 GB, free: 12.63 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00379/11.12, allocations: 0.8693 MB / 4.277 GB, free: 12.11 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002065/11.12, allocations: 474.6 kB / 4.277 GB, free: 11.75 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003617/11.12, allocations: 3.53 MB / 4.281 GB, free: 8.871 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003162/11.13, allocations: 245.3 kB / 4.281 GB, free: 8.688 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002732/11.13, allocations: 102.8 kB / 4.281 GB, free: 8.613 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.055e-05/11.13, allocations: 4 kB / 4.281 GB, free: 8.609 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01545/11.14, allocations: 4.573 MB / 4.285 GB, free: 6.059 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.792e-05/11.14, allocations: 12 kB / 4.285 GB, free: 6.047 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/11.14, allocations: 351.6 kB / 4.286 GB, free: 5.836 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002319/11.15, allocations: 498.9 kB / 4.286 GB, free: 5.465 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004333/11.15, allocations: 3.978 MB / 4.29 GB, free: 1.988 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003366/11.15, allocations: 220.1 kB / 4.29 GB, free: 1.828 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005078/11.15, allocations: 102.3 kB / 4.29 GB, free: 1.758 MB / 0.6042 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.0008452/11.15, allocations: 235.8 kB / 4.291 GB, free: 1.551 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002143/11.16, allocations: 0.6221 MB / 4.291 GB, free: 1.164 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2656/11.42, allocations: 6.808 MB / 4.298 GB, free: 156.5 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.681e-05/11.42, allocations: 49.41 kB / 4.298 GB, free: 156.5 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/11.42, allocations: 6.375 kB / 4.298 GB, free: 156.5 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006999/11.43, allocations: 5.733 MB / 4.304 GB, free: 155.8 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/11.44, allocations: 9.374 MB / 4.313 GB, free: 155 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/11.44, allocations: 0 / 4.313 GB, free: 155 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/11.44, allocations: 277.9 kB / 4.313 GB, free: 155 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003628/11.45, allocations: 2.062 MB / 4.315 GB, free: 154.9 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002721/11.45, allocations: 53.05 kB / 4.315 GB, free: 154.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003806/11.45, allocations: 4.293 MB / 4.319 GB, free: 152.9 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/11.45, allocations: 5.531 kB / 4.319 GB, free: 152.9 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01289/11.47, allocations: 7.238 MB / 4.326 GB, free: 152.4 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01497/11.48, allocations: 9.757 MB / 4.336 GB, free: 151.6 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/11.48, allocations: 0.7048 MB / 4.336 GB, free: 151.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004553/11.48, allocations: 22.08 kB / 4.337 GB, free: 151.4 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001593/11.48, allocations: 164.3 kB / 4.337 GB, free: 151.4 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002728/11.48, allocations: 121.5 kB / 4.337 GB, free: 151.4 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000164/11.48, allocations: 69.52 kB / 4.337 GB, free: 151.4 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001543/11.49, allocations: 1.166 MB / 4.338 GB, free: 151.2 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01435/11.5, allocations: 3.262 MB / 4.341 GB, free: 151.2 MB / 0.6042 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.01267/11.51, allocations: 3.079 MB / 4.344 GB, free: 151.1 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.008019/11.52, allocations: 5.612 MB / 4.35 GB, free: 150.7 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 7.654e-06/11.52, allocations: 0 / 4.35 GB, free: 150.7 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003245/11.52, allocations: 2.742 MB / 4.352 GB, free: 150.6 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004237/11.53, allocations: 0.7472 MB / 4.353 GB, free: 150.6 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0097/11.54, allocations: 5.713 MB / 4.359 GB, free: 149.6 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001978/11.54, allocations: 2.354 MB / 4.361 GB, free: 148.8 MB / 0.6042 GB Notification: Performance of SimCode: time 7.42e-07/11.54, allocations: 0 / 4.361 GB, free: 148.8 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes12.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1)