Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_3.2.3_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_3.2.3_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 3.2.3+maint.om/package.mo): time 0.001056/0.001056, allocations: 192.6 kB / 7.807 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.054/1.054, allocations: 205.2 MB / 213.4 MB, free: 13.93 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.000814/0.0008141, allocations: 82.98 kB / 261.4 MB, free: 13.56 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.16/0.16, allocations: 43.49 MB / 352.9 MB, free: 1.984 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.941e-06/6.051e-06, allocations: 0 / 417.7 MB, free: 40.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2168/0.2168, allocations: 58.84 MB / 476.6 MB, free: 5.223 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.584/4.801, allocations: 2.824 GB / 3.289 GB, free: 31.38 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/4.801, allocations: 79.86 kB / 3.289 GB, free: 31.3 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.622/6.424, allocations: 462.7 MB / 3.741 GB, free: 47.32 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.226e-05/6.424, allocations: 23.88 kB / 3.741 GB, free: 47.32 MB / 0.4948 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.00751/6.431, allocations: 2.156 MB / 3.743 GB, free: 46.43 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/6.431, allocations: 10.06 kB / 3.743 GB, free: 46.43 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002407/6.434, allocations: 395.2 kB / 3.743 GB, free: 46.38 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001766/6.435, allocations: 0.8811 MB / 3.744 GB, free: 46.12 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.23e-05/6.436, allocations: 36.12 kB / 3.744 GB, free: 46.12 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/6.436, allocations: 44.56 kB / 3.744 GB, free: 46.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001383/6.437, allocations: 0.9468 MB / 3.745 GB, free: 46.12 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001415/6.438, allocations: 1.108 MB / 3.746 GB, free: 45.84 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/6.438, allocations: 13.41 kB / 3.746 GB, free: 45.84 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.996e-05/6.439, allocations: 3.938 kB / 3.746 GB, free: 45.84 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.471e-05/6.439, allocations: 56 kB / 3.746 GB, free: 45.83 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1841/6.623, allocations: 101.2 MB / 3.845 GB, free: 29.66 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007668/6.624, allocations: 342.5 kB / 3.846 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005134/6.624, allocations: 284.6 kB / 3.846 GB, free: 29.64 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03368/6.658, allocations: 16.77 MB / 3.862 GB, free: 18.62 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.734e-05/6.658, allocations: 44.98 kB / 3.862 GB, free: 18.58 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=42): time 4.047e-06/6.658, allocations: 0 / 3.862 GB, free: 18.58 MB / 0.5417 GB Notification: Performance of matching and sorting (n=46): time 0.008382/6.666, allocations: 2.344 MB / 3.865 GB, free: 18.14 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/6.666, allocations: 135.1 kB / 3.865 GB, free: 17.99 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/6.668, allocations: 0.5805 MB / 3.865 GB, free: 17.86 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.091e-05/6.668, allocations: 25.7 kB / 3.865 GB, free: 17.82 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.000275/6.668, allocations: 398.4 kB / 3.866 GB, free: 17.57 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/6.668, allocations: 160.5 kB / 3.866 GB, free: 17.47 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.538e-05/6.668, allocations: 0 / 3.866 GB, free: 17.47 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001793/6.668, allocations: 379.5 kB / 3.866 GB, free: 17.16 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006273/6.669, allocations: 365.5 kB / 3.867 GB, free: 17.15 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007223/6.67, allocations: 0.5675 MB / 3.867 GB, free: 16.91 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00438/6.674, allocations: 1.037 MB / 3.868 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/6.674, allocations: 1.625 kB / 3.868 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.006843/6.681, allocations: 2.239 MB / 3.87 GB, free: 16.11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007845/6.682, allocations: 2.269 MB / 3.872 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.757e-05/6.682, allocations: 12 kB / 3.873 GB, free: 13.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001723/6.684, allocations: 0.497 MB / 3.873 GB, free: 13.41 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005885/6.684, allocations: 167.5 kB / 3.873 GB, free: 13.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00223/6.686, allocations: 1.551 MB / 3.875 GB, free: 28.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/6.688, allocations: 127.3 kB / 3.875 GB, free: 28.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.341e-05/6.688, allocations: 37.5 kB / 3.875 GB, free: 28.09 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 9.308e-06/6.688, allocations: 8 kB / 3.875 GB, free: 28.09 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00497/6.693, allocations: 1.628 MB / 3.876 GB, free: 27.19 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/6.693, allocations: 8 kB / 3.876 GB, free: 27.18 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00146/6.694, allocations: 402 kB / 3.877 GB, free: 26.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/6.695, allocations: 181 kB / 3.877 GB, free: 26.81 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001266/6.696, allocations: 1.164 MB / 3.878 GB, free: 25.94 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/6.697, allocations: 109 kB / 3.878 GB, free: 25.86 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.171e-05/6.697, allocations: 39.59 kB / 3.878 GB, free: 25.83 MB / 0.5573 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.0002434/6.698, allocations: 128.6 kB / 3.878 GB, free: 25.71 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009783/6.699, allocations: 332.1 kB / 3.879 GB, free: 25.52 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002795/6.701, allocations: 1.857 MB / 3.881 GB, free: 24.45 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/6.701, allocations: 18.58 kB / 3.881 GB, free: 24.43 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/6.701, allocations: 0 / 3.881 GB, free: 24.43 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002048/6.703, allocations: 1.77 MB / 3.882 GB, free: 23.25 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004139/6.708, allocations: 2.816 MB / 3.885 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/6.708, allocations: 4 kB / 3.885 GB, free: 21.71 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004843/6.708, allocations: 114.2 kB / 3.885 GB, free: 21.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000253/6.708, allocations: 84.17 kB / 3.885 GB, free: 21.57 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.323e-05/6.708, allocations: 15.2 kB / 3.885 GB, free: 21.57 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004291/6.709, allocations: 0.6833 MB / 3.886 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/6.709, allocations: 6.094 kB / 3.886 GB, free: 20.95 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003305/6.712, allocations: 2.32 MB / 3.888 GB, free: 19.55 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005168/6.713, allocations: 278.8 kB / 3.888 GB, free: 19.36 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002299/6.713, allocations: 7.812 kB / 3.888 GB, free: 19.35 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007341/6.714, allocations: 65.31 kB / 3.888 GB, free: 19.3 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/6.714, allocations: 42.47 kB / 3.889 GB, free: 19.28 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.143e-05/6.714, allocations: 25.08 kB / 3.889 GB, free: 19.27 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0005558/6.714, allocations: 445.1 kB / 3.889 GB, free: 18.99 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.007322/6.722, allocations: 1.674 MB / 3.891 GB, free: 17.43 MB / 0.5573 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.01093/6.733, allocations: 2.116 MB / 3.893 GB, free: 15.78 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002693/6.735, allocations: 1.67 MB / 3.894 GB, free: 14.85 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/6.735, allocations: 5.438 kB / 3.894 GB, free: 14.84 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0009905/6.736, allocations: 0.8047 MB / 3.895 GB, free: 14.45 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001843/6.738, allocations: 306.6 kB / 3.895 GB, free: 14.29 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003886/6.742, allocations: 1.816 MB / 3.897 GB, free: 13 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/6.743, allocations: 1.234 MB / 3.898 GB, free: 11.95 MB / 0.5573 GB Notification: Performance of SimCode: time 3.7e-07/6.743, allocations: 0 / 3.898 GB, free: 11.95 MB / 0.5573 GB Notification: Performance of Templates: time 0.3031/7.047, allocations: 51.41 MB / 3.949 GB, free: 153.2 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Fluid/TestPipesAndValves/DynamicPipeClosingValve/DynamicPipeClosingValve.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches