Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.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.BranchingPipes15,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15",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.001247/0.001247, allocations: 178.3 kB / 8.519 MB, free: 1.832 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.184/1.184, allocations: 221.4 MB / 230.3 MB, free: 7.711 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.001007/0.001007, allocations: 89.72 kB / 281.2 MB, free: 5.531 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.161/0.161, allocations: 44.15 MB / 376.1 MB, free: 3.262 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1687/0.3298, allocations: 68.03 MB / 444.1 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09698/0.4268, allocations: 61.91 MB / 0.4942 GB, free: 1.57 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9443/1.371, allocations: 0.5607 GB / 1.055 GB, free: 31.65 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002024/1.371, allocations: 75.22 kB / 1.055 GB, free: 31.62 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: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 1.595/2.967, allocations: 0.5063 GB / 1.561 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.42e-05/2.967, allocations: 14.5 kB / 1.561 GB, free: 48.7 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003483/2.97, allocations: 447.1 kB / 1.562 GB, free: 48.57 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005012/2.975, allocations: 1.94 MB / 1.564 GB, free: 48.13 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.46e-05/2.975, allocations: 60.92 kB / 1.564 GB, free: 48.13 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005591/2.976, allocations: 102.3 kB / 1.564 GB, free: 48.12 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003273/2.979, allocations: 2.196 MB / 1.566 GB, free: 48.11 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003251/2.982, allocations: 2.437 MB / 1.568 GB, free: 47.69 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.343e-05/2.983, allocations: 4.656 kB / 1.568 GB, free: 47.69 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002186/2.983, allocations: 6.688 kB / 1.568 GB, free: 47.69 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001144/2.983, allocations: 165.4 kB / 1.568 GB, free: 47.68 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01222/2.995, allocations: 11.77 MB / 1.58 GB, free: 40.88 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/2.997, allocations: 1.044 MB / 1.581 GB, free: 40.86 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/2.998, allocations: 1.011 MB / 1.582 GB, free: 40.84 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007665/2.998, allocations: 0.504 MB / 1.582 GB, free: 40.38 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001373/3, allocations: 1.187 MB / 1.584 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=153): time 3.035e-06/3, allocations: 0.7188 kB / 1.584 GB, free: 40.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=173): time 0.03697/3.037, allocations: 9.042 MB / 1.592 GB, free: 39.31 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.417e-05/3.037, allocations: 366 kB / 1.593 GB, free: 38.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/3.038, allocations: 1.078 MB / 1.594 GB, free: 38.73 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001928/3.038, allocations: 36.73 kB / 1.594 GB, free: 38.7 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003813/3.039, allocations: 0.6567 MB / 1.594 GB, free: 38.32 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004097/3.039, allocations: 0.5625 MB / 1.595 GB, free: 37.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/3.039, allocations: 1.375 kB / 1.595 GB, free: 37.95 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.828e-05/3.04, allocations: 384.7 kB / 1.595 GB, free: 37.64 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001312/3.041, allocations: 1.01 MB / 1.596 GB, free: 37.63 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001516/3.042, allocations: 1.432 MB / 1.598 GB, free: 37.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01048/3.053, allocations: 2.29 MB / 1.6 GB, free: 37.2 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.377e-05/3.053, allocations: 0 / 1.6 GB, free: 37.2 MB / 0.5261 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.0129/3.066, allocations: 3.929 MB / 1.604 GB, free: 37 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000613/3.066, allocations: 3.648 MB / 1.607 GB, free: 33.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/3.067, allocations: 10.34 kB / 1.607 GB, free: 33.28 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003672/3.067, allocations: 164.7 kB / 1.608 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002436/3.069, allocations: 0.5311 MB / 1.608 GB, free: 33.25 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/3.07, allocations: 2.38 MB / 1.61 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002479/3.073, allocations: 169.7 kB / 1.611 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003258/3.073, allocations: 185.3 kB / 1.611 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.955e-06/3.073, allocations: 3.75 kB / 1.611 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01085/3.084, allocations: 3.383 MB / 1.614 GB, free: 31.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.909e-05/3.084, allocations: 9.531 kB / 1.614 GB, free: 31.08 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003263/3.085, allocations: 171.1 kB / 1.614 GB, free: 31.05 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002342/3.087, allocations: 0.5276 MB / 1.615 GB, free: 31.05 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001117/3.088, allocations: 2.365 MB / 1.617 GB, free: 28.97 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002223/3.09, allocations: 166.8 kB / 1.617 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/3.091, allocations: 183.9 kB / 1.617 GB, free: 28.96 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (243): * Single equations (assignments): 237 * 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,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0006067/3.091, allocations: 227.8 kB / 1.618 GB, free: 28.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003606/3.092, allocations: 187.5 kB / 1.618 GB, free: 28.68 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01645/3.108, allocations: 5.111 MB / 1.623 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.14e-05/3.108, allocations: 18.09 kB / 1.623 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/3.108, allocations: 1.531 kB / 1.623 GB, free: 28.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01218/3.12, allocations: 3.498 MB / 1.626 GB, free: 27.98 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01863/3.139, allocations: 6.836 MB / 1.633 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/3.139, allocations: 5.75 kB / 1.633 GB, free: 25.79 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/3.141, allocations: 410.5 kB / 1.633 GB, free: 25.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003724/3.141, allocations: 166 kB / 1.633 GB, free: 25.71 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001866/3.142, allocations: 75.77 kB / 1.634 GB, free: 25.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001378/3.143, allocations: 3.039 MB / 1.636 GB, free: 22.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/3.143, allocations: 11.16 kB / 1.637 GB, free: 22.81 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01403/3.157, allocations: 5.298 MB / 1.642 GB, free: 20.54 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0153/3.172, allocations: 7.199 MB / 1.649 GB, free: 14.06 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/3.174, allocations: 0.5036 MB / 1.649 GB, free: 13.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004293/3.174, allocations: 23.84 kB / 1.649 GB, free: 13.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001499/3.176, allocations: 95.83 kB / 1.649 GB, free: 13.52 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002585/3.176, allocations: 145 kB / 1.649 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002285/3.176, allocations: 148.5 kB / 1.65 GB, free: 13.29 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0009844/3.177, allocations: 0.8023 MB / 1.65 GB, free: 12.57 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006815/3.184, allocations: 2.065 MB / 1.652 GB, free: 10.55 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (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) * 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 (183): * Single equations (assignments): 177 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.004277/3.188, allocations: 2.356 MB / 1.655 GB, free: 8.871 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.005319/3.193, allocations: 3.997 MB / 1.659 GB, free: 5.215 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/3.194, allocations: 0 / 1.659 GB, free: 5.215 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00156/3.195, allocations: 1.377 MB / 1.66 GB, free: 3.938 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003535/3.199, allocations: 0.7531 MB / 1.661 GB, free: 3.422 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00724/3.206, allocations: 4.095 MB / 1.665 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003319/3.209, allocations: 2.257 MB / 1.667 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of SimCode: time 5.01e-07/3.209, allocations: 0 / 1.667 GB, free: 14.12 MB / 0.5417 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestPipesAndValves_BranchingPipes15.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1)