Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve") [: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 4.0.0+maint.om/package.mo): time 0.001482/0.001481, allocations: 182.5 kB / 8.52 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.223/1.223, allocations: 221.4 MB / 230.3 MB, free: 7.762 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008731/0.0008731, allocations: 87.17 kB / 281.2 MB, free: 5.508 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1663/0.1663, allocations: 44.14 MB / 376.1 MB, free: 3.234 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 6.002e-06/6.132e-06, allocations: 224 / 444 MB, free: 15.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 61.92 MB / 0.4941 GB, free: 1.629 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.971/7.082, allocations: 2.828 GB / 3.322 GB, free: 152.2 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/7.083, allocations: 86.3 kB / 3.323 GB, free: 152.1 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.878/8.961, allocations: 467.8 MB / 3.779 GB, free: 62.92 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0002174/8.961, allocations: 25.94 kB / 3.779 GB, free: 62.91 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01336/8.974, allocations: 2.157 MB / 3.782 GB, free: 61.75 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/8.974, allocations: 13.59 kB / 3.782 GB, free: 61.74 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003206/8.978, allocations: 392.4 kB / 3.782 GB, free: 61.66 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/8.98, allocations: 0.8873 MB / 3.783 GB, free: 61.17 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.972e-05/8.98, allocations: 39.38 kB / 3.783 GB, free: 61.16 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001498/8.98, allocations: 41.59 kB / 3.783 GB, free: 61.16 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001728/8.982, allocations: 0.9474 MB / 3.784 GB, free: 60.84 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001639/8.984, allocations: 1.107 MB / 3.785 GB, free: 60.29 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.099e-05/8.984, allocations: 7.844 kB / 3.785 GB, free: 60.28 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.773e-05/8.984, allocations: 3.656 kB / 3.785 GB, free: 60.28 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.05e-05/8.984, allocations: 58.84 kB / 3.785 GB, free: 60.27 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.514/9.498, allocations: 101.5 MB / 3.884 GB, free: 118.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006616/9.499, allocations: 337.4 kB / 3.884 GB, free: 118.3 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003824/9.499, allocations: 288.8 kB / 3.885 GB, free: 118.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03055/9.53, allocations: 16.78 MB / 3.901 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.675e-05/9.53, allocations: 41.72 kB / 3.901 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 2.565e-06/9.53, allocations: 3.062 kB / 3.901 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.007365/9.537, allocations: 2.345 MB / 3.903 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.599e-05/9.537, allocations: 132.4 kB / 3.904 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/9.538, allocations: 0.5771 MB / 3.904 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/9.538, allocations: 29.27 kB / 3.904 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/9.538, allocations: 395.1 kB / 3.905 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001268/9.538, allocations: 159 kB / 3.905 GB, free: 107 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/9.539, allocations: 0 / 3.905 GB, free: 107 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.00011/9.539, allocations: 384.2 kB / 3.905 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004922/9.539, allocations: 363.9 kB / 3.905 GB, free: 106.7 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006003/9.54, allocations: 0.5703 MB / 3.906 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001932/9.542, allocations: 0.6761 MB / 3.907 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/9.542, allocations: 0 / 3.907 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.00434/9.546, allocations: 1.873 MB / 3.908 GB, free: 106.3 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004961/9.547, allocations: 2.273 MB / 3.911 GB, free: 104 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/9.547, allocations: 6.094 kB / 3.911 GB, free: 104 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001712/9.548, allocations: 0.4906 MB / 3.911 GB, free: 104 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005997/9.549, allocations: 168.3 kB / 3.911 GB, free: 104 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002135/9.551, allocations: 1.556 MB / 3.913 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/9.552, allocations: 132.2 kB / 3.913 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-05/9.552, allocations: 38.84 kB / 3.913 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.087e-05/9.552, allocations: 3.781 kB / 3.913 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002975/9.555, allocations: 1.267 MB / 3.914 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/9.555, allocations: 7.094 kB / 3.914 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001532/9.557, allocations: 398 kB / 3.915 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006297/9.558, allocations: 177.4 kB / 3.915 GB, free: 103.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001188/9.559, allocations: 1.166 MB / 3.916 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009761/9.56, allocations: 107.6 kB / 3.916 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.329e-05/9.56, allocations: 37.34 kB / 3.916 GB, free: 102.9 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 9 (valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,sink.medium.phase,source.medium.phase,sink.state.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (68): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of prepare postOptimizeDAE: time 0.0002572/9.56, allocations: 128.7 kB / 3.916 GB, free: 102.8 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009158/9.561, allocations: 320.5 kB / 3.916 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002797/9.564, allocations: 1.867 MB / 3.918 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-05/9.564, allocations: 17.33 kB / 3.918 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/9.564, allocations: 3.312 kB / 3.918 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002119/9.566, allocations: 1.777 MB / 3.92 GB, free: 102.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004471/9.57, allocations: 2.807 MB / 3.923 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/9.57, allocations: 0.75 kB / 3.923 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005191/9.571, allocations: 119.9 kB / 3.923 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002812/9.571, allocations: 86.81 kB / 3.923 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.583e-05/9.571, allocations: 13.52 kB / 3.923 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004231/9.572, allocations: 0.6874 MB / 3.924 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/9.572, allocations: 0 / 3.924 GB, free: 101.3 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003424/9.575, allocations: 2.324 MB / 3.926 GB, free: 101 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004802/9.576, allocations: 281 kB / 3.926 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001457/9.576, allocations: 3.656 kB / 3.926 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006404/9.577, allocations: 66.8 kB / 3.926 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/9.577, allocations: 44.84 kB / 3.926 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.109e-05/9.577, allocations: 28.55 kB / 3.926 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0005297/9.577, allocations: 441.9 kB / 3.927 GB, free: 100.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007889/9.585, allocations: 1.671 MB / 3.928 GB, free: 100.8 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (pipe.mediums[1].p,pipe.mediums[1].h) * Number of discrete variables: 9 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,pipe.statesFM[2].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01044/9.596, allocations: 2.129 MB / 3.93 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003025/9.599, allocations: 1.674 MB / 3.932 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.903e-06/9.599, allocations: 0 / 3.932 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001067/9.6, allocations: 0.8044 MB / 3.933 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/9.602, allocations: 311 kB / 3.933 GB, free: 100.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/9.606, allocations: 1.825 MB / 3.935 GB, free: 100.2 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008876/9.607, allocations: 1.232 MB / 3.936 GB, free: 99.5 MB / 0.5417 GB Notification: Performance of SimCode: time 9.72e-07/9.607, allocations: 0.9844 kB / 3.936 GB, free: 99.5 MB / 0.5417 GB Notification: Performance of Templates: time 0.07005/9.677, allocations: 51.14 MB / 3.986 GB, free: 97.28 MB / 0.5417 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeClosingValve/DynamicPipeClosingValve.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches