Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|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_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|pipe1.mediums.1..T|pipe1.mediums.1..p|pipe2.mediums.1..T|pipe2.mediums.1..p|pipe3.mediums.1..T|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_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001598/0.001603, allocations: 171.8 kB / 8.147 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.746/1.746, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001294/0.001294, allocations: 93.61 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2743/0.2743, allocations: 43.49 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.554e-06/7.704e-06, allocations: 0 / 417.7 MB, free: 40.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3165, allocations: 58.83 MB / 476.5 MB, free: 5.102 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.462/1.778, allocations: 0.6583 GB / 1.124 GB, free: 99.07 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/1.778, allocations: 90.19 kB / 1.124 GB, free: 98.99 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.579/4.357, allocations: 0.5421 GB / 1.666 GB, free: 42.52 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0002298/4.358, allocations: 69.83 kB / 1.666 GB, free: 42.5 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 427 * Number of variables: 427 Notification: Performance of Generate backend data structure: time 0.012/4.37, allocations: 3.029 MB / 1.669 GB, free: 41.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/4.37, allocations: 7.031 kB / 1.669 GB, free: 41.3 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004815/4.374, allocations: 442.6 kB / 1.669 GB, free: 41.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007985/4.382, allocations: 1.949 MB / 1.671 GB, free: 40.74 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001046/4.383, allocations: 60.73 kB / 1.671 GB, free: 40.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005043/4.383, allocations: 101.5 kB / 1.671 GB, free: 40.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00574/4.389, allocations: 2.189 MB / 1.673 GB, free: 40.73 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005632/4.395, allocations: 2.421 MB / 1.676 GB, free: 40.31 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.506e-05/4.395, allocations: 8.406 kB / 1.676 GB, free: 40.31 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003319/4.395, allocations: 6.844 kB / 1.676 GB, free: 40.31 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002114/4.395, allocations: 161.6 kB / 1.676 GB, free: 40.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0218/4.417, allocations: 11.46 MB / 1.687 GB, free: 33.93 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002681/4.42, allocations: 1.043 MB / 1.688 GB, free: 33.91 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00215/4.422, allocations: 1.001 MB / 1.689 GB, free: 33.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001396/4.423, allocations: 454.2 kB / 1.69 GB, free: 33.62 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002498/4.426, allocations: 1.189 MB / 1.691 GB, free: 33.45 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 4.659e-06/4.426, allocations: 0 / 1.691 GB, free: 33.45 MB / 0.5105 GB Notification: Performance of matching and sorting (n=173): time 0.06854/4.494, allocations: 9.533 MB / 1.7 GB, free: 32.55 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/4.495, allocations: 369.9 kB / 1.7 GB, free: 32.14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002247/4.497, allocations: 1.076 MB / 1.701 GB, free: 31.98 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004637/4.497, allocations: 28.39 kB / 1.701 GB, free: 31.95 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005022/4.498, allocations: 0.618 MB / 1.702 GB, free: 31.5 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007161/4.499, allocations: 0.5566 MB / 1.703 GB, free: 31.13 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002272/4.499, allocations: 1.594 kB / 1.703 GB, free: 31.13 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001497/4.499, allocations: 394.3 kB / 1.703 GB, free: 30.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/4.502, allocations: 1.006 MB / 1.704 GB, free: 30.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003003/4.505, allocations: 1.434 MB / 1.705 GB, free: 30.39 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01798/4.523, allocations: 2.449 MB / 1.708 GB, free: 30.37 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.697e-05/4.523, allocations: 3.438 kB / 1.708 GB, free: 30.37 MB / 0.5105 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02309/4.546, allocations: 3.981 MB / 1.712 GB, free: 30.22 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008322/4.547, allocations: 3.581 MB / 1.715 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.904e-05/4.547, allocations: 7.531 kB / 1.715 GB, free: 26.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006216/4.547, allocations: 168.4 kB / 1.715 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004947/4.552, allocations: 0.5261 MB / 1.716 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/4.554, allocations: 2.369 MB / 1.718 GB, free: 24.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003737/4.558, allocations: 166.8 kB / 1.718 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005698/4.559, allocations: 182 kB / 1.718 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/4.559, allocations: 5.406 kB / 1.718 GB, free: 24.39 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02056/4.579, allocations: 3.538 MB / 1.722 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.511e-05/4.579, allocations: 9.219 kB / 1.722 GB, free: 24.31 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005336/4.58, allocations: 175.2 kB / 1.722 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004599/4.585, allocations: 0.5182 MB / 1.723 GB, free: 24.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001838/4.586, allocations: 2.371 MB / 1.725 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003618/4.59, allocations: 163.2 kB / 1.725 GB, free: 22.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006831/4.591, allocations: 182 kB / 1.725 GB, free: 22.2 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (243): * Single equations (assignments): 237 * 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.0008987/4.592, allocations: 154.4 kB / 1.725 GB, free: 22.09 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006902/4.592, allocations: 192.5 kB / 1.726 GB, free: 21.99 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.028/4.62, allocations: 4.266 MB / 1.73 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.406e-05/4.62, allocations: 19.25 kB / 1.73 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.392e-05/4.621, allocations: 0 / 1.73 GB, free: 21.82 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02155/4.642, allocations: 3.534 MB / 1.733 GB, free: 21.31 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0331/4.675, allocations: 6.868 MB / 1.74 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.722e-05/4.675, allocations: 5.812 kB / 1.74 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003786/4.679, allocations: 411.6 kB / 1.74 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006684/4.68, allocations: 167.2 kB / 1.741 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004249/4.68, allocations: 73.31 kB / 1.741 GB, free: 20.32 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00244/4.683, allocations: 3.03 MB / 1.744 GB, free: 17.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.314e-05/4.683, allocations: 8 kB / 1.744 GB, free: 17.58 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02703/4.71, allocations: 5.337 MB / 1.749 GB, free: 16.53 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002624/4.712, allocations: 0.5159 MB / 1.749 GB, free: 16.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/4.714, allocations: 28.64 kB / 1.749 GB, free: 16.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003534/4.717, allocations: 96.75 kB / 1.749 GB, free: 16.32 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006789/4.718, allocations: 146.1 kB / 1.75 GB, free: 16.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004832/4.719, allocations: 142.2 kB / 1.75 GB, free: 16.31 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.001966/4.72, allocations: 0.8023 MB / 1.75 GB, free: 16.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008703/4.729, allocations: 1.819 MB / 1.752 GB, free: 15.95 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 8 (pipe1.mediums[1].p,pipe1.mediums[1].T,pipe2.mediums[1].p,pipe2.mediums[1].T,pipe3.mediums[1].p,pipe3.mediums[1].T,junctionIdeal.medium.p,junctionIdeal.medium.T) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,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 (183): * Single equations (assignments): 177 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008026/4.737, allocations: 2.701 MB / 1.755 GB, free: 15.37 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01089/4.748, allocations: 3.927 MB / 1.759 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.561e-05/4.748, allocations: 7.797 kB / 1.759 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003477/4.752, allocations: 1.377 MB / 1.76 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007087/4.759, allocations: 0.7613 MB / 1.761 GB, free: 14.14 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0133/4.772, allocations: 4.083 MB / 1.765 GB, free: 11.99 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00444/4.777, allocations: 2.122 MB / 1.767 GB, free: 10.24 MB / 0.5105 GB Notification: Performance of SimCode: time 1.333e-06/4.777, allocations: 0 / 1.767 GB, free: 10.24 MB / 0.5105 GB Notification: Performance of Templates: time 0.3635/5.14, allocations: 81.55 MB / 1.846 GB, free: 94.02 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes15/BranchingPipes15.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes15.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches