Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.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.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_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_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009016/0.0009016, allocations: 188.8 kB / 7.804 MB, free: 2.488 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.018/1.018, 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.0008385/0.0008384, allocations: 86.05 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.1483/0.1483, allocations: 43.49 MB / 352.8 MB, free: 1.957 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.523e-06/6.733e-06, allocations: 0 / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2394/0.2394, allocations: 58.84 MB / 476.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.063/1.302, allocations: 0.6583 GB / 1.124 GB, free: 143.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/1.303, allocations: 75.97 kB / 1.124 GB, free: 143.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.74/3.042, allocations: 0.5421 GB / 1.666 GB, free: 37.26 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001691/3.043, allocations: 66.34 kB / 1.666 GB, free: 37.26 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.01073/3.053, allocations: 3.038 MB / 1.669 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/3.053, allocations: 10.91 kB / 1.669 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003351/3.057, allocations: 443.2 kB / 1.669 GB, free: 36.21 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004993/3.062, allocations: 1.952 MB / 1.671 GB, free: 35.87 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.768e-05/3.062, allocations: 53.53 kB / 1.671 GB, free: 35.87 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000326/3.062, allocations: 106.8 kB / 1.671 GB, free: 35.86 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003172/3.065, allocations: 2.195 MB / 1.673 GB, free: 35.86 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00317/3.069, allocations: 2.42 MB / 1.676 GB, free: 35.43 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.354e-05/3.069, allocations: 5.656 kB / 1.676 GB, free: 35.43 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001989/3.069, allocations: 5.75 kB / 1.676 GB, free: 35.43 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001243/3.069, allocations: 168.2 kB / 1.676 GB, free: 35.43 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01323/3.082, allocations: 11.46 MB / 1.687 GB, free: 29.12 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001608/3.084, allocations: 1.042 MB / 1.688 GB, free: 29.11 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001318/3.085, allocations: 1.003 MB / 1.689 GB, free: 29.09 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009733/3.086, allocations: 449.8 kB / 1.69 GB, free: 28.81 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001653/3.088, allocations: 1.185 MB / 1.691 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=153): time 4.228e-06/3.088, allocations: 0 / 1.691 GB, free: 28.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=173): time 0.03958/3.127, allocations: 9.543 MB / 1.7 GB, free: 27.82 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001117/3.128, allocations: 364.8 kB / 1.7 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002048/3.13, allocations: 1.078 MB / 1.702 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0004507/3.13, allocations: 29.08 kB / 1.702 GB, free: 27.21 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006233/3.131, allocations: 0.6576 MB / 1.702 GB, free: 26.92 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006158/3.131, allocations: 0.5609 MB / 1.703 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001773/3.132, allocations: 0 / 1.703 GB, free: 26.55 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001184/3.132, allocations: 390 kB / 1.703 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001621/3.133, allocations: 1.005 MB / 1.704 GB, free: 26.24 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001846/3.135, allocations: 1.435 MB / 1.705 GB, free: 25.82 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01173/3.147, allocations: 2.444 MB / 1.708 GB, free: 25.8 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.708e-05/3.147, allocations: 7.375 kB / 1.708 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of matching and sorting (n=257) (initialization): time 0.01391/3.161, allocations: 4.08 MB / 1.712 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009253/3.162, allocations: 3.642 MB / 1.715 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-05/3.162, allocations: 9.125 kB / 1.715 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000419/3.162, allocations: 173.6 kB / 1.716 GB, free: 21.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002364/3.165, allocations: 0.5258 MB / 1.716 GB, free: 21.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001303/3.166, allocations: 2.365 MB / 1.718 GB, free: 35.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00263/3.169, allocations: 177.5 kB / 1.719 GB, free: 35.75 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004275/3.169, allocations: 184.1 kB / 1.719 GB, free: 35.75 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/3.169, allocations: 2.969 kB / 1.719 GB, free: 35.75 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01191/3.181, allocations: 3.536 MB / 1.722 GB, free: 35.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.595e-05/3.181, allocations: 13.3 kB / 1.722 GB, free: 35.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003449/3.182, allocations: 176.9 kB / 1.722 GB, free: 35.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002359/3.184, allocations: 0.5159 MB / 1.723 GB, free: 35.65 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001532/3.186, allocations: 2.372 MB / 1.725 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00258/3.188, allocations: 160.1 kB / 1.725 GB, free: 33.57 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004651/3.189, allocations: 177.4 kB / 1.726 GB, free: 33.57 MB / 0.5261 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.0009031/3.19, allocations: 226.9 kB / 1.726 GB, free: 33.39 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006578/3.19, allocations: 188.1 kB / 1.726 GB, free: 33.29 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01566/3.206, allocations: 4.279 MB / 1.73 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.196e-05/3.206, allocations: 22.97 kB / 1.73 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.826e-05/3.206, allocations: 3.938 kB / 1.73 GB, free: 33.12 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01197/3.218, allocations: 3.529 MB / 1.734 GB, free: 32.61 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02018/3.238, allocations: 6.866 MB / 1.74 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.005e-05/3.238, allocations: 6.562 kB / 1.74 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001978/3.24, allocations: 412.2 kB / 1.741 GB, free: 31.65 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004085/3.241, allocations: 162.4 kB / 1.741 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002802/3.241, allocations: 75.38 kB / 1.741 GB, free: 31.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001989/3.243, allocations: 3.037 MB / 1.744 GB, free: 28.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/3.243, allocations: 10.47 kB / 1.744 GB, free: 28.88 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01505/3.258, allocations: 5.326 MB / 1.749 GB, free: 27.82 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001665/3.26, allocations: 0.5097 MB / 1.75 GB, free: 27.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008257/3.261, allocations: 24.8 kB / 1.75 GB, free: 27.63 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002075/3.263, allocations: 98.33 kB / 1.75 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003181/3.263, allocations: 139 kB / 1.75 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003304/3.263, allocations: 153.3 kB / 1.75 GB, free: 27.62 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001583/3.265, allocations: 0.8026 MB / 1.751 GB, free: 27.51 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007708/3.273, allocations: 1.815 MB / 1.753 GB, free: 27.26 MB / 0.5261 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.007475/3.28, allocations: 2.691 MB / 1.755 GB, free: 26.7 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.007874/3.288, allocations: 3.98 MB / 1.759 GB, free: 26.52 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.781e-05/3.288, allocations: 10.17 kB / 1.759 GB, free: 26.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002755/3.291, allocations: 1.375 MB / 1.76 GB, free: 26.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005082/3.296, allocations: 0.7661 MB / 1.761 GB, free: 26.32 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009852/3.306, allocations: 4.047 MB / 1.765 GB, free: 25.43 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003198/3.309, allocations: 2.132 MB / 1.767 GB, free: 24.68 MB / 0.5261 GB Notification: Performance of SimCode: time 7.21e-07/3.309, allocations: 3.562 kB / 1.767 GB, free: 24.68 MB / 0.5261 GB Notification: Performance of Templates: time 0.109/3.418, allocations: 73.11 MB / 1.839 GB, free: 3.754 MB / 0.5261 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_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_ModelicaTest.Fluid.TestPipesAndValves.BranchingPipes16.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches