Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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.BranchingPipes17") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17,tolerance=1e-07,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|junctionIdeal.medium.T|junctionIdeal.medium.p|junctionVolume.medium.T|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.BranchingPipes17") [: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.001695/0.001694, allocations: 183.4 kB / 8.149 MB, free: 0.8633 MB / 6.77 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.695/1.695, allocations: 205.2 MB / 213.7 MB, free: 8.602 MB / 178.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001641/0.001641, allocations: 87.66 kB / 261.8 MB, free: 5.188 MB / 210.8 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.262/0.262, allocations: 43.49 MB / 353.2 MB, free: 11.45 MB / 306.8 MB Notification: Performance of FrontEnd - loaded program: time 7.674e-06/7.845e-06, allocations: 0 / 417.7 MB, free: 68.61 MB / 322.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.128, allocations: 58.84 MB / 476.5 MB, free: 9.711 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.581/1.709, allocations: 0.6584 GB / 1.124 GB, free: 148 MB / 0.5027 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000286/1.709, allocations: 84.72 kB / 1.124 GB, free: 148 MB / 0.5027 GB Notification: Performance of FrontEnd: time 2.989/4.698, allocations: 0.6055 GB / 1.729 GB, free: 41.82 MB / 0.5183 GB Notification: Performance of Transformations before backend: time 0.0003481/4.699, allocations: 64.02 kB / 1.729 GB, free: 41.81 MB / 0.5183 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01532/4.714, allocations: 3.2 MB / 1.733 GB, free: 40.55 MB / 0.5183 GB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/4.714, allocations: 7.062 kB / 1.733 GB, free: 40.55 MB / 0.5183 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005882/4.72, allocations: 466.8 kB / 1.733 GB, free: 40.42 MB / 0.5183 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009524/4.73, allocations: 2.023 MB / 1.735 GB, free: 40 MB / 0.5183 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/4.73, allocations: 56.75 kB / 1.735 GB, free: 40 MB / 0.5183 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001131/4.731, allocations: 106 kB / 1.735 GB, free: 40 MB / 0.5183 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007776/4.739, allocations: 2.274 MB / 1.737 GB, free: 39.99 MB / 0.5183 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009987/4.749, allocations: 2.522 MB / 1.74 GB, free: 39.54 MB / 0.5183 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/4.749, allocations: 10.41 kB / 1.74 GB, free: 39.54 MB / 0.5183 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008644/4.75, allocations: 11.22 kB / 1.74 GB, free: 39.54 MB / 0.5183 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002682/4.75, allocations: 165.9 kB / 1.74 GB, free: 39.54 MB / 0.5183 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02832/4.779, allocations: 11.98 MB / 1.752 GB, free: 32.79 MB / 0.5183 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003544/4.782, allocations: 1.131 MB / 1.753 GB, free: 32.77 MB / 0.5183 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002929/4.785, allocations: 1.078 MB / 1.754 GB, free: 32.76 MB / 0.5183 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001571/4.787, allocations: 459 kB / 1.754 GB, free: 32.47 MB / 0.5183 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003454/4.79, allocations: 1.279 MB / 1.756 GB, free: 32.3 MB / 0.5183 GB Notification: Performance of pre-optimization done (n=167): time 5.771e-06/4.79, allocations: 0 / 1.756 GB, free: 32.3 MB / 0.5183 GB Notification: Performance of matching and sorting (n=192): time 0.0788/4.869, allocations: 10.46 MB / 1.766 GB, free: 31.35 MB / 0.5183 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/4.869, allocations: 366.4 kB / 1.766 GB, free: 30.94 MB / 0.5183 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/4.872, allocations: 1.111 MB / 1.767 GB, free: 30.77 MB / 0.5183 GB Notification: Performance of collectPreVariables (initialization): time 0.0008664/4.873, allocations: 29.55 kB / 1.767 GB, free: 30.73 MB / 0.5183 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006271/4.873, allocations: 0.6295 MB / 1.768 GB, free: 30.28 MB / 0.5183 GB Notification: Performance of collectInitialBindings (initialization): time 0.001221/4.875, allocations: 0.6236 MB / 1.768 GB, free: 29.86 MB / 0.5183 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/4.875, allocations: 5.625 kB / 1.768 GB, free: 29.86 MB / 0.5183 GB Notification: Performance of setup shared object (initialization): time 0.0001874/4.875, allocations: 398.9 kB / 1.769 GB, free: 29.55 MB / 0.5183 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003035/4.878, allocations: 1.054 MB / 1.77 GB, free: 29.54 MB / 0.5183 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003928/4.882, allocations: 1.525 MB / 1.771 GB, free: 29.08 MB / 0.5183 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01907/4.901, allocations: 2.502 MB / 1.774 GB, free: 29.06 MB / 0.5183 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.172e-05/4.901, allocations: 4 kB / 1.774 GB, free: 29.06 MB / 0.5183 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.0253/4.927, allocations: 4.195 MB / 1.778 GB, free: 28.9 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 0.001122/4.928, allocations: 4.102 MB / 1.782 GB, free: 24.64 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.064e-05/4.928, allocations: 11.7 kB / 1.782 GB, free: 24.64 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/4.929, allocations: 276.3 kB / 1.782 GB, free: 24.6 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005342/4.935, allocations: 0.5612 MB / 1.783 GB, free: 24.6 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002727/4.937, allocations: 3.06 MB / 1.786 GB, free: 22 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004158/4.942, allocations: 171 kB / 1.786 GB, free: 21.99 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001095/4.943, allocations: 201.7 kB / 1.786 GB, free: 21.99 MB / 0.5183 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/4.943, allocations: 6.094 kB / 1.786 GB, free: 21.99 MB / 0.5183 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02281/4.966, allocations: 3.739 MB / 1.79 GB, free: 21.91 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-05/4.966, allocations: 7.781 kB / 1.79 GB, free: 21.91 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001001/4.967, allocations: 278.9 kB / 1.79 GB, free: 21.87 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005117/4.972, allocations: 0.5456 MB / 1.79 GB, free: 21.87 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002555/4.975, allocations: 3.069 MB / 1.793 GB, free: 19.27 MB / 0.5183 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004014/4.979, allocations: 169.6 kB / 1.794 GB, free: 19.26 MB / 0.5183 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001053/4.98, allocations: 199 kB / 1.794 GB, free: 19.26 MB / 0.5183 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 (258): * Single equations (assignments): 251 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001108/4.981, allocations: 152.4 kB / 1.794 GB, free: 19.16 MB / 0.5183 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007855/4.982, allocations: 202.8 kB / 1.794 GB, free: 19.05 MB / 0.5183 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03335/5.015, allocations: 4.831 MB / 1.799 GB, free: 18.88 MB / 0.5183 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.46e-05/5.015, allocations: 19.66 kB / 1.799 GB, free: 18.88 MB / 0.5183 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.9e-05/5.015, allocations: 7.812 kB / 1.799 GB, free: 18.88 MB / 0.5183 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02424/5.039, allocations: 3.884 MB / 1.803 GB, free: 18.35 MB / 0.5183 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03832/5.078, allocations: 7.446 MB / 1.81 GB, free: 17.37 MB / 0.5183 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.676e-05/5.078, allocations: 7.531 kB / 1.81 GB, free: 17.37 MB / 0.5183 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005181/5.083, allocations: 450.3 kB / 1.81 GB, free: 17.37 MB / 0.5183 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/5.085, allocations: 287 kB / 1.811 GB, free: 17.32 MB / 0.5183 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008557/5.086, allocations: 86.31 kB / 1.811 GB, free: 17.32 MB / 0.5183 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005654/5.092, allocations: 3.737 MB / 1.814 GB, free: 30.06 MB / 0.5339 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.7e-05/5.092, allocations: 10.28 kB / 1.814 GB, free: 30.06 MB / 0.5339 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03914/5.131, allocations: 5.82 MB / 1.82 GB, free: 28.99 MB / 0.5339 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002994/5.134, allocations: 0.5401 MB / 1.821 GB, free: 28.79 MB / 0.5339 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001333/5.135, allocations: 26.17 kB / 1.821 GB, free: 28.79 MB / 0.5339 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004879/5.14, allocations: 99.91 kB / 1.821 GB, free: 28.78 MB / 0.5339 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009634/5.141, allocations: 168.1 kB / 1.821 GB, free: 28.77 MB / 0.5339 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008031/5.142, allocations: 180.1 kB / 1.821 GB, free: 28.77 MB / 0.5339 GB Notification: Performance of sort global known variables: time 0.002523/5.145, allocations: 0.8102 MB / 1.822 GB, free: 28.66 MB / 0.5339 GB Notification: Performance of remove unused functions: time 0.01392/5.159, allocations: 1.912 MB / 1.824 GB, free: 28.41 MB / 0.5339 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 9 (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,junctionVolume.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 (200): * Single equations (assignments): 193 * 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: 5 * 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: 4 {1 6,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01033/5.169, allocations: 2.857 MB / 1.827 GB, free: 27.8 MB / 0.5339 GB Notification: Performance of simCode: created initialization part: time 0.01344/5.183, allocations: 4.202 MB / 1.831 GB, free: 27.62 MB / 0.5339 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-05/5.183, allocations: 2.688 kB / 1.831 GB, free: 27.62 MB / 0.5339 GB Notification: Performance of simCode: created simulation system equations: time 0.005158/5.188, allocations: 1.517 MB / 1.832 GB, free: 27.39 MB / 0.5339 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008963/5.197, allocations: 0.8979 MB / 1.833 GB, free: 26.89 MB / 0.5339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01675/5.214, allocations: 4.346 MB / 1.837 GB, free: 23.77 MB / 0.5339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005451/5.219, allocations: 2.213 MB / 1.839 GB, free: 22.05 MB / 0.5339 GB Notification: Performance of SimCode: time 1.743e-06/5.219, allocations: 0 / 1.839 GB, free: 22.05 MB / 0.5339 GB Notification: Performance of Templates: time 0.4142/5.633, allocations: 93.99 MB / 1.931 GB, free: 105.2 MB / 0.5496 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes17/BranchingPipes17.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches