Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.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.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18",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.001145/0.001145, allocations: 192 kB / 7.804 MB, free: 2.504 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.286/1.286, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.001024/0.001024, allocations: 100.3 kB / 261.4 MB, free: 13.6 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.1954/0.1954, allocations: 43.48 MB / 352.8 MB, free: 2.02 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2199/0.4153, allocations: 64.97 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3416/0.7569, allocations: 58.83 MB / 476.6 MB, free: 5.301 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.192/6.949, allocations: 2.846 GB / 3.312 GB, free: 20.45 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003612/6.95, allocations: 79.25 kB / 3.312 GB, free: 20.38 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: 575 * Number of variables: 575 Notification: Performance of Generate backend data structure: time 5.146/12.1, allocations: 1.014 GB / 4.325 GB, free: 35.49 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 7.51e-05/12.1, allocations: 13.05 kB / 4.325 GB, free: 35.49 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009215/12.11, allocations: 0.9815 MB / 4.326 GB, free: 35.34 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/12.12, allocations: 2.215 MB / 4.328 GB, free: 34.88 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005432/12.12, allocations: 105 kB / 4.329 GB, free: 34.88 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002244/12.12, allocations: 135.4 kB / 4.329 GB, free: 34.88 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009775/12.13, allocations: 2.883 MB / 4.332 GB, free: 34.86 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01141/12.14, allocations: 3.094 MB / 4.335 GB, free: 34.27 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001952/12.14, allocations: 7.125 kB / 4.335 GB, free: 34.27 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001167/12.14, allocations: 18.67 kB / 4.335 GB, free: 34.26 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003168/12.14, allocations: 182.4 kB / 4.335 GB, free: 34.25 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.15/12.29, allocations: 64.58 MB / 4.398 GB, free: 10.68 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003426/12.3, allocations: 1.287 MB / 4.399 GB, free: 10.66 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003013/12.3, allocations: 1.228 MB / 4.4 GB, free: 10.64 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0431/12.34, allocations: 16.82 MB / 4.417 GB, free: 15.62 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004737/12.35, allocations: 1.421 MB / 4.418 GB, free: 15.44 MB / 0.573 GB Notification: Performance of pre-optimization done (n=186): time 1.649e-05/12.35, allocations: 0 / 4.418 GB, free: 15.44 MB / 0.573 GB Notification: Performance of matching and sorting (n=206): time 0.05778/12.41, allocations: 10.79 MB / 4.429 GB, free: 13.51 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004303/12.41, allocations: 361 kB / 4.429 GB, free: 13.1 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004286/12.41, allocations: 1.172 MB / 4.43 GB, free: 12.92 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.00103/12.41, allocations: 29.58 kB / 4.43 GB, free: 12.89 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.001511/12.41, allocations: 0.8119 MB / 4.431 GB, free: 12.42 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001584/12.41, allocations: 0.6691 MB / 4.432 GB, free: 11.97 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006423/12.41, allocations: 0 / 4.432 GB, free: 11.97 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003955/12.42, allocations: 403.5 kB / 4.432 GB, free: 11.67 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002858/12.42, allocations: 1.23 MB / 4.433 GB, free: 11.66 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003453/12.42, allocations: 1.735 MB / 4.435 GB, free: 11.14 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01171/12.43, allocations: 2.252 MB / 4.437 GB, free: 11.09 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.79e-05/12.43, allocations: 3.25 kB / 4.437 GB, free: 11.09 MB / 0.573 GB Notification: Performance of matching and sorting (n=303) (initialization): time 0.02286/12.46, allocations: 4.879 MB / 4.442 GB, free: 10.84 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.002593/12.46, allocations: 4.993 MB / 4.447 GB, free: 5.723 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.813e-05/12.46, allocations: 15.42 kB / 4.447 GB, free: 5.723 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/12.46, allocations: 327.3 kB / 4.447 GB, free: 5.68 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003519/12.46, allocations: 0.6063 MB / 4.448 GB, free: 5.672 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00339/12.47, allocations: 3.195 MB / 4.451 GB, free: 19.06 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004758/12.47, allocations: 335.3 kB / 4.451 GB, free: 19.01 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/12.47, allocations: 133.1 kB / 4.451 GB, free: 19 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/12.47, allocations: 3.969 kB / 4.451 GB, free: 19 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01867/12.49, allocations: 3.759 MB / 4.455 GB, free: 18.89 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.112e-05/12.49, allocations: 12.25 kB / 4.455 GB, free: 18.89 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001032/12.49, allocations: 330 kB / 4.455 GB, free: 18.85 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003218/12.5, allocations: 0.6019 MB / 4.456 GB, free: 18.84 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002975/12.5, allocations: 3.184 MB / 4.459 GB, free: 16.24 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004174/12.5, allocations: 312.3 kB / 4.459 GB, free: 16.2 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008943/12.5, allocations: 116.3 kB / 4.459 GB, free: 16.2 MB / 0.5886 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.junctionVolume.medium.u:DUMMY_DER(fixed = false ) "Specific internal energy of medium" type: Real junctionVolume.mb_flow:VARIABLE(unit = "kg/s" ) "Mass flows across boundaries" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 31 (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,valveOpening1.nextEventScaled,valveOpening2.a,valveOpening2.b,valveOpening2.last,$PRE.valveOpening2.nextEvent,valveOpening2.nextEvent,valveOpening2.nextEventScaled,junctionIdeal.medium.phase,junctionVolume.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 (283): * Single equations (assignments): 276 * 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: 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,2 5,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.00191/12.51, allocations: 255.2 kB / 4.46 GB, free: 16.01 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003217/12.51, allocations: 0.7131 MB / 4.46 GB, free: 15.91 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02494/12.53, allocations: 7.77 MB / 4.468 GB, free: 15.33 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001086/12.53, allocations: 65.8 kB / 4.468 GB, free: 15.32 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.884e-05/12.53, allocations: 0 / 4.468 GB, free: 15.32 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02139/12.56, allocations: 6.693 MB / 4.474 GB, free: 14.57 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.037/12.59, allocations: 12.61 MB / 4.487 GB, free: 12.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.177e-05/12.59, allocations: 5.844 kB / 4.487 GB, free: 12.62 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002732/12.6, allocations: 420.5 kB / 4.487 GB, free: 12.62 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/12.6, allocations: 441.5 kB / 4.488 GB, free: 12.56 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007507/12.6, allocations: 60.97 kB / 4.488 GB, free: 12.56 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003446/12.6, allocations: 3.432 MB / 4.491 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.787e-05/12.6, allocations: 10.16 kB / 4.491 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03227/12.63, allocations: 9.145 MB / 4.5 GB, free: 8.496 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03858/12.67, allocations: 11.95 MB / 4.512 GB, free: 4.883 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003374/12.68, allocations: 0.7464 MB / 4.512 GB, free: 4.414 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001507/12.68, allocations: 34.81 kB / 4.512 GB, free: 4.391 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003669/12.68, allocations: 196.1 kB / 4.513 GB, free: 4.246 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007524/12.68, allocations: 180.3 kB / 4.513 GB, free: 4.164 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005652/12.68, allocations: 99.7 kB / 4.513 GB, free: 4.098 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.003121/12.69, allocations: 1.128 MB / 4.514 GB, free: 3.398 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.02326/12.71, allocations: 3.399 MB / 4.517 GB, free: 0.7539 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 9 (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,junctionVolume.medium.h) * Number of discrete variables: 43 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.region,$cse37.phase,$cse37.region,$cse38.phase,$cse38.region,$cse40.phase,$cse40.region,$cse42.phase,$cse42.region,$cse43.phase,$cse43.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,junctionIdeal.medium.phase,junctionVolume.medium.phase) * 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 (220): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 13 * When equations: 0 * 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,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.5233/13.23, allocations: 3.305 MB / 4.52 GB, free: 121.2 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.02044/13.25, allocations: 5.992 MB / 4.526 GB, free: 121 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.501e-05/13.25, allocations: 0 / 4.526 GB, free: 121 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.009671/13.26, allocations: 3.638 MB / 4.53 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01051/13.27, allocations: 0.9696 MB / 4.531 GB, free: 120.9 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02656/13.3, allocations: 6.431 MB / 4.537 GB, free: 119.7 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007603/13.31, allocations: 2.495 MB / 4.54 GB, free: 118.9 MB / 0.5886 GB Notification: Performance of SimCode: time 3.066e-06/13.31, allocations: 0 / 4.54 GB, free: 118.9 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes18.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes18.pipe 2>&1)