Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3",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 4.0.0+maint.om/package.mo): time 0.001521/0.00152, allocations: 188.3 kB / 8.521 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 221.4 MB / 230.3 MB, free: 7.816 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008759/0.0008759, allocations: 84.73 kB / 281.2 MB, free: 5.566 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1798/0.1798, allocations: 44.14 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2238/0.4037, allocations: 68.03 MB / 444.1 MB, free: 15.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.5169, allocations: 61.91 MB / 0.4942 GB, free: 1.512 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.497/6.014, allocations: 2.847 GB / 3.341 GB, free: 133.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002474/6.015, allocations: 82.89 kB / 3.341 GB, free: 133.2 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: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 2.748/8.762, allocations: 0.8824 GB / 4.223 GB, free: 41.32 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/8.763, allocations: 12.44 kB / 4.223 GB, free: 41.31 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00647/8.769, allocations: 0.8204 MB / 4.224 GB, free: 41.18 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006059/8.775, allocations: 1.985 MB / 4.226 GB, free: 40.74 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001624/8.775, allocations: 86.88 kB / 4.226 GB, free: 40.74 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000682/8.776, allocations: 112.7 kB / 4.226 GB, free: 40.73 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004277/8.78, allocations: 2.372 MB / 4.229 GB, free: 40.73 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004571/8.785, allocations: 2.614 MB / 4.231 GB, free: 40.24 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.259e-05/8.785, allocations: 7.875 kB / 4.231 GB, free: 40.23 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002792/8.785, allocations: 7.594 kB / 4.231 GB, free: 40.23 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001404/8.785, allocations: 158.1 kB / 4.231 GB, free: 40.23 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4596/9.245, allocations: 125.7 MB / 4.354 GB, free: 96.86 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001982/9.247, allocations: 1.05 MB / 4.355 GB, free: 96.84 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001629/9.249, allocations: 1.003 MB / 4.356 GB, free: 96.82 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03223/9.281, allocations: 17.08 MB / 4.373 GB, free: 86.21 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002207/9.283, allocations: 1.189 MB / 4.374 GB, free: 86.04 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=145): time 5.07e-06/9.283, allocations: 0 / 4.374 GB, free: 86.04 MB / 0.5886 GB Notification: Performance of matching and sorting (n=157): time 0.0377/9.321, allocations: 9.204 MB / 4.383 GB, free: 84.66 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/9.321, allocations: 361.5 kB / 4.383 GB, free: 84.25 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001391/9.322, allocations: 1.051 MB / 4.384 GB, free: 84.09 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002538/9.323, allocations: 28.39 kB / 4.384 GB, free: 84.06 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005012/9.323, allocations: 0.7011 MB / 4.385 GB, free: 83.75 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004938/9.324, allocations: 0.5029 MB / 4.386 GB, free: 83.49 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001281/9.324, allocations: 6.781 kB / 4.386 GB, free: 83.49 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 9.984e-05/9.324, allocations: 376 kB / 4.386 GB, free: 83.18 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001404/9.325, allocations: 1.027 MB / 4.387 GB, free: 83.18 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/9.327, allocations: 1.415 MB / 4.388 GB, free: 82.8 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008886/9.336, allocations: 1.981 MB / 4.39 GB, free: 82.79 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.109e-05/9.336, allocations: 3.438 kB / 4.39 GB, free: 82.79 MB / 0.5886 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01454/9.35, allocations: 4.318 MB / 4.395 GB, free: 82.59 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006467/9.351, allocations: 3.718 MB / 4.398 GB, free: 78.78 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/9.351, allocations: 14.5 kB / 4.398 GB, free: 78.78 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002265/9.353, allocations: 0.5236 MB / 4.399 GB, free: 78.75 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001998/9.355, allocations: 456.7 kB / 4.399 GB, free: 78.75 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002015/9.357, allocations: 2.9 MB / 4.402 GB, free: 76.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002827/9.36, allocations: 279.9 kB / 4.402 GB, free: 76.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002988/9.361, allocations: 99.02 kB / 4.402 GB, free: 76.66 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 9.357e-06/9.361, allocations: 3.781 kB / 4.402 GB, free: 76.66 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01073/9.371, allocations: 3.182 MB / 4.405 GB, free: 76.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.193e-05/9.371, allocations: 11.06 kB / 4.405 GB, free: 76.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004533/9.372, allocations: 190 kB / 4.406 GB, free: 76.56 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/9.374, allocations: 479.1 kB / 4.406 GB, free: 76.56 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/9.375, allocations: 1.92 MB / 4.408 GB, free: 75.01 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002497/9.378, allocations: 245.2 kB / 4.408 GB, free: 75 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002213/9.378, allocations: 99.78 kB / 4.408 GB, free: 75 MB / 0.5886 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 29 (valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_a.phase,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (211): * Single equations (assignments): 205 * 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,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.0005535/9.378, allocations: 227.4 kB / 4.408 GB, free: 74.83 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001701/9.38, allocations: 0.6107 MB / 4.409 GB, free: 74.74 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01408/9.394, allocations: 6.739 MB / 4.416 GB, free: 74.29 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.793e-05/9.394, allocations: 63.38 kB / 4.416 GB, free: 74.28 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/9.394, allocations: 3.281 kB / 4.416 GB, free: 74.28 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01093/9.405, allocations: 5.831 MB / 4.421 GB, free: 73.57 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01755/9.423, allocations: 10.24 MB / 4.431 GB, free: 72.33 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.118e-05/9.423, allocations: 8.812 kB / 4.431 GB, free: 72.33 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001267/9.424, allocations: 289.5 kB / 4.432 GB, free: 72.33 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001981/9.426, allocations: 1.168 MB / 4.433 GB, free: 72.25 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000204/9.426, allocations: 47.42 kB / 4.433 GB, free: 72.25 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002331/9.429, allocations: 3.389 MB / 4.436 GB, free: 70.15 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.186e-06/9.429, allocations: 10.3 kB / 4.436 GB, free: 70.15 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01461/9.443, allocations: 7.67 MB / 4.444 GB, free: 69.06 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01688/9.46, allocations: 10.02 MB / 4.453 GB, free: 67.57 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001563/9.462, allocations: 0.6575 MB / 4.454 GB, free: 67.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005431/9.462, allocations: 25.94 kB / 4.454 GB, free: 67.35 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/9.464, allocations: 158.3 kB / 4.454 GB, free: 67.34 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002385/9.464, allocations: 132 kB / 4.454 GB, free: 67.34 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001527/9.464, allocations: 77.89 kB / 4.455 GB, free: 67.34 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001351/9.466, allocations: 1.036 MB / 4.456 GB, free: 67.23 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01123/9.477, allocations: 3.038 MB / 4.458 GB, free: 67.2 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * Number of states: 6 (pipe1.mediums[1].p,pipe1.mediums[1].h,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,$cse7.phase,$cse7.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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 (155): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 10 * 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,2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.01002/9.487, allocations: 3.038 MB / 4.461 GB, free: 66.86 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.006691/9.494, allocations: 4.911 MB / 4.466 GB, free: 66.68 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.139e-05/9.494, allocations: 1.062 kB / 4.466 GB, free: 66.68 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003404/9.497, allocations: 2.979 MB / 4.469 GB, free: 66.6 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003988/9.501, allocations: 0.7527 MB / 4.47 GB, free: 66.55 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008345/9.51, allocations: 5.431 MB / 4.475 GB, free: 65.3 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001809/9.511, allocations: 2.251 MB / 4.477 GB, free: 64.51 MB / 0.5886 GB Notification: Performance of SimCode: time 1.663e-06/9.511, allocations: 0 / 4.477 GB, free: 64.51 MB / 0.5886 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes3.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1)