Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_3.2.3_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_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009364/0.0009364, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.227/1.227, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0006738/0.0006738, allocations: 82.42 kB / 271.2 MB, free: 8.254 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.2964/0.2964, allocations: 43.56 MB / 363.1 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003826/0.0003828, allocations: 12 kB / 432 MB, free: 5.594 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1075, allocations: 58.85 MB / 490.8 MB, free: 10.66 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.2201/0.3276, allocations: 36.74 MB / 0.5152 GB, free: 24.22 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.3443, allocations: 18.88 MB / 0.5336 GB, free: 10.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001028/0.3454, allocations: 27.53 kB / 0.5337 GB, free: 10.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.3464, allocations: 369 kB / 0.534 GB, free: 10.57 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01074/0.3572, allocations: 4.109 MB / 0.538 GB, free: 8.688 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005495/0.3627, allocations: 2.041 MB / 0.54 GB, free: 7.621 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002206/0.3649, allocations: 2.371 MB / 0.5423 GB, free: 6.719 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005497/0.3654, allocations: 411.6 kB / 0.5427 GB, free: 6.566 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009653/0.3751, allocations: 6.423 MB / 0.549 GB, free: 5.637 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01301/0.3882, allocations: 9.091 MB / 0.5579 GB, free: 4.547 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002083/0.3884, allocations: 34.03 kB / 0.5579 GB, free: 4.547 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01184/0.4002, allocations: 6.881 MB / 0.5646 GB, free: 14.77 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005211/0.4008, allocations: 243.2 kB / 0.5649 GB, free: 14.53 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007804/0.4016, allocations: 424 kB / 0.5653 GB, free: 14.11 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005665/0.4073, allocations: 3.403 MB / 0.5686 GB, free: 10.7 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.4073, allocations: 4 kB / 0.5686 GB, free: 10.69 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4073, allocations: 4 kB / 0.5686 GB, free: 10.69 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.4073, allocations: 0 / 0.5686 GB, free: 10.69 MB / 394.7 MB 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.003518/0.4108, allocations: 1.461 MB / 0.57 GB, free: 9.18 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.4109, allocations: 8.031 kB / 0.57 GB, free: 9.172 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00127/0.4122, allocations: 219.8 kB / 0.5703 GB, free: 8.957 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000771/0.4129, allocations: 0.5365 MB / 0.5708 GB, free: 8.379 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.4131, allocations: 109.3 kB / 0.5709 GB, free: 8.262 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.009e-05/0.4132, allocations: 64.36 kB / 0.5709 GB, free: 8.199 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001772/0.4149, allocations: 1.078 MB / 0.572 GB, free: 7.016 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.297e-05/0.415, allocations: 4 kB / 0.572 GB, free: 7.012 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.35e-05/0.4151, allocations: 27.98 kB / 0.572 GB, free: 6.984 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-05/0.4151, allocations: 48.91 kB / 0.5721 GB, free: 6.934 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.4166, allocations: 0.8194 MB / 0.5729 GB, free: 6.117 MB / 394.7 MB 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.005455/0.4221, allocations: 5.558 MB / 0.5783 GB, free: 200 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001113/0.4232, allocations: 0.5444 MB / 0.5788 GB, free: 15.62 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003121/0.4235, allocations: 206.5 kB / 0.579 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08445/0.508, allocations: 47.88 MB / 0.6258 GB, free: 9.922 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.5081, allocations: 42.5 kB / 0.6258 GB, free: 9.871 MB / 458.7 MB Notification: Performance of pre-optimization done (n=39): time 2.485e-06/0.5081, allocations: 4 kB / 0.6258 GB, free: 9.867 MB / 458.7 MB Notification: Performance of matching and sorting (n=44): time 0.006176/0.5143, allocations: 2.122 MB / 0.6279 GB, free: 7.688 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.547e-05/0.5144, allocations: 187.9 kB / 0.6281 GB, free: 7.461 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007823/0.5152, allocations: 0.6406 MB / 0.6287 GB, free: 6.812 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.289e-05/0.5152, allocations: 29.7 kB / 0.6287 GB, free: 6.777 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002693/0.5155, allocations: 407.2 kB / 0.6291 GB, free: 6.371 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.5156, allocations: 161.7 kB / 0.6293 GB, free: 6.211 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.56e-05/0.5157, allocations: 16 kB / 0.6293 GB, free: 6.195 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.5158, allocations: 378.8 kB / 0.6297 GB, free: 5.816 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00037/0.5162, allocations: 229.8 kB / 0.6299 GB, free: 5.594 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005721/0.5168, allocations: 0.5861 MB / 0.6304 GB, free: 4.832 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.5178, allocations: 0.856 MB / 0.6313 GB, free: 3.812 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.5178, allocations: 0 / 0.6313 GB, free: 3.812 MB / 458.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001425/0.5193, allocations: 0.9 MB / 0.6322 GB, free: 2.902 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.665e-05/0.5193, allocations: 12 kB / 0.6322 GB, free: 2.891 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.5193, allocations: 12 kB / 0.6322 GB, free: 2.879 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003081/0.5224, allocations: 268.5 kB / 0.6324 GB, free: 2.613 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001154/0.5236, allocations: 283.8 kB / 0.6327 GB, free: 2.336 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.5253, allocations: 2.021 MB / 0.6347 GB, free: 164 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006452/0.5259, allocations: 56.12 kB / 0.6347 GB, free: 108 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.208e-05/0.526, allocations: 40 kB / 0.6348 GB, free: 68 kB / 458.7 MB 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],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.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.0004466/0.5265, allocations: 281.3 kB / 0.635 GB, free: 15.78 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001895/0.5266, allocations: 71.16 kB / 0.6351 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002449/0.5291, allocations: 2.022 MB / 0.6371 GB, free: 13.68 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.401e-05/0.5291, allocations: 23.97 kB / 0.6371 GB, free: 13.65 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.5292, allocations: 160 / 0.6371 GB, free: 13.65 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.898e-06/0.5292, allocations: 11.97 kB / 0.6371 GB, free: 13.64 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003678/0.5329, allocations: 2.999 MB / 0.64 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.5329, allocations: 0 / 0.64 GB, free: 10.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000911/0.5338, allocations: 191.7 kB / 0.6402 GB, free: 10.38 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001655/0.5355, allocations: 307.9 kB / 0.6405 GB, free: 10.08 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.5355, allocations: 19.92 kB / 0.6405 GB, free: 10.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001637/0.5372, allocations: 2.066 MB / 0.6426 GB, free: 7.836 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.5372, allocations: 3.984 kB / 0.6426 GB, free: 7.832 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.5395, allocations: 1.952 MB / 0.6445 GB, free: 5.859 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004612/0.5399, allocations: 279.3 kB / 0.6447 GB, free: 5.566 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000137/0.5401, allocations: 19.92 kB / 0.6448 GB, free: 5.547 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005101/0.5406, allocations: 35.95 kB / 0.6448 GB, free: 5.512 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.899e-05/0.5407, allocations: 36.33 kB / 0.6448 GB, free: 5.477 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.5407, allocations: 12.88 kB / 0.6448 GB, free: 5.465 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0007909/0.5415, allocations: 0.5693 MB / 0.6454 GB, free: 4.898 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5415, allocations: 0 / 0.6454 GB, free: 4.898 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003355/0.5449, allocations: 1.089 MB / 0.6465 GB, free: 3.809 MB / 474.7 MB 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.005001/0.5499, allocations: 1.186 MB / 0.6476 GB, free: 2.617 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002077/0.552, allocations: 0.9012 MB / 0.6485 GB, free: 1.715 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.552, allocations: 4 kB / 0.6485 GB, free: 1.711 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001257/0.5533, allocations: 0.6359 MB / 0.6491 GB, free: 1.078 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002212/0.5555, allocations: 371.6 kB / 0.6495 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003667/0.5592, allocations: 2.63 MB / 0.652 GB, free: 14.05 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/0.5599, allocations: 1.097 MB / 0.6531 GB, free: 12.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001866/0.5601, allocations: 63.44 kB / 0.6532 GB, free: 12.86 MB / 490.7 MB Notification: Performance of SimCode: time 4.1e-07/0.5601, allocations: 4 kB / 0.6532 GB, free: 12.86 MB / 490.7 MB Notification: Performance of Templates: time 0.2145/0.7746, allocations: 37.02 MB / 0.6893 GB, free: 159.9 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Media/TestsWithFluid/MediaTestModels/Water/WaterIF97_pT/WaterIF97_pT.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches