Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe1.mediums.1..h|pipe1.mediums.1..p|pipe2.mediums.1..h|pipe2.mediums.1..p|pipe3.mediums.1..h|pipe3.mediums.1..p|splitter.medium.h|splitter.medium.p|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4") [: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.00168/0.00168, allocations: 198.8 kB / 8.538 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.445/1.445, allocations: 225.5 MB / 234.4 MB, free: 3.328 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008765/0.0008765, allocations: 89.67 kB / 286.3 MB, free: 5.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2169/0.2169, allocations: 45.14 MB / 383.3 MB, free: 0.5469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 8.526e-06/8.546e-06, allocations: 0 / 452.6 MB, free: 76.19 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1462/0.1462, allocations: 63.25 MB / 0.5038 GB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.792/7.938, allocations: 2.835 GB / 3.338 GB, free: 85.72 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/7.938, allocations: 79.95 kB / 3.338 GB, free: 85.64 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.956/10.89, allocations: 0.9092 GB / 4.248 GB, free: 13.83 MB / 0.573 GB Notification: Performance of Transformations before backend: time 0.0002462/10.89, allocations: 62.59 kB / 4.248 GB, free: 13.77 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01883/10.91, allocations: 4.064 MB / 4.252 GB, free: 9.652 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/10.91, allocations: 8.031 kB / 4.252 GB, free: 9.645 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007785/10.92, allocations: 0.9062 MB / 4.253 GB, free: 8.734 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006636/10.93, allocations: 2.096 MB / 4.255 GB, free: 6.617 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/10.93, allocations: 95.97 kB / 4.255 GB, free: 6.523 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006815/10.93, allocations: 127.9 kB / 4.255 GB, free: 6.398 MB / 0.573 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005221/10.93, allocations: 2.749 MB / 4.258 GB, free: 3.645 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004931/10.94, allocations: 2.955 MB / 4.26 GB, free: 0.4961 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.599e-05/10.94, allocations: 7.938 kB / 4.26 GB, free: 500 kB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002424/10.94, allocations: 8 kB / 4.26 GB, free: 492 kB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001854/10.94, allocations: 179.7 kB / 4.261 GB, free: 312 kB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4877/11.43, allocations: 143 MB / 4.4 GB, free: 38.91 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001707/11.43, allocations: 1.143 MB / 4.401 GB, free: 38.89 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/11.43, allocations: 1.006 MB / 4.402 GB, free: 38.88 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03543/11.47, allocations: 19.4 MB / 4.421 GB, free: 41.73 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002632/11.47, allocations: 1.222 MB / 4.422 GB, free: 41.55 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=153): time 4.398e-06/11.47, allocations: 0 / 4.422 GB, free: 41.55 MB / 0.6355 GB Notification: Performance of matching and sorting (n=169): time 0.02086/11.49, allocations: 8.166 MB / 4.43 GB, free: 39.89 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001817/11.49, allocations: 359.1 kB / 4.431 GB, free: 39.49 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/11.49, allocations: 1.17 MB / 4.432 GB, free: 39.32 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 0.0002218/11.49, allocations: 34.42 kB / 4.432 GB, free: 39.29 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005827/11.49, allocations: 0.7875 MB / 4.433 GB, free: 38.94 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004793/11.49, allocations: 0.5491 MB / 4.433 GB, free: 38.66 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/11.49, allocations: 3.562 kB / 4.433 GB, free: 38.66 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001625/11.49, allocations: 380 kB / 4.434 GB, free: 38.35 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001456/11.49, allocations: 1.122 MB / 4.435 GB, free: 38.35 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/11.5, allocations: 1.533 MB / 4.436 GB, free: 37.89 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006439/11.5, allocations: 2.123 MB / 4.438 GB, free: 37.84 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.099e-05/11.5, allocations: 2.812 kB / 4.438 GB, free: 37.84 MB / 0.6355 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01179/11.51, allocations: 4.502 MB / 4.443 GB, free: 37.62 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 0.001585/11.52, allocations: 4.343 MB / 4.447 GB, free: 33.13 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/11.52, allocations: 13.16 kB / 4.447 GB, free: 33.13 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000612/11.52, allocations: 227.8 kB / 4.447 GB, free: 33.1 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00231/11.52, allocations: 0.5174 MB / 4.448 GB, free: 33.09 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001789/11.52, allocations: 2.484 MB / 4.45 GB, free: 31.01 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00318/11.52, allocations: 279.5 kB / 4.45 GB, free: 30.98 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002833/11.52, allocations: 108.5 kB / 4.45 GB, free: 30.98 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/11.52, allocations: 6.391 kB / 4.45 GB, free: 30.98 MB / 0.6355 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0084/11.53, allocations: 3.416 MB / 4.454 GB, free: 30.88 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.812e-05/11.53, allocations: 15 kB / 4.454 GB, free: 30.88 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006054/11.53, allocations: 231 kB / 4.454 GB, free: 30.85 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002135/11.53, allocations: 0.5144 MB / 4.455 GB, free: 30.84 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2613/11.8, allocations: 2.481 MB / 4.457 GB, free: 144.9 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00296/11.8, allocations: 253.6 kB / 4.457 GB, free: 144.9 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002756/11.8, allocations: 100.2 kB / 4.457 GB, free: 144.9 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 30 (pipe3.state_a.phase,pipe2.state_a.phase,valveIncompressible1.state_b.phase,valveIncompressible1.state_a.phase,valveIncompressible.state_b.phase,valveIncompressible.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,splitter.medium.phase,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 (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.0006788/11.8, allocations: 233.7 kB / 4.458 GB, free: 144.7 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001974/11.8, allocations: 0.6555 MB / 4.458 GB, free: 144.7 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008416/11.81, allocations: 6.07 MB / 4.464 GB, free: 144.4 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.705e-05/11.81, allocations: 52.47 kB / 4.464 GB, free: 144.4 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.096e-06/11.81, allocations: 3.344 kB / 4.464 GB, free: 144.4 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005848/11.82, allocations: 5.048 MB / 4.469 GB, free: 143.7 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/11.83, allocations: 9.019 MB / 4.478 GB, free: 142.6 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/11.83, allocations: 3.531 kB / 4.478 GB, free: 142.6 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/11.83, allocations: 338.3 kB / 4.478 GB, free: 142.6 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008562/11.83, allocations: 324.2 kB / 4.479 GB, free: 142.6 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001521/11.83, allocations: 49.44 kB / 4.479 GB, free: 142.6 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001271/11.83, allocations: 2.662 MB / 4.481 GB, free: 140.5 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/11.83, allocations: 3.031 kB / 4.481 GB, free: 140.5 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009784/11.84, allocations: 6.781 MB / 4.488 GB, free: 140 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001579/11.84, allocations: 0.692 MB / 4.488 GB, free: 139.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004776/11.84, allocations: 19 kB / 4.488 GB, free: 139.8 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/11.85, allocations: 188.4 kB / 4.489 GB, free: 139.8 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002555/11.85, allocations: 122.8 kB / 4.489 GB, free: 139.8 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/11.85, allocations: 78.02 kB / 4.489 GB, free: 139.8 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.001438/11.85, allocations: 1.128 MB / 4.49 GB, free: 139.7 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.01027/11.86, allocations: 2.795 MB / 4.493 GB, free: 139.7 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].h,pipe2.mediums[1].p,pipe2.mediums[1].h,pipe3.mediums[1].p,pipe3.mediums[1].h,splitter.medium.p,splitter.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse33.phase,$cse33.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,splitter.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 (175): * Single equations (assignments): 158 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 11 * 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 Backend phase and start with SimCode phase: time 0.01163/11.87, allocations: 3.24 MB / 4.496 GB, free: 139.5 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.007326/11.88, allocations: 5.242 MB / 4.501 GB, free: 139.4 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 6.181e-06/11.88, allocations: 0 / 4.501 GB, free: 139.4 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.002993/11.88, allocations: 2.645 MB / 4.504 GB, free: 139.3 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004393/11.88, allocations: 0.8255 MB / 4.504 GB, free: 139.3 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009405/11.89, allocations: 5.575 MB / 4.51 GB, free: 138.3 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002127/11.9, allocations: 2.318 MB / 4.512 GB, free: 137.5 MB / 0.6355 GB Notification: Performance of SimCode: time 6.91e-07/11.9, allocations: 0 / 4.512 GB, free: 137.5 MB / 0.6355 GB Notification: Performance of Templates: time 0.1232/12.02, allocations: 91.65 MB / 4.602 GB, free: 133.3 MB / 0.6355 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes4/BranchingPipes4.csv","../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes4.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches