Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.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.BranchingPipes13,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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13,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_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13") [: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.0009629/0.0009629, allocations: 190.8 kB / 7.804 MB, free: 2.441 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.23/1.23, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.0008936/0.0008936, allocations: 97.92 kB / 261.4 MB, free: 13.61 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.1876/0.1876, allocations: 43.48 MB / 352.8 MB, free: 2.023 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.542e-06/6.562e-06, allocations: 0 / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.3098, allocations: 58.85 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.494/4.804, allocations: 2.825 GB / 3.29 GB, free: 41.99 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001581/4.804, allocations: 79.95 kB / 3.291 GB, free: 41.91 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.31/7.114, allocations: 0.8641 GB / 4.155 GB, free: 4.824 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 0.0002655/7.114, allocations: 59.75 kB / 4.155 GB, free: 4.77 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.01298/7.127, allocations: 3.853 MB / 4.158 GB, free: 0.8672 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/7.127, allocations: 8.031 kB / 4.158 GB, free: 0.8594 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006044/7.133, allocations: 0.8127 MB / 4.159 GB, free: 44 kB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1798/7.313, allocations: 1.959 MB / 4.161 GB, free: 82.61 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.534e-05/7.313, allocations: 86.34 kB / 4.161 GB, free: 82.61 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002624/7.313, allocations: 109.7 kB / 4.161 GB, free: 82.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003222/7.316, allocations: 2.413 MB / 4.164 GB, free: 82.59 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003142/7.32, allocations: 2.643 MB / 4.166 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.181e-05/7.32, allocations: 10.06 kB / 4.166 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000186/7.32, allocations: 3.875 kB / 4.166 GB, free: 82.14 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001049/7.32, allocations: 158.1 kB / 4.166 GB, free: 82.13 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2022/7.522, allocations: 125.8 MB / 4.289 GB, free: 35.84 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001266/7.523, allocations: 1.035 MB / 4.29 GB, free: 35.82 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009518/7.524, allocations: 0.9334 MB / 4.291 GB, free: 35.8 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02909/7.554, allocations: 17.01 MB / 4.308 GB, free: 40.61 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001496/7.555, allocations: 1.138 MB / 4.309 GB, free: 40.45 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=136): time 3.316e-06/7.555, allocations: 0 / 4.309 GB, free: 40.45 MB / 0.5886 GB Notification: Performance of matching and sorting (n=148): time 0.01633/7.571, allocations: 7.563 MB / 4.316 GB, free: 38.9 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001323/7.572, allocations: 365.2 kB / 4.317 GB, free: 38.49 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001236/7.573, allocations: 1.098 MB / 4.318 GB, free: 38.32 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 0.0001156/7.573, allocations: 29.08 kB / 4.318 GB, free: 38.29 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004437/7.573, allocations: 0.7145 MB / 4.318 GB, free: 37.98 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003154/7.574, allocations: 486.2 kB / 4.319 GB, free: 37.69 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/7.574, allocations: 0 / 4.319 GB, free: 37.69 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 0.000127/7.574, allocations: 376.3 kB / 4.319 GB, free: 37.38 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/7.575, allocations: 1.025 MB / 4.32 GB, free: 37.38 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/7.576, allocations: 1.391 MB / 4.322 GB, free: 36.98 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01032/7.587, allocations: 2.926 MB / 4.324 GB, free: 36.92 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/7.587, allocations: 0.6562 kB / 4.324 GB, free: 36.92 MB / 0.5886 GB Notification: Performance of matching and sorting (n=224) (initialization): time 0.01508/7.602, allocations: 5.298 MB / 4.33 GB, free: 36.68 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009562/7.603, allocations: 3.711 MB / 4.333 GB, free: 32.84 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/7.603, allocations: 11.81 kB / 4.333 GB, free: 32.84 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002142/7.605, allocations: 0.5725 MB / 4.334 GB, free: 32.79 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/7.607, allocations: 434.9 kB / 4.334 GB, free: 32.79 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002515/7.609, allocations: 3.094 MB / 4.337 GB, free: 30.7 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002112/7.611, allocations: 247.4 kB / 4.338 GB, free: 30.66 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001827/7.611, allocations: 98.69 kB / 4.338 GB, free: 30.66 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 6.372e-06/7.612, allocations: 2.719 kB / 4.338 GB, free: 30.66 MB / 0.5886 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01182/7.623, allocations: 4.125 MB / 4.342 GB, free: 30.55 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.04e-05/7.623, allocations: 9.406 kB / 4.342 GB, free: 30.55 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003821/7.624, allocations: 195.7 kB / 4.342 GB, free: 30.52 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001649/7.625, allocations: 459.4 kB / 4.342 GB, free: 30.52 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/7.627, allocations: 1.921 MB / 4.344 GB, free: 28.96 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/7.628, allocations: 219.6 kB / 4.344 GB, free: 28.93 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/7.628, allocations: 90.89 kB / 4.344 GB, free: 28.93 MB / 0.5886 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 (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_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,pipe1.state_b.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (201): * Single equations (assignments): 195 * 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 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004408/7.629, allocations: 227.4 kB / 4.345 GB, free: 28.74 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001472/7.63, allocations: 0.6049 MB / 4.345 GB, free: 28.66 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007493/7.638, allocations: 6.321 MB / 4.351 GB, free: 28.15 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.101e-05/7.638, allocations: 50.03 kB / 4.351 GB, free: 28.15 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/7.638, allocations: 5.031 kB / 4.351 GB, free: 28.14 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006068/7.644, allocations: 5.322 MB / 4.357 GB, free: 27.43 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01042/7.655, allocations: 8.753 MB / 4.365 GB, free: 26.59 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/7.655, allocations: 3.188 kB / 4.365 GB, free: 26.59 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/7.656, allocations: 269 kB / 4.365 GB, free: 26.59 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/7.658, allocations: 1.311 MB / 4.367 GB, free: 26.5 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/7.658, allocations: 44.56 kB / 4.367 GB, free: 26.5 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/7.66, allocations: 3.618 MB / 4.37 GB, free: 24.38 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/7.661, allocations: 3.906 kB / 4.37 GB, free: 24.38 MB / 0.5886 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008138/7.669, allocations: 6.679 MB / 4.377 GB, free: 23.82 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001343/7.67, allocations: 0.6699 MB / 4.378 GB, free: 23.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003654/7.67, allocations: 20.09 kB / 4.378 GB, free: 23.58 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/7.672, allocations: 148.3 kB / 4.378 GB, free: 23.56 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002305/7.672, allocations: 116.2 kB / 4.378 GB, free: 23.56 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/7.672, allocations: 65.5 kB / 4.378 GB, free: 23.56 MB / 0.5886 GB Notification: Performance of sort global known variables: time 0.001273/7.673, allocations: 1.079 MB / 4.379 GB, free: 23.45 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.009299/7.683, allocations: 2.65 MB / 4.382 GB, free: 21.68 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (141): * Single equations (assignments): 125 * 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 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.007699/7.69, allocations: 3.138 MB / 4.385 GB, free: 19.57 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.005737/7.696, allocations: 4.905 MB / 4.389 GB, free: 16.77 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/7.696, allocations: 4 kB / 4.389 GB, free: 16.76 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.002485/7.699, allocations: 2.614 MB / 4.392 GB, free: 15.48 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003291/7.702, allocations: 0.7616 MB / 4.393 GB, free: 15.05 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006759/7.709, allocations: 5.273 MB / 4.398 GB, free: 11.37 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001712/7.711, allocations: 2.208 MB / 4.4 GB, free: 9.703 MB / 0.5886 GB Notification: Performance of SimCode: time 3.51e-07/7.711, allocations: 4 kB / 4.4 GB, free: 9.699 MB / 0.5886 GB Notification: Performance of Templates: time 0.2755/7.986, allocations: 87.87 MB / 4.486 GB, free: 122.5 MB / 0.5886 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes13/BranchingPipes13.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes13.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches