Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.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.BranchingPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1",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.001339/0.001339, allocations: 203.9 kB / 8.541 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 225.5 MB / 234.4 MB, free: 3.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009582/0.0009582, allocations: 97.66 kB / 286.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.175/0.175, allocations: 45.15 MB / 383.4 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2033/0.3783, allocations: 69.36 MB / 452.7 MB, free: 76.05 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.4708, allocations: 63.23 MB / 0.5039 GB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.494/4.965, allocations: 2.83 GB / 3.334 GB, free: 76.02 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002168/4.965, allocations: 75.97 kB / 3.334 GB, free: 75.95 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 2.672/7.637, allocations: 0.8077 GB / 4.142 GB, free: 40.12 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 5.436e-05/7.637, allocations: 7.844 kB / 4.142 GB, free: 40.12 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007527/7.645, allocations: 0.8737 MB / 4.143 GB, free: 39.98 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006715/7.652, allocations: 2.102 MB / 4.145 GB, free: 39.52 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/7.652, allocations: 91.42 kB / 4.145 GB, free: 39.52 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004896/7.652, allocations: 123.1 kB / 4.145 GB, free: 39.52 MB / 0.5574 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004744/7.657, allocations: 2.942 MB / 4.148 GB, free: 39.51 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004512/7.662, allocations: 2.954 MB / 4.151 GB, free: 38.96 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.444e-05/7.662, allocations: 7.062 kB / 4.151 GB, free: 38.96 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002316/7.662, allocations: 6.594 kB / 4.151 GB, free: 38.96 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001561/7.662, allocations: 176.7 kB / 4.151 GB, free: 38.96 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5192/8.181, allocations: 142 MB / 4.29 GB, free: 117.1 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/8.183, allocations: 1.185 MB / 4.291 GB, free: 117 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/8.184, allocations: 1.036 MB / 4.292 GB, free: 117 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03258/8.217, allocations: 19.4 MB / 4.311 GB, free: 104.6 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002176/8.219, allocations: 1.276 MB / 4.312 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=152): time 4.208e-06/8.219, allocations: 0 / 4.312 GB, free: 104.4 MB / 0.6042 GB Notification: Performance of matching and sorting (n=164): time 0.02115/8.24, allocations: 8.339 MB / 4.32 GB, free: 102.9 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001913/8.24, allocations: 0.501 MB / 4.321 GB, free: 102.3 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/8.242, allocations: 1.227 MB / 4.322 GB, free: 102.2 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002205/8.243, allocations: 32.19 kB / 4.322 GB, free: 102.1 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006982/8.243, allocations: 0.7693 MB / 4.323 GB, free: 101.8 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.000613/8.244, allocations: 0.5354 MB / 4.323 GB, free: 101.5 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001397/8.244, allocations: 0 / 4.323 GB, free: 101.5 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001452/8.244, allocations: 388.7 kB / 4.324 GB, free: 101.2 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001774/8.246, allocations: 1.175 MB / 4.325 GB, free: 101.2 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/8.248, allocations: 1.604 MB / 4.326 GB, free: 100.8 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006569/8.254, allocations: 2.187 MB / 4.328 GB, free: 100.7 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/8.254, allocations: 3.688 kB / 4.328 GB, free: 100.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01168/8.266, allocations: 4.783 MB / 4.333 GB, free: 100.5 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006205/8.267, allocations: 3.915 MB / 4.337 GB, free: 96.55 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.148e-05/8.267, allocations: 18.17 kB / 4.337 GB, free: 96.55 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003857/8.271, allocations: 0.8635 MB / 4.338 GB, free: 96.52 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002061/8.273, allocations: 475.7 kB / 4.338 GB, free: 96.52 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003312/8.276, allocations: 3.532 MB / 4.342 GB, free: 94.43 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002692/8.279, allocations: 240.4 kB / 4.342 GB, free: 94.42 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002569/8.279, allocations: 102.4 kB / 4.342 GB, free: 94.42 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/8.279, allocations: 3.656 kB / 4.342 GB, free: 94.42 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009186/8.288, allocations: 3.644 MB / 4.346 GB, free: 94.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.51e-05/8.288, allocations: 18.56 kB / 4.346 GB, free: 94.34 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/8.289, allocations: 348.2 kB / 4.346 GB, free: 94.31 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002057/8.291, allocations: 0.494 MB / 4.346 GB, free: 94.31 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003318/8.295, allocations: 3.985 MB / 4.35 GB, free: 91.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00241/8.297, allocations: 213.1 kB / 4.35 GB, free: 91.53 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002475/8.297, allocations: 101.2 kB / 4.351 GB, free: 91.53 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,valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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.0006787/8.298, allocations: 229 kB / 4.351 GB, free: 91.35 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001881/8.3, allocations: 0.6236 MB / 4.351 GB, free: 91.26 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/8.31, allocations: 6.796 MB / 4.358 GB, free: 90.79 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.067e-05/8.31, allocations: 55.5 kB / 4.358 GB, free: 90.79 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/8.31, allocations: 10.59 kB / 4.358 GB, free: 90.79 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006688/8.317, allocations: 5.74 MB / 4.364 GB, free: 90.08 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01244/8.329, allocations: 9.376 MB / 4.373 GB, free: 89.22 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/8.329, allocations: 0 / 4.373 GB, free: 89.22 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001269/8.331, allocations: 274.3 kB / 4.373 GB, free: 89.22 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003648/8.334, allocations: 2.069 MB / 4.375 GB, free: 89.13 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001721/8.334, allocations: 47.19 kB / 4.375 GB, free: 89.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/8.338, allocations: 4.284 MB / 4.379 GB, free: 87.02 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/8.338, allocations: 5.75 kB / 4.379 GB, free: 87.02 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01046/8.349, allocations: 7.254 MB / 4.386 GB, free: 86.4 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01251/8.361, allocations: 9.752 MB / 4.396 GB, free: 85.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/8.363, allocations: 0.7057 MB / 4.397 GB, free: 85.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000713/8.363, allocations: 26.73 kB / 4.397 GB, free: 85.16 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001688/8.365, allocations: 158.2 kB / 4.397 GB, free: 85.16 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002553/8.365, allocations: 125.5 kB / 4.397 GB, free: 85.15 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001697/8.366, allocations: 70.75 kB / 4.397 GB, free: 85.15 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.001526/8.367, allocations: 1.169 MB / 4.398 GB, free: 85.01 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.01116/8.378, allocations: 3.315 MB / 4.401 GB, free: 84.89 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,valve1.filter.x[1],valve1.filter.x[2],valve2.filter.x[1],valve2.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.01074/8.389, allocations: 3.108 MB / 4.404 GB, free: 84.6 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007282/8.396, allocations: 5.617 MB / 4.41 GB, free: 84.18 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/8.396, allocations: 0 / 4.41 GB, free: 84.18 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003033/8.399, allocations: 2.746 MB / 4.413 GB, free: 84.1 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004226/8.404, allocations: 0.7452 MB / 4.413 GB, free: 84.08 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/8.415, allocations: 5.712 MB / 4.419 GB, free: 83.09 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002172/8.418, allocations: 2.362 MB / 4.421 GB, free: 82.32 MB / 0.6042 GB Notification: Performance of SimCode: time 8.01e-07/8.418, allocations: 3.094 kB / 4.421 GB, free: 82.32 MB / 0.6042 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes1.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes1.pipe 2>&1)