Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.0009297/0.0009297, allocations: 179.9 kB / 7.8 MB, free: 2.141 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.167/1.167, allocations: 205.2 MB / 213.4 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 87.64 kB / 261.4 MB, free: 13.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1891/0.1891, allocations: 43.49 MB / 352.8 MB, free: 1.996 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.861e-06/5.871e-06, allocations: 0 / 417.7 MB, free: 40.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.294, allocations: 58.84 MB / 476.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.441/4.735, allocations: 2.824 GB / 3.29 GB, free: 59.52 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/4.736, allocations: 83.45 kB / 3.29 GB, free: 59.45 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.173/6.909, allocations: 0.8027 GB / 4.093 GB, free: 36.33 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001724/6.909, allocations: 66.14 kB / 4.093 GB, free: 36.32 MB / 0.5261 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.01268/6.922, allocations: 4.09 MB / 4.097 GB, free: 34.32 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/6.922, allocations: 11.5 kB / 4.097 GB, free: 34.32 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005651/6.927, allocations: 0.8684 MB / 4.098 GB, free: 34.18 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004732/6.932, allocations: 2.177 MB / 4.1 GB, free: 33.48 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/6.932, allocations: 90.88 kB / 4.1 GB, free: 33.47 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003276/6.933, allocations: 118.5 kB / 4.1 GB, free: 33.47 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003865/6.936, allocations: 2.946 MB / 4.103 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004014/6.94, allocations: 2.954 MB / 4.106 GB, free: 31.12 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.92e-05/6.94, allocations: 7.594 kB / 4.106 GB, free: 31.12 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002117/6.941, allocations: 5.625 kB / 4.106 GB, free: 31.12 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001656/6.941, allocations: 175.8 kB / 4.106 GB, free: 31.09 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3883/7.329, allocations: 126.2 MB / 4.229 GB, free: 56.31 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/7.331, allocations: 1.194 MB / 4.23 GB, free: 56.29 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001047/7.332, allocations: 1.038 MB / 4.231 GB, free: 56.27 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02716/7.359, allocations: 17.01 MB / 4.248 GB, free: 45.09 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001766/7.361, allocations: 1.266 MB / 4.249 GB, free: 44.93 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=152): time 3.186e-06/7.361, allocations: 3.562 kB / 4.249 GB, free: 44.93 MB / 0.5417 GB Notification: Performance of matching and sorting (n=164): time 0.01911/7.38, allocations: 8.334 MB / 4.257 GB, free: 43.43 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.771e-05/7.38, allocations: 0.501 MB / 4.258 GB, free: 42.84 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001491/7.381, allocations: 1.225 MB / 4.259 GB, free: 42.66 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001553/7.382, allocations: 25.7 kB / 4.259 GB, free: 42.63 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005115/7.382, allocations: 0.7682 MB / 4.26 GB, free: 42.3 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004117/7.383, allocations: 0.5412 MB / 4.26 GB, free: 42.02 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001234/7.383, allocations: 0 / 4.26 GB, free: 42.02 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.406e-05/7.383, allocations: 387.5 kB / 4.261 GB, free: 41.71 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001372/7.384, allocations: 1.176 MB / 4.262 GB, free: 41.71 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001502/7.386, allocations: 1.598 MB / 4.263 GB, free: 41.24 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01083/7.396, allocations: 3.122 MB / 4.266 GB, free: 41.18 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.588e-05/7.397, allocations: 5.656 kB / 4.266 GB, free: 41.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01547/7.412, allocations: 5.702 MB / 4.272 GB, free: 40.93 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.000564/7.413, allocations: 3.919 MB / 4.276 GB, free: 36.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.857e-05/7.413, allocations: 15.8 kB / 4.276 GB, free: 36.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003462/7.416, allocations: 0.8713 MB / 4.277 GB, free: 36.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001763/7.418, allocations: 470 kB / 4.277 GB, free: 36.84 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003025/7.421, allocations: 3.527 MB / 4.281 GB, free: 34.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002409/7.423, allocations: 249 kB / 4.281 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002138/7.424, allocations: 101.6 kB / 4.281 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.745e-06/7.424, allocations: 3.969 kB / 4.281 GB, free: 34.71 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01338/7.437, allocations: 4.569 MB / 4.285 GB, free: 34.59 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.794e-05/7.437, allocations: 26.16 kB / 4.285 GB, free: 34.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/7.438, allocations: 344.7 kB / 4.286 GB, free: 34.55 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001844/7.44, allocations: 0.4887 MB / 4.286 GB, free: 34.55 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003001/7.443, allocations: 3.977 MB / 4.29 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002021/7.445, allocations: 210.8 kB / 4.29 GB, free: 31.73 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002302/7.445, allocations: 103.4 kB / 4.29 GB, free: 31.73 MB / 0.5417 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.0004983/7.446, allocations: 238.1 kB / 4.291 GB, free: 31.56 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001711/7.447, allocations: 0.6225 MB / 4.291 GB, free: 31.46 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008329/7.456, allocations: 6.794 MB / 4.298 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.801e-05/7.456, allocations: 53.89 kB / 4.298 GB, free: 30.97 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/7.456, allocations: 5.188 kB / 4.298 GB, free: 30.96 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006142/7.462, allocations: 5.737 MB / 4.303 GB, free: 30.25 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/7.474, allocations: 9.376 MB / 4.313 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.443e-06/7.474, allocations: 0 / 4.313 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001208/7.475, allocations: 279.3 kB / 4.313 GB, free: 29.39 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003506/7.478, allocations: 2.065 MB / 4.315 GB, free: 29.28 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001827/7.479, allocations: 46.67 kB / 4.315 GB, free: 29.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003385/7.482, allocations: 4.286 MB / 4.319 GB, free: 27.15 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/7.482, allocations: 3.562 kB / 4.319 GB, free: 27.15 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009921/7.492, allocations: 7.243 MB / 4.326 GB, free: 26.53 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001825/7.494, allocations: 0.7069 MB / 4.327 GB, free: 26.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007535/7.495, allocations: 23.19 kB / 4.327 GB, free: 26.29 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002035/7.497, allocations: 156.3 kB / 4.327 GB, free: 26.27 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002808/7.497, allocations: 129.2 kB / 4.327 GB, free: 26.27 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001974/7.497, allocations: 72.48 kB / 4.327 GB, free: 26.27 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.00222/7.499, allocations: 1.16 MB / 4.328 GB, free: 26.12 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01095/7.51, allocations: 2.76 MB / 4.331 GB, free: 26.04 MB / 0.5417 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.01156/7.522, allocations: 3.087 MB / 4.334 GB, free: 25.61 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.008224/7.53, allocations: 5.615 MB / 4.34 GB, free: 25.18 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/7.53, allocations: 3.938 kB / 4.34 GB, free: 25.18 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.003648/7.534, allocations: 2.745 MB / 4.342 GB, free: 25.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004246/7.538, allocations: 0.7379 MB / 4.343 GB, free: 25.05 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/7.548, allocations: 5.71 MB / 4.349 GB, free: 23.76 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002108/7.551, allocations: 2.329 MB / 4.351 GB, free: 22.02 MB / 0.5417 GB Notification: Performance of SimCode: time 6.41e-07/7.551, allocations: 0 / 4.351 GB, free: 22.02 MB / 0.5417 GB Notification: Performance of Templates: time 0.278/7.829, allocations: 93.33 MB / 4.442 GB, free: 93.56 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes12/BranchingPipes12.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes12.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches