Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.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: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3,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|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3") [: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.001387/0.001387, allocations: 180 kB / 8.519 MB, free: 1.848 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.348/1.348, allocations: 221.4 MB / 230.3 MB, free: 7.66 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.0009378/0.0009376, allocations: 86.23 kB / 281.2 MB, free: 5.449 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.193/0.193, allocations: 44.16 MB / 376.1 MB, free: 3.223 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 9.548e-06/9.578e-06, allocations: 4 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1567, allocations: 61.9 MB / 0.4941 GB, free: 1.633 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.531/7.688, allocations: 2.847 GB / 3.341 GB, free: 134.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/7.688, allocations: 77.5 kB / 3.341 GB, free: 134.2 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.729/10.42, allocations: 0.8787 GB / 4.22 GB, free: 34.03 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0001743/10.42, allocations: 65.44 kB / 4.22 GB, free: 34.02 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 476 * Number of variables: 476 Notification: Performance of Generate backend data structure: time 0.01386/10.43, allocations: 3.776 MB / 4.223 GB, free: 32.14 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.936e-05/10.43, allocations: 14.45 kB / 4.223 GB, free: 32.14 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006654/10.44, allocations: 0.8146 MB / 4.224 GB, free: 32 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005465/10.44, allocations: 1.99 MB / 4.226 GB, free: 31.52 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/10.44, allocations: 85.67 kB / 4.226 GB, free: 31.52 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000363/10.44, allocations: 114.9 kB / 4.226 GB, free: 31.51 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003624/10.45, allocations: 2.371 MB / 4.229 GB, free: 31.5 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003814/10.45, allocations: 2.609 MB / 4.231 GB, free: 31 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.627e-05/10.45, allocations: 3.719 kB / 4.231 GB, free: 31 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/10.45, allocations: 15.23 kB / 4.231 GB, free: 31 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/10.45, allocations: 157.1 kB / 4.231 GB, free: 31 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4892/10.94, allocations: 125.8 MB / 4.354 GB, free: 76.4 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001671/10.94, allocations: 1.051 MB / 4.355 GB, free: 76.38 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00126/10.94, allocations: 1.008 MB / 4.356 GB, free: 76.37 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03116/10.98, allocations: 17.08 MB / 4.373 GB, free: 65.41 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001902/10.98, allocations: 1.184 MB / 4.374 GB, free: 65.24 MB / 0.573 GB Notification: Performance of pre-optimization done (n=145): time 3.546e-06/10.98, allocations: 0 / 4.374 GB, free: 65.24 MB / 0.573 GB Notification: Performance of matching and sorting (n=157): time 0.03454/11.01, allocations: 9.208 MB / 4.383 GB, free: 63.81 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.269e-05/11.01, allocations: 363.5 kB / 4.383 GB, free: 63.39 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/11.01, allocations: 1.049 MB / 4.384 GB, free: 63.23 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.0002875/11.01, allocations: 29.52 kB / 4.384 GB, free: 63.2 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/11.01, allocations: 0.6946 MB / 4.385 GB, free: 62.89 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004885/11.01, allocations: 0.5047 MB / 4.386 GB, free: 62.63 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/11.01, allocations: 1.5 kB / 4.386 GB, free: 62.63 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001103/11.01, allocations: 381.5 kB / 4.386 GB, free: 62.32 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/11.02, allocations: 1.027 MB / 4.387 GB, free: 62.32 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001671/11.02, allocations: 1.421 MB / 4.388 GB, free: 61.93 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008654/11.03, allocations: 1.983 MB / 4.39 GB, free: 61.89 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/11.03, allocations: 3.344 kB / 4.39 GB, free: 61.89 MB / 0.573 GB Notification: Performance of matching and sorting (n=230) (initialization): time 0.01365/11.04, allocations: 4.311 MB / 4.395 GB, free: 61.67 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00068/11.04, allocations: 3.723 MB / 4.398 GB, free: 57.82 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/11.04, allocations: 11.59 kB / 4.398 GB, free: 57.82 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002146/11.04, allocations: 0.5226 MB / 4.399 GB, free: 57.77 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00182/11.04, allocations: 455.7 kB / 4.399 GB, free: 57.77 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001973/11.05, allocations: 2.905 MB / 4.402 GB, free: 55.68 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002582/11.05, allocations: 276.4 kB / 4.402 GB, free: 55.65 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002068/11.05, allocations: 99.5 kB / 4.402 GB, free: 55.65 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/11.05, allocations: 5.562 kB / 4.402 GB, free: 55.65 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00996/11.06, allocations: 3.179 MB / 4.405 GB, free: 55.56 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/11.06, allocations: 11.78 kB / 4.405 GB, free: 55.56 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004571/11.06, allocations: 198.8 kB / 4.406 GB, free: 55.53 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001821/11.06, allocations: 467.1 kB / 4.406 GB, free: 55.52 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009416/11.06, allocations: 1.921 MB / 4.408 GB, free: 53.96 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002311/11.07, allocations: 246.5 kB / 4.408 GB, free: 53.93 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/11.07, allocations: 98.42 kB / 4.408 GB, free: 53.93 MB / 0.573 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.0005675/11.07, allocations: 233.3 kB / 4.409 GB, free: 53.76 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00173/11.07, allocations: 0.6091 MB / 4.409 GB, free: 53.67 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01354/11.08, allocations: 6.731 MB / 4.416 GB, free: 53.17 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.403e-05/11.08, allocations: 60.8 kB / 4.416 GB, free: 53.16 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/11.08, allocations: 0 / 4.416 GB, free: 53.16 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01082/11.09, allocations: 5.841 MB / 4.421 GB, free: 52.44 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01884/11.11, allocations: 10.23 MB / 4.431 GB, free: 51.16 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.324e-05/11.11, allocations: 7.094 kB / 4.431 GB, free: 51.16 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001266/11.11, allocations: 295.2 kB / 4.432 GB, free: 51.16 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002002/11.11, allocations: 1.166 MB / 4.433 GB, free: 51.07 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000283/11.11, allocations: 45.16 kB / 4.433 GB, free: 51.07 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00247/11.12, allocations: 3.398 MB / 4.436 GB, free: 48.96 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.193e-06/11.12, allocations: 10.19 kB / 4.436 GB, free: 48.96 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01414/11.13, allocations: 7.662 MB / 4.444 GB, free: 47.83 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/11.13, allocations: 0.6668 MB / 4.444 GB, free: 47.61 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003886/11.13, allocations: 26.94 kB / 4.444 GB, free: 47.6 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00143/11.13, allocations: 158.2 kB / 4.445 GB, free: 47.58 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002279/11.14, allocations: 133.2 kB / 4.445 GB, free: 47.57 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/11.14, allocations: 72.92 kB / 4.445 GB, free: 47.57 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.001265/11.14, allocations: 1.034 MB / 4.446 GB, free: 47.46 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01065/11.15, allocations: 2.543 MB / 4.448 GB, free: 47.44 MB / 0.573 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,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse30.phase,$cse30.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) * 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.01048/11.16, allocations: 3.029 MB / 4.451 GB, free: 47 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.006521/11.16, allocations: 4.922 MB / 4.456 GB, free: 46.82 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 8.086e-06/11.16, allocations: 0 / 4.456 GB, free: 46.82 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.003152/11.17, allocations: 2.978 MB / 4.459 GB, free: 46.73 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004324/11.17, allocations: 0.7541 MB / 4.46 GB, free: 46.69 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009462/11.18, allocations: 5.428 MB / 4.465 GB, free: 45.43 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001973/11.18, allocations: 2.222 MB / 4.467 GB, free: 44.64 MB / 0.573 GB Notification: Performance of SimCode: time 1.413e-06/11.18, allocations: 0 / 4.467 GB, free: 44.64 MB / 0.573 GB Notification: Performance of Templates: time 0.1181/11.3, allocations: 85.58 MB / 4.551 GB, free: 7.355 MB / 0.573 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes3/BranchingPipes3.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches