Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17",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.001439/0.001439, 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.18/1.18, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009442/0.0009441, allocations: 97.55 kB / 286.3 MB, free: 5.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1654/0.1654, allocations: 45.13 MB / 383.3 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1862/0.3516, allocations: 69.37 MB / 452.7 MB, free: 76.14 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08222/0.4339, allocations: 63.24 MB / 0.5039 GB, free: 12.96 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8756/1.309, allocations: 0.5618 GB / 1.066 GB, free: 102.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/1.31, allocations: 79.95 kB / 1.066 GB, free: 102.4 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 1.693/3.003, allocations: 0.5656 GB / 1.631 GB, free: 46.06 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/3.003, allocations: 7.531 kB / 1.631 GB, free: 46.06 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00384/3.007, allocations: 463.6 kB / 1.632 GB, free: 45.93 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005457/3.013, allocations: 2.019 MB / 1.634 GB, free: 45.53 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.388e-05/3.013, allocations: 60.59 kB / 1.634 GB, free: 45.53 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004145/3.013, allocations: 105.5 kB / 1.634 GB, free: 45.53 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003338/3.016, allocations: 2.278 MB / 1.636 GB, free: 45.52 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00321/3.02, allocations: 2.541 MB / 1.639 GB, free: 45.07 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.472e-05/3.02, allocations: 12.47 kB / 1.639 GB, free: 45.06 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002288/3.02, allocations: 6.094 kB / 1.639 GB, free: 45.06 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001216/3.02, allocations: 167.5 kB / 1.639 GB, free: 45.06 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01258/3.033, allocations: 12.11 MB / 1.651 GB, free: 38.16 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/3.034, allocations: 1.135 MB / 1.652 GB, free: 38.13 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001215/3.035, allocations: 1.088 MB / 1.653 GB, free: 38.11 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007637/3.036, allocations: 0.5104 MB / 1.653 GB, free: 37.64 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001528/3.038, allocations: 1.278 MB / 1.655 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=167): time 3.887e-06/3.038, allocations: 0 / 1.655 GB, free: 37.47 MB / 0.5417 GB Notification: Performance of matching and sorting (n=192): time 0.04028/3.078, allocations: 9.896 MB / 1.664 GB, free: 36.53 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/3.078, allocations: 363.7 kB / 1.665 GB, free: 36.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/3.08, allocations: 1.11 MB / 1.666 GB, free: 35.95 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0002277/3.08, allocations: 35.42 kB / 1.666 GB, free: 35.91 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000405/3.08, allocations: 0.6775 MB / 1.666 GB, free: 35.52 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004745/3.081, allocations: 0.6228 MB / 1.667 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001635/3.081, allocations: 0 / 1.667 GB, free: 35.11 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.903e-05/3.081, allocations: 399.7 kB / 1.667 GB, free: 34.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/3.082, allocations: 1.055 MB / 1.668 GB, free: 34.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/3.084, allocations: 1.529 MB / 1.67 GB, free: 34.34 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009749/3.094, allocations: 2.359 MB / 1.672 GB, free: 34.31 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.467e-06/3.094, allocations: 3.5 kB / 1.672 GB, free: 34.31 MB / 0.5417 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01302/3.107, allocations: 4.163 MB / 1.676 GB, free: 34.09 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005841/3.107, allocations: 4.187 MB / 1.68 GB, free: 29.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/3.107, allocations: 9.812 kB / 1.68 GB, free: 29.84 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006871/3.108, allocations: 278.8 kB / 1.681 GB, free: 29.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002486/3.111, allocations: 0.5554 MB / 1.681 GB, free: 29.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/3.112, allocations: 3.067 MB / 1.684 GB, free: 27.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002491/3.115, allocations: 181.2 kB / 1.684 GB, free: 27.19 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003619/3.115, allocations: 203.3 kB / 1.684 GB, free: 27.19 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.435e-06/3.115, allocations: 6.188 kB / 1.684 GB, free: 27.19 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01151/3.127, allocations: 3.612 MB / 1.688 GB, free: 27.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/3.127, allocations: 7.344 kB / 1.688 GB, free: 27.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006354/3.127, allocations: 275.5 kB / 1.688 GB, free: 27.06 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002438/3.13, allocations: 0.5495 MB / 1.689 GB, free: 27.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00156/3.131, allocations: 3.062 MB / 1.692 GB, free: 24.47 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/3.134, allocations: 173.8 kB / 1.692 GB, free: 24.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003352/3.134, allocations: 203.2 kB / 1.692 GB, free: 24.46 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (258): * Single equations (assignments): 251 * 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,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006706/3.135, allocations: 234.3 kB / 1.692 GB, free: 24.28 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003259/3.135, allocations: 202.2 kB / 1.693 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01842/3.154, allocations: 6.327 MB / 1.699 GB, free: 23.97 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.857e-05/3.154, allocations: 20.19 kB / 1.699 GB, free: 23.97 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/3.154, allocations: 7.844 kB / 1.699 GB, free: 23.97 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01284/3.167, allocations: 3.849 MB / 1.703 GB, free: 23.45 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01981/3.186, allocations: 7.402 MB / 1.71 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/3.186, allocations: 5.656 kB / 1.71 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002113/3.189, allocations: 456.4 kB / 1.71 GB, free: 22.46 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007988/3.189, allocations: 294.6 kB / 1.71 GB, free: 22.41 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002407/3.19, allocations: 84.98 kB / 1.711 GB, free: 22.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002015/3.192, allocations: 3.753 MB / 1.714 GB, free: 19.14 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/3.192, allocations: 7.562 kB / 1.714 GB, free: 19.14 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01597/3.208, allocations: 5.785 MB / 1.72 GB, free: 18.07 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01894/3.227, allocations: 7.799 MB / 1.727 GB, free: 32.61 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/3.228, allocations: 0.5321 MB / 1.728 GB, free: 32.34 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004679/3.228, allocations: 30 kB / 1.728 GB, free: 32.34 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/3.23, allocations: 95.23 kB / 1.728 GB, free: 32.33 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003224/3.23, allocations: 167.4 kB / 1.728 GB, free: 32.3 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003492/3.231, allocations: 181.2 kB / 1.728 GB, free: 32.29 MB / 0.5574 GB Notification: Performance of sort global known variables: time 0.001129/3.232, allocations: 0.8093 MB / 1.729 GB, free: 31.95 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.006972/3.239, allocations: 2.229 MB / 1.731 GB, free: 31.16 MB / 0.5574 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T,junctionVolume.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (200): * Single equations (assignments): 193 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004475/3.243, allocations: 2.529 MB / 1.734 GB, free: 30.59 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.006308/3.25, allocations: 4.273 MB / 1.738 GB, free: 28.25 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/3.25, allocations: 0 / 1.738 GB, free: 28.25 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.001944/3.252, allocations: 1.515 MB / 1.74 GB, free: 26.85 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004086/3.256, allocations: 0.9033 MB / 1.74 GB, free: 26.23 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007451/3.263, allocations: 4.337 MB / 1.745 GB, free: 22.64 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003204/3.266, allocations: 2.359 MB / 1.747 GB, free: 20.74 MB / 0.5574 GB Notification: Performance of SimCode: time 5.91e-07/3.266, allocations: 0 / 1.747 GB, free: 20.74 MB / 0.5574 GB (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-07 ModelicaTest_trunk_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes17.fmu > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1)