Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.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.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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009295/0.0009295, allocations: 185.4 kB / 7.801 MB, free: 2.445 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.039/1.039, 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.0008571/0.0008571, allocations: 87.44 kB / 261.4 MB, free: 13.54 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.1565/0.1565, allocations: 43.49 MB / 352.8 MB, free: 1.941 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.761e-06/5.781e-06, allocations: 0 / 417.7 MB, free: 40.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2382, allocations: 58.84 MB / 476.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.078/1.316, allocations: 0.6584 GB / 1.124 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001837/1.317, allocations: 79.77 kB / 1.124 GB, free: 122.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.883/3.2, allocations: 0.6055 GB / 1.729 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003409/3.2, allocations: 64.91 kB / 1.729 GB, free: 35.35 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: 452 * Number of variables: 452 Notification: Performance of Generate backend data structure: time 0.01202/3.212, allocations: 3.207 MB / 1.733 GB, free: 33.89 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/3.212, allocations: 7.625 kB / 1.733 GB, free: 33.89 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003881/3.216, allocations: 458.1 kB / 1.733 GB, free: 33.76 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006573/3.223, allocations: 2.031 MB / 1.735 GB, free: 33.3 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001228/3.223, allocations: 55.34 kB / 1.735 GB, free: 33.3 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000846/3.224, allocations: 104.9 kB / 1.735 GB, free: 33.3 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004529/3.228, allocations: 2.274 MB / 1.737 GB, free: 33.3 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004548/3.233, allocations: 2.526 MB / 1.74 GB, free: 32.85 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.402e-05/3.233, allocations: 14.09 kB / 1.74 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003024/3.233, allocations: 6.688 kB / 1.74 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001426/3.234, allocations: 167 kB / 1.74 GB, free: 32.84 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/3.248, allocations: 11.99 MB / 1.752 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0016/3.25, allocations: 1.132 MB / 1.753 GB, free: 26.05 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001223/3.251, allocations: 1.081 MB / 1.754 GB, free: 26.04 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008634/3.252, allocations: 458.5 kB / 1.754 GB, free: 25.75 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001503/3.254, allocations: 1.268 MB / 1.756 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=167): time 4.468e-06/3.254, allocations: 3.125 kB / 1.756 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=192): time 0.04031/3.294, allocations: 10.48 MB / 1.766 GB, free: 24.62 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/3.294, allocations: 361.9 kB / 1.766 GB, free: 24.21 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001769/3.296, allocations: 1.107 MB / 1.767 GB, free: 24.04 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000306/3.296, allocations: 32.36 kB / 1.767 GB, free: 24 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006051/3.297, allocations: 0.6748 MB / 1.768 GB, free: 23.61 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005906/3.297, allocations: 0.6311 MB / 1.768 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001867/3.298, allocations: 4.125 kB / 1.768 GB, free: 23.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001317/3.298, allocations: 395.3 kB / 1.769 GB, free: 22.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/3.299, allocations: 1.054 MB / 1.77 GB, free: 22.88 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001765/3.301, allocations: 1.527 MB / 1.771 GB, free: 22.42 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009602/3.311, allocations: 2.498 MB / 1.774 GB, free: 22.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.297e-05/3.311, allocations: 3.688 kB / 1.774 GB, free: 22.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=279) (initialization): time 0.01305/3.324, allocations: 4.295 MB / 1.778 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008668/3.325, allocations: 4.192 MB / 1.782 GB, free: 33.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.046e-05/3.325, allocations: 10.44 kB / 1.782 GB, free: 33.92 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007075/3.325, allocations: 286.1 kB / 1.782 GB, free: 33.88 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002282/3.328, allocations: 0.5533 MB / 1.783 GB, free: 33.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002076/3.33, allocations: 3.055 MB / 1.786 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002761/3.333, allocations: 174.5 kB / 1.786 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004279/3.333, allocations: 201.2 kB / 1.786 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.488e-06/3.333, allocations: 3.531 kB / 1.786 GB, free: 31.27 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01147/3.344, allocations: 3.743 MB / 1.79 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.182e-05/3.345, allocations: 10.06 kB / 1.79 GB, free: 31.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007023/3.345, allocations: 279.7 kB / 1.79 GB, free: 31.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002375/3.348, allocations: 0.5423 MB / 1.791 GB, free: 31.09 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002212/3.35, allocations: 3.069 MB / 1.794 GB, free: 28.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/3.352, allocations: 174.7 kB / 1.794 GB, free: 28.47 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004735/3.353, allocations: 197.9 kB / 1.794 GB, free: 28.47 MB / 0.5261 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.0008158/3.354, allocations: 229.9 kB / 1.794 GB, free: 28.27 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006389/3.354, allocations: 202.2 kB / 1.795 GB, free: 28.16 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01867/3.373, allocations: 4.836 MB / 1.799 GB, free: 27.99 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.004e-05/3.373, allocations: 24.19 kB / 1.799 GB, free: 27.98 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/3.373, allocations: 0 / 1.799 GB, free: 27.98 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01323/3.386, allocations: 3.88 MB / 1.803 GB, free: 27.33 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02276/3.409, allocations: 7.446 MB / 1.81 GB, free: 24.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-05/3.409, allocations: 9.25 kB / 1.81 GB, free: 24.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002509/3.412, allocations: 444.4 kB / 1.811 GB, free: 24.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/3.413, allocations: 294.3 kB / 1.811 GB, free: 24.56 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004786/3.413, allocations: 83.36 kB / 1.811 GB, free: 24.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003346/3.417, allocations: 3.742 MB / 1.815 GB, free: 20.94 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/3.417, allocations: 8 kB / 1.815 GB, free: 20.93 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0154/3.432, allocations: 5.816 MB / 1.82 GB, free: 15.78 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001652/3.434, allocations: 0.5324 MB / 1.821 GB, free: 15.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007268/3.435, allocations: 31.84 kB / 1.821 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001949/3.437, allocations: 96.81 kB / 1.821 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002935/3.437, allocations: 159.9 kB / 1.821 GB, free: 15.11 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003144/3.437, allocations: 186 kB / 1.821 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001368/3.439, allocations: 0.8065 MB / 1.822 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006615/3.445, allocations: 1.92 MB / 1.824 GB, free: 12.35 MB / 0.5261 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.006422/3.452, allocations: 2.861 MB / 1.827 GB, free: 10.21 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007352/3.459, allocations: 4.255 MB / 1.831 GB, free: 6.312 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.063e-05/3.459, allocations: 0 / 1.831 GB, free: 6.312 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002524/3.462, allocations: 1.515 MB / 1.833 GB, free: 4.914 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004909/3.467, allocations: 0.8996 MB / 1.833 GB, free: 4.254 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/3.477, allocations: 4.321 MB / 1.838 GB, free: 428 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003139/3.48, allocations: 2.225 MB / 1.84 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of SimCode: time 5.71e-07/3.48, allocations: 0 / 1.84 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of Templates: time 0.331/3.811, allocations: 79.45 MB / 1.917 GB, free: 101.8 MB / 0.5417 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes17.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches