Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.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.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.h|junctionIdeal.medium.p|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.BranchingPipes14") [: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.001083/0.001083, allocations: 178.6 kB / 8.519 MB, free: 1.855 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.419/1.419, allocations: 221.4 MB / 230.3 MB, free: 7.707 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.0009464/0.0009461, allocations: 75.81 kB / 281.2 MB, free: 5.469 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.2382/0.2382, allocations: 44.13 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.886e-06/8.916e-06, allocations: 224 / 444 MB, free: 15.61 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1774, allocations: 61.91 MB / 0.4941 GB, free: 1.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.117/7.295, allocations: 2.851 GB / 3.345 GB, free: 128.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001958/7.295, allocations: 80.52 kB / 3.345 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.845/10.14, allocations: 0.9134 GB / 4.258 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002677/10.14, allocations: 67.78 kB / 4.258 GB, free: 12.23 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: 536 * Number of variables: 536 Notification: Performance of Generate backend data structure: time 0.01715/10.16, allocations: 3.988 MB / 4.262 GB, free: 8.188 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/10.16, allocations: 11.97 kB / 4.262 GB, free: 8.176 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007561/10.17, allocations: 0.91 MB / 4.263 GB, free: 7.262 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007076/10.17, allocations: 2.112 MB / 4.265 GB, free: 5.129 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002715/10.17, allocations: 95.97 kB / 4.265 GB, free: 5.035 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001056/10.17, allocations: 124 kB / 4.265 GB, free: 4.914 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005476/10.18, allocations: 2.706 MB / 4.268 GB, free: 2.203 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006252/10.19, allocations: 2.925 MB / 4.271 GB, free: 15.08 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.4e-05/10.19, allocations: 7.938 kB / 4.271 GB, free: 15.07 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004741/10.19, allocations: 7.984 kB / 4.271 GB, free: 15.06 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002373/10.19, allocations: 187.5 kB / 4.271 GB, free: 14.88 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4709/10.66, allocations: 127.3 MB / 4.395 GB, free: 40.89 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001497/10.66, allocations: 1.161 MB / 4.396 GB, free: 40.87 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001184/10.66, allocations: 1.102 MB / 4.397 GB, free: 40.86 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03104/10.69, allocations: 16.98 MB / 4.414 GB, free: 45.66 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002004/10.69, allocations: 1.274 MB / 4.415 GB, free: 45.5 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=163): time 3.627e-06/10.69, allocations: 0 / 4.415 GB, free: 45.5 MB / 0.6042 GB Notification: Performance of matching and sorting (n=179): time 0.03393/10.73, allocations: 9.904 MB / 4.425 GB, free: 43.95 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/10.73, allocations: 363.3 kB / 4.425 GB, free: 43.54 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/10.73, allocations: 1.111 MB / 4.426 GB, free: 43.38 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 0.0002025/10.73, allocations: 29.08 kB / 4.426 GB, free: 43.34 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.000514/10.73, allocations: 0.7742 MB / 4.427 GB, free: 43 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004737/10.73, allocations: 0.5797 MB / 4.428 GB, free: 42.7 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/10.73, allocations: 0 / 4.428 GB, free: 42.7 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 0.0001786/10.73, allocations: 388.3 kB / 4.428 GB, free: 42.39 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/10.73, allocations: 1.123 MB / 4.429 GB, free: 42.39 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/10.73, allocations: 1.573 MB / 4.431 GB, free: 41.93 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008964/10.74, allocations: 2.113 MB / 4.433 GB, free: 41.88 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.45e-05/10.74, allocations: 6.062 kB / 4.433 GB, free: 41.88 MB / 0.6042 GB Notification: Performance of matching and sorting (n=264) (initialization): time 0.01381/10.76, allocations: 4.485 MB / 4.437 GB, free: 41.66 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 0.0013/10.76, allocations: 4.349 MB / 4.441 GB, free: 37.18 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.788e-05/10.76, allocations: 10.66 kB / 4.441 GB, free: 37.18 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005654/10.76, allocations: 226.1 kB / 4.442 GB, free: 37.14 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00215/10.76, allocations: 0.5307 MB / 4.442 GB, free: 37.13 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/10.76, allocations: 2.489 MB / 4.445 GB, free: 35.05 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002939/10.76, allocations: 316.6 kB / 4.445 GB, free: 35.01 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002398/10.76, allocations: 116.2 kB / 4.445 GB, free: 35.01 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 7.464e-06/10.76, allocations: 3.125 kB / 4.445 GB, free: 35.01 MB / 0.6042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01037/10.78, allocations: 3.414 MB / 4.448 GB, free: 34.91 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/10.78, allocations: 9.438 kB / 4.448 GB, free: 34.91 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000521/10.78, allocations: 224.7 kB / 4.449 GB, free: 34.88 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002004/10.78, allocations: 0.5291 MB / 4.449 GB, free: 34.87 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/10.78, allocations: 2.481 MB / 4.452 GB, free: 32.79 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002504/10.78, allocations: 290.6 kB / 4.452 GB, free: 32.75 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002164/10.78, allocations: 106.2 kB / 4.452 GB, free: 32.75 MB / 0.6042 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 (valve2.state_b.phase,valve2.state_a.phase,valve1.state_b.phase,valve1.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,junctionIdeal.medium.phase,source.medium.phase,sink.medium.phase,pipe3.state_a.phase,pipe3.state_b.phase,pipe2.state_a.phase,pipe2.state_b.phase,pipe1.state_b.phase,pipe1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (250): * Single equations (assignments): 244 * 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.0006069/10.78, allocations: 236.4 kB / 4.452 GB, free: 32.58 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001757/10.78, allocations: 0.6601 MB / 4.453 GB, free: 32.48 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01522/10.8, allocations: 6.791 MB / 4.459 GB, free: 31.98 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-05/10.8, allocations: 53.81 kB / 4.459 GB, free: 31.98 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.938e-06/10.8, allocations: 3.625 kB / 4.459 GB, free: 31.98 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01274/10.81, allocations: 5.866 MB / 4.465 GB, free: 31.27 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02069/10.83, allocations: 11.16 MB / 4.476 GB, free: 29.52 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/10.83, allocations: 3.656 kB / 4.476 GB, free: 29.52 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001556/10.83, allocations: 364.4 kB / 4.476 GB, free: 29.52 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008709/10.84, allocations: 334.4 kB / 4.477 GB, free: 29.46 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001932/10.84, allocations: 53.33 kB / 4.477 GB, free: 29.46 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00157/10.84, allocations: 2.666 MB / 4.479 GB, free: 27.37 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/10.84, allocations: 16.02 kB / 4.479 GB, free: 27.37 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01658/10.85, allocations: 8.115 MB / 4.487 GB, free: 26.08 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001576/10.86, allocations: 0.6972 MB / 4.488 GB, free: 25.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004613/10.86, allocations: 28.33 kB / 4.488 GB, free: 25.85 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/10.86, allocations: 183.5 kB / 4.488 GB, free: 25.83 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000295/10.86, allocations: 155.7 kB / 4.488 GB, free: 25.82 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001882/10.86, allocations: 79.06 kB / 4.488 GB, free: 25.82 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.00155/10.86, allocations: 1.075 MB / 4.489 GB, free: 25.71 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.008699/10.87, allocations: 2.675 MB / 4.492 GB, free: 25.71 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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,junctionIdeal.medium.p,junctionIdeal.medium.h) * Number of discrete variables: 38 ($cse5.phase,$cse5.region,$cse10.phase,$cse10.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,$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,junctionIdeal.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 (188): * Single equations (assignments): 171 * 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.009476/10.88, allocations: 3.114 MB / 4.495 GB, free: 25.28 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.007234/10.89, allocations: 5.269 MB / 4.5 GB, free: 24.69 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/10.89, allocations: 0 / 4.5 GB, free: 24.69 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.003627/10.89, allocations: 3.188 MB / 4.503 GB, free: 23.11 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004341/10.89, allocations: 0.8128 MB / 4.504 GB, free: 22.66 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009411/10.9, allocations: 5.783 MB / 4.51 GB, free: 18.5 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002206/10.91, allocations: 2.329 MB / 4.512 GB, free: 16.75 MB / 0.6042 GB Notification: Performance of SimCode: time 9.12e-07/10.91, allocations: 0 / 4.512 GB, free: 16.75 MB / 0.6042 GB Notification: Performance of Templates: time 0.3186/11.22, allocations: 89.85 MB / 4.6 GB, free: 122.7 MB / 0.6042 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes14/BranchingPipes14.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes14.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches