Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2",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 trunk/package.mo): time 0.001101/0.001101, allocations: 195.1 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 225.5 MB / 234.4 MB, free: 3.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009083/0.0009083, allocations: 90.73 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1729/0.1729, allocations: 45.14 MB / 383.3 MB, free: 0.6094 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2211/0.394, allocations: 69.36 MB / 452.7 MB, free: 76.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09568/0.4897, allocations: 63.25 MB / 0.5039 GB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.432/4.921, allocations: 2.847 GB / 3.351 GB, free: 72.46 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000174/4.922, allocations: 71.97 kB / 3.351 GB, free: 72.39 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: 467 * Number of variables: 467 Notification: Performance of Generate backend data structure: time 2.634/7.556, allocations: 0.812 GB / 4.163 GB, free: 42.04 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/7.556, allocations: 11.09 kB / 4.163 GB, free: 42.04 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006809/7.563, allocations: 0.8177 MB / 4.164 GB, free: 41.91 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006542/7.569, allocations: 2.005 MB / 4.166 GB, free: 41.47 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002105/7.569, allocations: 80.39 kB / 4.166 GB, free: 41.47 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00083/7.57, allocations: 109 kB / 4.166 GB, free: 41.46 MB / 0.5573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00537/7.576, allocations: 2.602 MB / 4.169 GB, free: 41.46 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006237/7.582, allocations: 2.591 MB / 4.171 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.34e-05/7.582, allocations: 9.844 kB / 4.171 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003168/7.582, allocations: 6.219 kB / 4.171 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001849/7.583, allocations: 154.3 kB / 4.171 GB, free: 40.98 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5078/8.09, allocations: 141.1 MB / 4.309 GB, free: 92.79 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001974/8.092, allocations: 1.04 MB / 4.31 GB, free: 92.77 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001541/8.094, allocations: 1.009 MB / 4.311 GB, free: 92.75 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03521/8.129, allocations: 19.47 MB / 4.33 GB, free: 80.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00249/8.132, allocations: 1.183 MB / 4.331 GB, free: 80.04 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=145): time 6.893e-06/8.132, allocations: 0 / 4.331 GB, free: 80.04 MB / 0.5886 GB Notification: Performance of matching and sorting (n=157): time 0.03867/8.17, allocations: 9.231 MB / 4.34 GB, free: 78.66 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.968e-05/8.17, allocations: 359.3 kB / 4.341 GB, free: 78.25 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001877/8.172, allocations: 1.052 MB / 4.342 GB, free: 78.09 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0002983/8.173, allocations: 28.27 kB / 4.342 GB, free: 78.06 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006221/8.173, allocations: 0.6852 MB / 4.342 GB, free: 77.75 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006209/8.174, allocations: 0.503 MB / 4.343 GB, free: 77.49 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001599/8.174, allocations: 0 / 4.343 GB, free: 77.49 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.0001288/8.174, allocations: 385.1 kB / 4.343 GB, free: 77.19 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/8.176, allocations: 1.021 MB / 4.344 GB, free: 77.19 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001637/8.177, allocations: 1.415 MB / 4.346 GB, free: 76.81 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009238/8.187, allocations: 2.001 MB / 4.348 GB, free: 76.79 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.142e-05/8.187, allocations: 2.688 kB / 4.348 GB, free: 76.79 MB / 0.5886 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01537/8.202, allocations: 4.335 MB / 4.352 GB, free: 76.6 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006177/8.203, allocations: 3.72 MB / 4.355 GB, free: 72.79 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.783e-05/8.203, allocations: 11.81 kB / 4.355 GB, free: 72.79 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00223/8.205, allocations: 0.5157 MB / 4.356 GB, free: 72.75 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001994/8.207, allocations: 456.4 kB / 4.356 GB, free: 72.75 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002167/8.209, allocations: 2.911 MB / 4.359 GB, free: 70.67 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002795/8.212, allocations: 270.4 kB / 4.359 GB, free: 70.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002666/8.212, allocations: 98.94 kB / 4.36 GB, free: 70.66 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.081e-05/8.212, allocations: 3.719 kB / 4.36 GB, free: 70.66 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01105/8.223, allocations: 3.201 MB / 4.363 GB, free: 70.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/8.223, allocations: 9.625 kB / 4.363 GB, free: 70.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000484/8.224, allocations: 192.4 kB / 4.363 GB, free: 70.57 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/8.226, allocations: 469.9 kB / 4.363 GB, free: 70.57 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001022/8.227, allocations: 1.921 MB / 4.365 GB, free: 69.02 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002448/8.229, allocations: 238.6 kB / 4.365 GB, free: 68.99 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002268/8.23, allocations: 102.2 kB / 4.365 GB, free: 68.98 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.0005939/8.23, allocations: 232.8 kB / 4.366 GB, free: 68.81 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001889/8.232, allocations: 0.6078 MB / 4.366 GB, free: 68.73 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01418/8.246, allocations: 6.759 MB / 4.373 GB, free: 68.22 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-05/8.246, allocations: 55.06 kB / 4.373 GB, free: 68.22 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/8.246, allocations: 3.688 kB / 4.373 GB, free: 68.22 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01214/8.259, allocations: 5.849 MB / 4.379 GB, free: 67.5 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01871/8.277, allocations: 10.23 MB / 4.389 GB, free: 66.22 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.237e-05/8.277, allocations: 12 kB / 4.389 GB, free: 66.21 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/8.279, allocations: 290.9 kB / 4.389 GB, free: 66.21 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002032/8.281, allocations: 1.161 MB / 4.39 GB, free: 66.13 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001883/8.281, allocations: 54.09 kB / 4.39 GB, free: 66.13 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002337/8.283, allocations: 3.407 MB / 4.393 GB, free: 64.02 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/8.283, allocations: 6.719 kB / 4.393 GB, free: 64.02 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01494/8.298, allocations: 7.676 MB / 4.401 GB, free: 62.89 MB / 0.5886 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01711/8.315, allocations: 10.03 MB / 4.411 GB, free: 61.37 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001528/8.317, allocations: 0.6663 MB / 4.411 GB, free: 61.14 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004014/8.317, allocations: 24.11 kB / 4.411 GB, free: 61.14 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001489/8.319, allocations: 151.1 kB / 4.412 GB, free: 61.12 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002434/8.319, allocations: 134.7 kB / 4.412 GB, free: 61.12 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001612/8.319, allocations: 72.89 kB / 4.412 GB, free: 61.12 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001379/8.321, allocations: 1.036 MB / 4.413 GB, free: 61.01 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.01171/8.332, allocations: 3.029 MB / 4.416 GB, free: 60.97 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,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse32.phase,$cse32.region,$cse34.phase,$cse34.region,$cse36.phase,$cse36.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.0135/8.346, allocations: 2.945 MB / 4.419 GB, free: 60.55 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0094/8.355, allocations: 4.935 MB / 4.423 GB, free: 60.38 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 9.928e-06/8.355, allocations: 0.6562 kB / 4.423 GB, free: 60.38 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.003539/8.359, allocations: 2.988 MB / 4.426 GB, free: 60.29 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004088/8.363, allocations: 0.6789 MB / 4.427 GB, free: 60.25 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008321/8.371, allocations: 5.403 MB / 4.432 GB, free: 59 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001807/8.373, allocations: 2.23 MB / 4.434 GB, free: 58.21 MB / 0.5886 GB Notification: Performance of SimCode: time 1.232e-06/8.373, allocations: 0 / 4.434 GB, free: 58.21 MB / 0.5886 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes2.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes2.pipe 2>&1)