Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.BranchingPipes16,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.BranchingPipes16") translateModel(ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16,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.BranchingPipes16") [: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.002468/0.002468, allocations: 172.5 kB / 8.149 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 2.067/2.067, 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.001367/0.001366, allocations: 98.12 kB / 261.8 MB, free: 13.64 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.2779/0.2779, allocations: 43.5 MB / 353.2 MB, free: 2.043 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 8.426e-06/8.586e-06, allocations: 0 / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3169, allocations: 58.83 MB / 476.5 MB, free: 5.082 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.463/1.78, allocations: 0.6583 GB / 1.124 GB, free: 77.99 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/1.781, allocations: 74.88 kB / 1.124 GB, free: 77.96 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.632/4.412, allocations: 0.5421 GB / 1.666 GB, free: 43.56 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0003368/4.413, allocations: 61.25 kB / 1.666 GB, free: 43.55 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.01344/4.426, allocations: 3.036 MB / 1.669 GB, free: 42.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/4.426, allocations: 7.844 kB / 1.669 GB, free: 42.21 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005152/4.431, allocations: 448.5 kB / 1.669 GB, free: 42.09 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008537/4.44, allocations: 1.947 MB / 1.671 GB, free: 41.64 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001393/4.44, allocations: 61 kB / 1.671 GB, free: 41.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008331/4.441, allocations: 102.5 kB / 1.671 GB, free: 41.63 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006771/4.448, allocations: 2.193 MB / 1.673 GB, free: 41.62 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007267/4.455, allocations: 2.418 MB / 1.676 GB, free: 41.2 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.701e-05/4.455, allocations: 6.188 kB / 1.676 GB, free: 41.2 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003956/4.456, allocations: 7.594 kB / 1.676 GB, free: 41.2 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002107/4.456, allocations: 163.5 kB / 1.676 GB, free: 41.2 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02516/4.481, allocations: 11.46 MB / 1.687 GB, free: 34.81 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00307/4.484, allocations: 1.039 MB / 1.688 GB, free: 34.8 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002609/4.487, allocations: 1.003 MB / 1.689 GB, free: 34.79 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001448/4.488, allocations: 454 kB / 1.69 GB, free: 34.5 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002946/4.491, allocations: 1.191 MB / 1.691 GB, free: 34.33 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 5.41e-06/4.491, allocations: 0 / 1.691 GB, free: 34.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=173): time 0.07232/4.564, allocations: 9.535 MB / 1.7 GB, free: 33.43 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001276/4.564, allocations: 363.8 kB / 1.7 GB, free: 33.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002423/4.566, allocations: 1.083 MB / 1.701 GB, free: 32.85 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006851/4.567, allocations: 28.67 kB / 1.702 GB, free: 32.82 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005344/4.568, allocations: 0.6152 MB / 1.702 GB, free: 32.37 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009773/4.569, allocations: 0.5637 MB / 1.703 GB, free: 32 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/4.569, allocations: 0 / 1.703 GB, free: 32 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001888/4.569, allocations: 389.7 kB / 1.703 GB, free: 31.69 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002788/4.572, allocations: 1.008 MB / 1.704 GB, free: 31.68 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003428/4.575, allocations: 1.436 MB / 1.705 GB, free: 31.27 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01847/4.594, allocations: 2.443 MB / 1.708 GB, free: 31.24 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.596e-05/4.594, allocations: 0 / 1.708 GB, free: 31.24 MB / 0.5105 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.02323/4.617, allocations: 3.988 MB / 1.712 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007444/4.618, allocations: 3.582 MB / 1.715 GB, free: 27.37 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.363e-05/4.618, allocations: 11.69 kB / 1.715 GB, free: 27.37 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000638/4.619, allocations: 170 kB / 1.715 GB, free: 27.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004927/4.624, allocations: 0.5263 MB / 1.716 GB, free: 27.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001866/4.625, allocations: 2.366 MB / 1.718 GB, free: 25.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003725/4.629, allocations: 165.4 kB / 1.718 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005599/4.63, allocations: 181.8 kB / 1.719 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/4.63, allocations: 7 kB / 1.719 GB, free: 25.26 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02068/4.651, allocations: 3.54 MB / 1.722 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.223e-05/4.651, allocations: 7.188 kB / 1.722 GB, free: 25.18 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005219/4.651, allocations: 166.9 kB / 1.722 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004535/4.656, allocations: 0.5231 MB / 1.723 GB, free: 25.15 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001806/4.658, allocations: 2.371 MB / 1.725 GB, free: 23.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/4.661, allocations: 166.6 kB / 1.725 GB, free: 23.06 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004963/4.662, allocations: 179.8 kB / 1.725 GB, free: 23.06 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.0008507/4.663, allocations: 148.2 kB / 1.725 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006685/4.663, allocations: 194.6 kB / 1.726 GB, free: 22.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02737/4.691, allocations: 4.27 MB / 1.73 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-05/4.691, allocations: 21.62 kB / 1.73 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/4.691, allocations: 0 / 1.73 GB, free: 22.69 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02263/4.713, allocations: 3.531 MB / 1.733 GB, free: 22.18 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03527/4.749, allocations: 6.869 MB / 1.74 GB, free: 20.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.943e-05/4.749, allocations: 15.53 kB / 1.74 GB, free: 20.39 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003967/4.753, allocations: 407.4 kB / 1.74 GB, free: 20.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006889/4.754, allocations: 166.9 kB / 1.741 GB, free: 20.31 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005729/4.754, allocations: 73.75 kB / 1.741 GB, free: 20.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00227/4.756, allocations: 3.032 MB / 1.744 GB, free: 17.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/4.757, allocations: 6.656 kB / 1.744 GB, free: 17.43 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02656/4.783, allocations: 5.33 MB / 1.749 GB, free: 15.21 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002264/4.785, allocations: 0.5165 MB / 1.749 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009841/4.786, allocations: 25.8 kB / 1.749 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003201/4.79, allocations: 98.92 kB / 1.749 GB, free: 14.89 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005851/4.79, allocations: 144.9 kB / 1.75 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004415/4.791, allocations: 147 kB / 1.75 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.002046/4.793, allocations: 0.8038 MB / 1.75 GB, free: 14.52 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00997/4.803, allocations: 1.816 MB / 1.752 GB, free: 14.18 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.008694/4.812, allocations: 2.703 MB / 1.755 GB, free: 12.36 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01083/4.822, allocations: 3.927 MB / 1.759 GB, free: 8.777 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/4.823, allocations: 4 kB / 1.759 GB, free: 8.773 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003503/4.826, allocations: 1.379 MB / 1.76 GB, free: 7.5 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007547/4.834, allocations: 0.7551 MB / 1.761 GB, free: 6.977 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/4.848, allocations: 4.097 MB / 1.765 GB, free: 3.461 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00492/4.853, allocations: 2.114 MB / 1.767 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of SimCode: time 1.773e-06/4.853, allocations: 0 / 1.767 GB, free: 17.71 MB / 0.5261 GB Notification: Performance of Templates: time 0.3518/5.204, allocations: 81.55 MB / 1.847 GB, free: 98.32 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/BranchingPipes16/BranchingPipes16.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches