Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.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) 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(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") translateModel(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.h|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002719/0.002719, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.408/3.408, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001823/0.001823, allocations: 97.22 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006119/0.0006121, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4141/0.4148, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.03634/0.4512, allocations: 27.27 MB / 401.8 MB, free: 21.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01951/0.4708, allocations: 13.35 MB / 415.2 MB, free: 8.141 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004018/0.4712, allocations: 4 kB / 415.2 MB, free: 8.137 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009056/0.4721, allocations: 231 kB / 415.4 MB, free: 7.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007074/0.4728, allocations: 251.3 kB / 415.6 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01715/0.49, allocations: 4.527 MB / 420.2 MB, free: 3.141 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00104/0.4911, allocations: 0.5505 MB / 420.7 MB, free: 2.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.4913, allocations: 85.02 kB / 420.8 MB, free: 2.504 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008779/0.5001, allocations: 3.274 MB / 424.1 MB, free: 15.23 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004007/0.5005, allocations: 199.2 kB / 424.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.33e-05/0.5006, allocations: 16 kB / 424.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01638/0.517, allocations: 5.931 MB / 430.2 MB, free: 9.078 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001984/0.5172, allocations: 95.64 kB / 430.3 MB, free: 8.984 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002002/0.5174, allocations: 105.5 kB / 430.4 MB, free: 8.875 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00639/0.5239, allocations: 2.573 MB / 433 MB, free: 6.297 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.5239, allocations: 0 / 433 MB, free: 6.297 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.595e-06/0.5239, allocations: 0 / 433 MB, free: 6.297 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.5239, allocations: 0 / 433 MB, free: 6.297 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.00316/0.5271, allocations: 0.9513 MB / 433.9 MB, free: 5.297 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.5272, allocations: 12.03 kB / 433.9 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001836/0.529, allocations: 159.4 kB / 434.1 MB, free: 5.129 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005417/0.5296, allocations: 307.5 kB / 434.4 MB, free: 4.789 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.218e-05/0.5296, allocations: 32.61 kB / 434.4 MB, free: 4.754 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-05/0.5297, allocations: 32 kB / 434.5 MB, free: 4.723 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002208/0.5319, allocations: 0.5658 MB / 435 MB, free: 4.121 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.494e-05/0.532, allocations: 4 kB / 435 MB, free: 4.117 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.538e-05/0.5321, allocations: 16 kB / 435.1 MB, free: 4.102 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.743e-05/0.5321, allocations: 8 kB / 435.1 MB, free: 4.094 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002486/0.5346, allocations: 0.5367 MB / 435.6 MB, free: 3.555 MB / 314.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.004484/0.5391, allocations: 2.619 MB / 438.2 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002482/0.5416, allocations: 484.7 kB / 438.7 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001239/0.5429, allocations: 0.568 MB / 439.3 MB, free: 15.54 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.5429, allocations: 38.56 kB / 439.3 MB, free: 15.49 MB / 330.7 MB Notification: Performance of pre-optimization done (n=30): time 2.004e-06/0.5429, allocations: 0 / 439.3 MB, free: 15.49 MB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.007619/0.5506, allocations: 1.586 MB / 440.9 MB, free: 13.83 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/0.5506, allocations: 55.36 kB / 440.9 MB, free: 13.77 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003676/0.551, allocations: 252.8 kB / 441.2 MB, free: 13.51 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.003e-05/0.5511, allocations: 33.7 kB / 441.2 MB, free: 13.47 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001586/0.5512, allocations: 246.5 kB / 441.5 MB, free: 13.23 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001225/0.5514, allocations: 110.4 kB / 441.6 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.083e-05/0.5514, allocations: 12 kB / 441.6 MB, free: 13.11 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.5516, allocations: 330.8 kB / 441.9 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007096/0.5523, allocations: 144.8 kB / 442 MB, free: 12.63 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007691/0.5531, allocations: 247.4 kB / 442.3 MB, free: 12.35 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007493/0.5538, allocations: 179.9 kB / 442.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.5538, allocations: 0 / 442.5 MB, free: 12.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00214/0.556, allocations: 0.5191 MB / 443 MB, free: 11.64 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.458e-05/0.556, allocations: 8 kB / 443 MB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.5561, allocations: 4 kB / 443 MB, free: 11.63 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000827/0.5569, allocations: 118.8 kB / 443.1 MB, free: 11.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000663/0.5576, allocations: 91.83 kB / 443.2 MB, free: 11.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002493/0.5601, allocations: 2.428 MB / 445.6 MB, free: 8.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006499/0.5608, allocations: 56.11 kB / 445.7 MB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.925e-05/0.5608, allocations: 19.98 kB / 445.7 MB, free: 8.723 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002731/0.5611, allocations: 169.7 kB / 445.9 MB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.966e-05/0.5612, allocations: 27.72 kB / 445.9 MB, free: 8.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003093/0.5643, allocations: 1.371 MB / 447.3 MB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.913e-05/0.5644, allocations: 19.97 kB / 447.3 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.5644, allocations: 0 / 447.3 MB, free: 7.113 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002683/0.5671, allocations: 1.456 MB / 448.7 MB, free: 5.566 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004186/0.5713, allocations: 2.143 MB / 450.9 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.294e-06/0.5713, allocations: 0 / 450.9 MB, free: 3.355 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000753/0.5721, allocations: 107.9 kB / 451 MB, free: 3.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005695/0.5727, allocations: 80.69 kB / 451.1 MB, free: 3.168 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.549e-05/0.5727, allocations: 8 kB / 451.1 MB, free: 3.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000463/0.5732, allocations: 0.5914 MB / 451.7 MB, free: 2.543 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.5732, allocations: 3.938 kB / 451.7 MB, free: 2.539 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002982/0.5762, allocations: 1.309 MB / 453 MB, free: 1.207 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/0.5764, allocations: 160.2 kB / 453.1 MB, free: 1.031 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.939e-05/0.5765, allocations: 8 kB / 453.1 MB, free: 1.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005569/0.5771, allocations: 51.88 kB / 453.2 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001262/0.5772, allocations: 35.94 kB / 453.2 MB, free: 0.9375 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.177e-05/0.5773, allocations: 11.98 kB / 453.2 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003605/0.5777, allocations: 231.1 kB / 453.5 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5777, allocations: 0 / 453.5 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003109/0.5808, allocations: 0.859 MB / 454.3 MB, free: 15.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.005474/0.5863, allocations: 0.9754 MB / 455.3 MB, free: 14.86 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002228/0.5886, allocations: 0.6713 MB / 456 MB, free: 14.17 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.5886, allocations: 0 / 456 MB, free: 14.17 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/0.5897, allocations: 436.6 kB / 456.4 MB, free: 13.75 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001768/0.5915, allocations: 176.9 kB / 456.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003074/0.5946, allocations: 1.584 MB / 458.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.5951, allocations: 0.8844 MB / 459 MB, free: 11.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.5953, allocations: 35.44 kB / 459.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of SimCode: time 9.02e-07/0.5953, allocations: 3.938 kB / 459.1 MB, free: 11.02 MB / 346.7 MB Notification: Performance of Templates: time 0.09554/0.6908, allocations: 27.09 MB / 486.2 MB, free: 15.89 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/Tests/MediaTestModels/Water/WaterIF97_ph/WaterIF97_ph.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches