Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.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.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12,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|valveIncompressible.filter.x.1.|valveIncompressible.filter.x.2.|valveIncompressible1.filter.x.1.|valveIncompressible1.filter.x.2.|valveOpening1.a|valveOpening1.b|valveOpening1.last|valveOpening1.nextEvent|valveOpening2.a|valveOpening2.b|valveOpening2.last|valveOpening2.nextEvent",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12") [: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.0009375/0.0009377, allocations: 179.6 kB / 8.519 MB, free: 1.863 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.301/1.301, allocations: 221.4 MB / 230.3 MB, free: 7.734 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.0009629/0.0009629, allocations: 92.67 kB / 281.2 MB, free: 5.473 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.2071/0.2071, allocations: 44.15 MB / 376.1 MB, free: 3.246 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.675e-06/7.715e-06, allocations: 4.219 kB / 444 MB, free: 15.64 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1599/0.1599, allocations: 61.91 MB / 0.4941 GB, free: 1.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.504/7.664, allocations: 2.829 GB / 3.323 GB, free: 151.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003156/7.664, allocations: 79.14 kB / 3.323 GB, free: 151.4 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.564/10.23, allocations: 0.8114 GB / 4.135 GB, free: 36.97 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002054/10.23, allocations: 65.98 kB / 4.135 GB, free: 36.95 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: 518 * Number of variables: 518 Notification: Performance of Generate backend data structure: time 0.01493/10.24, allocations: 4.094 MB / 4.139 GB, free: 35 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.717e-05/10.24, allocations: 11.53 kB / 4.139 GB, free: 35 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007033/10.25, allocations: 0.8698 MB / 4.14 GB, free: 34.86 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00773/10.26, allocations: 2.184 MB / 4.142 GB, free: 34.39 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/10.26, allocations: 95.47 kB / 4.142 GB, free: 34.39 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007171/10.26, allocations: 111.8 kB / 4.142 GB, free: 34.39 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005555/10.26, allocations: 2.944 MB / 4.145 GB, free: 34.38 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004715/10.27, allocations: 2.958 MB / 4.148 GB, free: 33.83 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.466e-05/10.27, allocations: 10.59 kB / 4.148 GB, free: 33.83 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002405/10.27, allocations: 10.88 kB / 4.148 GB, free: 33.83 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001527/10.27, allocations: 169.5 kB / 4.148 GB, free: 33.82 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2388/10.51, allocations: 126.2 MB / 4.271 GB, free: 18.42 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002086/10.51, allocations: 1.188 MB / 4.273 GB, free: 18.4 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/10.51, allocations: 1.037 MB / 4.274 GB, free: 18.39 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03498/10.55, allocations: 17.02 MB / 4.29 GB, free: 23.19 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002272/10.55, allocations: 1.271 MB / 4.291 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=152): time 3.536e-06/10.55, allocations: 0 / 4.291 GB, free: 22.71 MB / 0.6198 GB Notification: Performance of matching and sorting (n=164): time 0.02004/10.57, allocations: 8.34 MB / 4.3 GB, free: 17.2 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002403/10.57, allocations: 0.5092 MB / 4.3 GB, free: 16.58 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001651/10.57, allocations: 1.22 MB / 4.301 GB, free: 15.81 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 0.0002367/10.57, allocations: 36.06 kB / 4.301 GB, free: 15.77 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005709/10.57, allocations: 0.7682 MB / 4.302 GB, free: 15.2 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004527/10.57, allocations: 0.5368 MB / 4.303 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/10.57, allocations: 0 / 4.303 GB, free: 14.77 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 0.0001984/10.57, allocations: 387.1 kB / 4.303 GB, free: 14.45 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001509/10.57, allocations: 1.175 MB / 4.304 GB, free: 13.82 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/10.58, allocations: 1.598 MB / 4.306 GB, free: 12.66 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005464/10.58, allocations: 2.045 MB / 4.308 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.229e-05/10.58, allocations: 4 kB / 4.308 GB, free: 11.64 MB / 0.6198 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01119/10.59, allocations: 4.611 MB / 4.312 GB, free: 9.062 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 0.001453/10.59, allocations: 3.925 MB / 4.316 GB, free: 5.008 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.571e-05/10.59, allocations: 14.31 kB / 4.316 GB, free: 4.996 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003939/10.6, allocations: 0.873 MB / 4.317 GB, free: 4.469 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002464/10.6, allocations: 473.9 kB / 4.317 GB, free: 4.117 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004074/10.61, allocations: 3.524 MB / 4.321 GB, free: 1.238 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003046/10.61, allocations: 245.5 kB / 4.321 GB, free: 1.055 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003627/10.61, allocations: 104 kB / 4.321 GB, free: 0.9805 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/10.61, allocations: 4 kB / 4.321 GB, free: 0.9766 MB / 0.6198 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.2519/10.86, allocations: 3.523 MB / 4.325 GB, free: 149.9 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.527e-05/10.86, allocations: 18.94 kB / 4.325 GB, free: 149.9 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/10.86, allocations: 347.2 kB / 4.325 GB, free: 149.9 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002235/10.86, allocations: 0.4955 MB / 4.325 GB, free: 149.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003233/10.87, allocations: 3.982 MB / 4.329 GB, free: 147.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/10.87, allocations: 214 kB / 4.329 GB, free: 147.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002335/10.87, allocations: 98.11 kB / 4.33 GB, free: 147.2 MB / 0.6198 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 29 (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,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 (219): * Single equations (assignments): 209 * Array equations: 2 * Algorithm blocks: 2 * Record equations: 2 * 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,3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0006315/10.87, allocations: 228.8 kB / 4.33 GB, free: 147 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001921/10.87, allocations: 0.6297 MB / 4.33 GB, free: 147 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009006/10.88, allocations: 6.795 MB / 4.337 GB, free: 146.6 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.875e-05/10.88, allocations: 54.55 kB / 4.337 GB, free: 146.6 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/10.88, allocations: 1.875 kB / 4.337 GB, free: 146.6 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006641/10.89, allocations: 5.738 MB / 4.343 GB, free: 145.9 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01143/10.9, allocations: 9.375 MB / 4.352 GB, free: 145.1 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/10.9, allocations: 0 / 4.352 GB, free: 145.1 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001203/10.9, allocations: 277.7 kB / 4.352 GB, free: 145.1 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003503/10.9, allocations: 2.065 MB / 4.354 GB, free: 145 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001736/10.91, allocations: 53.47 kB / 4.354 GB, free: 145 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003492/10.91, allocations: 4.288 MB / 4.358 GB, free: 142.9 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/10.91, allocations: 0 / 4.358 GB, free: 142.9 MB / 0.6198 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009552/10.92, allocations: 7.241 MB / 4.365 GB, free: 142.5 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/10.92, allocations: 0.7115 MB / 4.366 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004238/10.92, allocations: 21.98 kB / 4.366 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001478/10.92, allocations: 158.1 kB / 4.366 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002396/10.92, allocations: 123 kB / 4.366 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000144/10.92, allocations: 66.31 kB / 4.366 GB, free: 142.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 0.001394/10.92, allocations: 1.164 MB / 4.368 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.009166/10.93, allocations: 2.767 MB / 4.37 GB, free: 142.1 MB / 0.6198 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 10 (pipe1.mediums[1].p,pipe1.mediums[1].h,valveIncompressible.filter.x[1],valveIncompressible.filter.x[2],valveIncompressible1.filter.x[1],valveIncompressible1.filter.x[2],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,$cse8.phase,$cse8.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,$cse37.phase,$cse37.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 (145): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 9 * 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,3 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0111/10.94, allocations: 3.088 MB / 4.373 GB, free: 141.9 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.007448/10.95, allocations: 5.619 MB / 4.379 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 8.796e-06/10.95, allocations: 5.656 kB / 4.379 GB, free: 141.5 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.003254/10.95, allocations: 2.742 MB / 4.381 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004219/10.96, allocations: 0.743 MB / 4.382 GB, free: 141.4 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/10.97, allocations: 5.701 MB / 4.388 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002303/10.97, allocations: 2.329 MB / 4.39 GB, free: 139.6 MB / 0.6198 GB Notification: Performance of SimCode: time 8.01e-07/10.97, allocations: 0 / 4.39 GB, free: 139.6 MB / 0.6198 GB Notification: Performance of Templates: time 0.127/11.1, allocations: 93.3 MB / 4.481 GB, free: 135.3 MB / 0.6198 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes12/BranchingPipes12.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches