Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009298/0.0009298, allocations: 197.7 kB / 16.79 MB, free: 5.043 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 226.5 MB / 244.1 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008654/0.0008657, allocations: 102 kB / 296.1 MB, free: 6.898 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.36/0.36, allocations: 44.81 MB / 393 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002735/0.0002735, allocations: 8 kB / 465.9 MB, free: 12.73 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3089/0.3092, allocations: 62.95 MB / 0.5165 GB, free: 36.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.058/6.367, allocations: 2.8 GB / 3.317 GB, free: 169 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002334/6.367, allocations: 96.47 kB / 3.317 GB, free: 169 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 1.505/7.872, allocations: 483 MB / 3.788 GB, free: 66.84 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.503e-06/7.872, allocations: 0 / 3.788 GB, free: 66.84 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 6.952e-05/7.873, allocations: 18.69 kB / 3.788 GB, free: 66.84 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.007543/7.88, allocations: 1.779 MB / 3.79 GB, free: 66.03 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.279e-05/7.88, allocations: 11.25 kB / 3.79 GB, free: 66.03 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001866/7.882, allocations: 230.6 kB / 3.79 GB, free: 65.99 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001292/7.883, allocations: 0.5934 MB / 3.791 GB, free: 65.75 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001176/7.883, allocations: 115.2 kB / 3.791 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/7.884, allocations: 58.08 kB / 3.791 GB, free: 65.68 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001933/7.886, allocations: 1.068 MB / 3.792 GB, free: 65.36 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/7.886, allocations: 15.14 kB / 3.792 GB, free: 65.35 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-05/7.886, allocations: 32.02 kB / 3.792 GB, free: 65.35 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-05/7.886, allocations: 37.56 kB / 3.792 GB, free: 65.35 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001546/7.887, allocations: 0.805 MB / 3.793 GB, free: 65.35 MB / 0.5417 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005101/7.892, allocations: 5.546 MB / 3.798 GB, free: 61.49 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001134/7.894, allocations: 0.5363 MB / 3.799 GB, free: 61.42 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002989/7.894, allocations: 207.8 kB / 3.799 GB, free: 61.39 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0782/7.972, allocations: 52.32 MB / 3.85 GB, free: 26.98 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.846e-05/7.972, allocations: 41.97 kB / 3.85 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=39): time 2.956e-06/7.972, allocations: 2.531 kB / 3.85 GB, free: 26.94 MB / 0.5417 GB Notification: Performance of matching and sorting (n=44): time 0.00638/7.979, allocations: 2.102 MB / 3.852 GB, free: 26.38 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/7.979, allocations: 194.4 kB / 3.853 GB, free: 26.16 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008175/7.98, allocations: 0.6326 MB / 3.853 GB, free: 26.02 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.371e-05/7.98, allocations: 36.17 kB / 3.853 GB, free: 25.98 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002564/7.98, allocations: 396.7 kB / 3.854 GB, free: 25.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/7.98, allocations: 167.2 kB / 3.854 GB, free: 25.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.689e-05/7.98, allocations: 14.72 kB / 3.854 GB, free: 25.67 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000117/7.98, allocations: 386.4 kB / 3.854 GB, free: 25.36 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000367/7.981, allocations: 222.1 kB / 3.854 GB, free: 25.35 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005093/7.981, allocations: 0.5901 MB / 3.855 GB, free: 24.88 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009318/7.982, allocations: 0.8674 MB / 3.856 GB, free: 24.43 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.595e-06/7.982, allocations: 2.219 kB / 3.856 GB, free: 24.43 MB / 0.5417 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001425/7.984, allocations: 0.8896 MB / 3.857 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/7.984, allocations: 7.344 kB / 3.857 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/7.984, allocations: 11.12 kB / 3.857 GB, free: 24.34 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003731/7.987, allocations: 265.5 kB / 3.857 GB, free: 24.33 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/7.988, allocations: 282.3 kB / 3.857 GB, free: 24.32 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002044/7.991, allocations: 2.024 MB / 3.859 GB, free: 38.48 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008625/7.991, allocations: 61.19 kB / 3.859 GB, free: 38.47 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.475e-05/7.991, allocations: 42.38 kB / 3.859 GB, free: 38.47 MB / 0.5573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004698/7.992, allocations: 280.3 kB / 3.859 GB, free: 38.34 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001832/7.992, allocations: 77.78 kB / 3.86 GB, free: 38.3 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002135/7.994, allocations: 2.023 MB / 3.862 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.883e-05/7.994, allocations: 21.84 kB / 3.862 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/7.994, allocations: 3.5 kB / 3.862 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/7.994, allocations: 5.281 kB / 3.862 GB, free: 37.45 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003436/7.998, allocations: 2.991 MB / 3.864 GB, free: 35.95 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/7.998, allocations: 0 / 3.864 GB, free: 35.95 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008332/7.999, allocations: 189.8 kB / 3.865 GB, free: 35.94 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001696/8, allocations: 305.2 kB / 3.865 GB, free: 35.86 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.329e-05/8, allocations: 15.59 kB / 3.865 GB, free: 35.86 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001587/8.002, allocations: 2.076 MB / 3.867 GB, free: 33.88 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.946e-06/8.002, allocations: 3.688 kB / 3.867 GB, free: 33.88 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/8.004, allocations: 1.94 MB / 3.869 GB, free: 32.84 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004904/8.004, allocations: 283.8 kB / 3.869 GB, free: 32.62 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000159/8.005, allocations: 14 kB / 3.869 GB, free: 32.61 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005484/8.005, allocations: 35.47 kB / 3.869 GB, free: 32.6 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.14e-05/8.005, allocations: 28.94 kB / 3.869 GB, free: 32.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.779e-05/8.005, allocations: 24.55 kB / 3.869 GB, free: 32.59 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0007652/8.006, allocations: 0.5664 MB / 3.87 GB, free: 32.35 MB / 0.5573 GB Notification: Performance of sort global known variables: time 2.1e-07/8.006, allocations: 0 / 3.87 GB, free: 32.35 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.005735/8.012, allocations: 1.146 MB / 3.871 GB, free: 32.12 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008434/8.02, allocations: 1.581 MB / 3.872 GB, free: 31.73 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.002018/8.022, allocations: 0.9076 MB / 3.873 GB, free: 31.42 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/8.022, allocations: 0 / 3.873 GB, free: 31.42 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.001086/8.024, allocations: 0.6208 MB / 3.874 GB, free: 31.17 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/8.026, allocations: 384.4 kB / 3.874 GB, free: 31.09 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003236/8.029, allocations: 2.626 MB / 3.877 GB, free: 29.59 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007012/8.03, allocations: 1.088 MB / 3.878 GB, free: 28.86 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000195/8.03, allocations: 70.92 kB / 3.878 GB, free: 28.85 MB / 0.5573 GB Notification: Performance of SimCode: time 1.503e-06/8.03, allocations: 0 / 3.878 GB, free: 28.85 MB / 0.5573 GB Notification: Performance of Templates: time 0.05614/8.086, allocations: 38.21 MB / 3.915 GB, free: 7.738 MB / 0.5573 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches