Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.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.DynamicPipeClosingValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p",fileNamePrefix="ModelicaTest_3.2.3_cpp_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_cpp_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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001661/0.001661, allocations: 174.4 kB / 8.148 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 1.716/1.716, 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.001309/0.001308, allocations: 91.39 kB / 261.8 MB, free: 13.63 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.2829/0.2829, allocations: 43.49 MB / 353.2 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 7.984e-06/7.995e-06, allocations: 4 kB / 417.7 MB, free: 40.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.275, allocations: 58.84 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.435/6.71, allocations: 2.824 GB / 3.289 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003076/6.711, allocations: 76.11 kB / 3.289 GB, free: 109.5 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.067/8.777, allocations: 462.7 MB / 3.741 GB, free: 62 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001001/8.778, allocations: 23.47 kB / 3.741 GB, free: 61.99 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: 196 * Number of variables: 196 Notification: Performance of Generate backend data structure: time 0.01024/8.788, allocations: 2.16 MB / 3.743 GB, free: 61.08 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/8.788, allocations: 10.84 kB / 3.743 GB, free: 61.08 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0044/8.792, allocations: 389.9 kB / 3.743 GB, free: 61.03 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003351/8.796, allocations: 0.8862 MB / 3.744 GB, free: 60.74 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/8.796, allocations: 40.94 kB / 3.744 GB, free: 60.74 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000227/8.796, allocations: 43.06 kB / 3.744 GB, free: 60.74 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002636/8.799, allocations: 0.9419 MB / 3.745 GB, free: 60.74 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002608/8.801, allocations: 1.106 MB / 3.746 GB, free: 60.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.835e-05/8.802, allocations: 5.875 kB / 3.746 GB, free: 60.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001524/8.802, allocations: 5.484 kB / 3.746 GB, free: 60.46 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.56e-05/8.802, allocations: 61.78 kB / 3.746 GB, free: 60.46 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3474/9.149, allocations: 101.2 MB / 3.845 GB, free: 27.45 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009416/9.15, allocations: 344.6 kB / 3.846 GB, free: 27.25 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005986/9.151, allocations: 278.4 kB / 3.846 GB, free: 27.1 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05828/9.209, allocations: 16.78 MB / 3.862 GB, free: 26.65 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.262e-05/9.209, allocations: 44.91 kB / 3.862 GB, free: 26.61 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=42): time 3.256e-06/9.209, allocations: 0 / 3.862 GB, free: 26.61 MB / 0.5573 GB Notification: Performance of matching and sorting (n=46): time 0.01187/9.221, allocations: 2.359 MB / 3.865 GB, free: 25.11 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.563e-05/9.221, allocations: 136.5 kB / 3.865 GB, free: 24.95 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001177/9.222, allocations: 0.5872 MB / 3.865 GB, free: 24.55 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0001735/9.223, allocations: 25.7 kB / 3.865 GB, free: 24.52 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/9.223, allocations: 411.7 kB / 3.866 GB, free: 24.18 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002068/9.223, allocations: 159.1 kB / 3.866 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.651e-05/9.223, allocations: 4 kB / 3.866 GB, free: 24.05 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.000136/9.223, allocations: 337.3 kB / 3.866 GB, free: 23.73 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009017/9.224, allocations: 371.6 kB / 3.867 GB, free: 23.54 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001013/9.225, allocations: 0.5537 MB / 3.867 GB, free: 23.09 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007641/9.233, allocations: 1.043 MB / 3.868 GB, free: 22.54 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/9.233, allocations: 4 kB / 3.868 GB, free: 22.54 MB / 0.5573 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.01223/9.245, allocations: 2.191 MB / 3.87 GB, free: 21.33 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009391/9.246, allocations: 2.262 MB / 3.872 GB, free: 18.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.501e-05/9.246, allocations: 8 kB / 3.872 GB, free: 18.94 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003122/9.249, allocations: 0.4909 MB / 3.873 GB, free: 18.64 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/9.251, allocations: 163 kB / 3.873 GB, free: 18.52 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003813/9.255, allocations: 1.544 MB / 3.875 GB, free: 17.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/9.256, allocations: 106.2 kB / 3.875 GB, free: 17.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/9.256, allocations: 39.45 kB / 3.875 GB, free: 17.35 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.163e-05/9.256, allocations: 4 kB / 3.875 GB, free: 17.34 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009752/9.266, allocations: 1.629 MB / 3.876 GB, free: 16.45 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/9.266, allocations: 4 kB / 3.876 GB, free: 16.44 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002531/9.269, allocations: 392.9 kB / 3.877 GB, free: 16.21 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/9.27, allocations: 172.5 kB / 3.877 GB, free: 16.08 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002131/9.272, allocations: 1.161 MB / 3.878 GB, free: 15.21 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001453/9.274, allocations: 106.5 kB / 3.878 GB, free: 15.12 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001312/9.274, allocations: 46.45 kB / 3.878 GB, free: 15.09 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.0003198/9.274, allocations: 53.27 kB / 3.878 GB, free: 15.05 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001426/9.276, allocations: 320.4 kB / 3.878 GB, free: 14.86 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004637/9.28, allocations: 1.866 MB / 3.88 GB, free: 13.77 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.549e-05/9.28, allocations: 21.67 kB / 3.88 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.816e-06/9.28, allocations: 3.812 kB / 3.88 GB, free: 13.76 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003369/9.284, allocations: 1.772 MB / 3.882 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006221/9.29, allocations: 2.81 MB / 3.885 GB, free: 10.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.288e-06/9.29, allocations: 0 / 3.885 GB, free: 10.88 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001002/9.291, allocations: 117.8 kB / 3.885 GB, free: 10.79 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004261/9.292, allocations: 88.2 kB / 3.885 GB, free: 10.72 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.437e-05/9.292, allocations: 15.75 kB / 3.885 GB, free: 10.71 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006581/9.292, allocations: 0.6797 MB / 3.886 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/9.292, allocations: 1.969 kB / 3.886 GB, free: 10.04 MB / 0.5573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005546/9.298, allocations: 2.33 MB / 3.888 GB, free: 7.949 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000797/9.299, allocations: 277.2 kB / 3.888 GB, free: 7.699 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/9.299, allocations: 4 kB / 3.888 GB, free: 7.695 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/9.3, allocations: 75.05 kB / 3.888 GB, free: 7.641 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/9.3, allocations: 39.48 kB / 3.888 GB, free: 7.617 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.524e-05/9.301, allocations: 23.75 kB / 3.888 GB, free: 7.598 MB / 0.5573 GB Notification: Performance of sort global known variables: time 0.0009817/9.301, allocations: 443 kB / 3.889 GB, free: 7.207 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.009391/9.311, allocations: 1.67 MB / 3.89 GB, free: 5.578 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.01454/9.325, allocations: 2.12 MB / 3.892 GB, free: 3.855 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004594/9.33, allocations: 1.647 MB / 3.894 GB, free: 2.402 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.014e-05/9.33, allocations: 4 kB / 3.894 GB, free: 2.398 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001884/9.332, allocations: 0.8017 MB / 3.895 GB, free: 1.68 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/9.335, allocations: 313.8 kB / 3.895 GB, free: 1.449 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2152/9.551, allocations: 1.862 MB / 3.897 GB, free: 155.2 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0013/9.552, allocations: 1.231 MB / 3.898 GB, free: 154.4 MB / 0.5573 GB Notification: Performance of SimCode: time 1.663e-06/9.552, allocations: 0 / 3.898 GB, free: 154.4 MB / 0.5573 GB Notification: Performance of Templates: time 0.08477/9.637, allocations: 41.56 MB / 3.939 GB, free: 152.8 MB / 0.5573 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeClosingValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches