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.WaterIF97OnePhase_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: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008587/0.0008587, allocations: 175 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.197/1.197, allocations: 205.4 MB / 222.9 MB, free: 8.941 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.0006998/0.0006999, allocations: 90.41 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003038/0.0003038, allocations: 12 kB / 327.6 MB, free: 15.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.222/0.2224, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.02284/0.2452, allocations: 30.22 MB / 405.4 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.257, allocations: 14.64 MB / 420.1 MB, free: 3.742 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003602/0.2574, allocations: 7.938 kB / 420.1 MB, free: 3.734 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006422/0.258, allocations: 218.8 kB / 420.3 MB, free: 3.52 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000568/0.2586, allocations: 334.2 kB / 420.6 MB, free: 3.191 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01269/0.2713, allocations: 4.452 MB / 425.1 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001463/0.2728, allocations: 1.215 MB / 426.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.273, allocations: 86.03 kB / 426.4 MB, free: 13.43 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005945/0.279, allocations: 3.321 MB / 429.7 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004006/0.2794, allocations: 294.8 kB / 430 MB, free: 9.82 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.2795, allocations: 20 kB / 430 MB, free: 9.801 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01098/0.2904, allocations: 5.814 MB / 435.8 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.2907, allocations: 91.62 kB / 435.9 MB, free: 3.891 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000361/0.2911, allocations: 217 kB / 436.1 MB, free: 3.672 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004604/0.2957, allocations: 2.596 MB / 438.7 MB, free: 1.07 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.2957, allocations: 0 / 438.7 MB, free: 1.07 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2957, allocations: 0 / 438.7 MB, free: 1.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.253e-06/0.2957, allocations: 0 / 438.7 MB, free: 1.07 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.002081/0.2978, allocations: 0.9086 MB / 439.6 MB, free: 116 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.2979, allocations: 8.031 kB / 439.6 MB, free: 108 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.734e-05/0.2979, allocations: 74.72 kB / 439.7 MB, free: 24 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00123/0.2992, allocations: 164.3 kB / 439.8 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004127/0.2996, allocations: 323.5 kB / 440.2 MB, free: 15.51 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.506e-05/0.2996, allocations: 25.03 kB / 440.2 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.564e-05/0.2997, allocations: 32.12 kB / 440.2 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.3009, allocations: 0.5229 MB / 440.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.3009, allocations: 0 / 440.7 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.443e-05/0.301, allocations: 16 kB / 440.8 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.301, allocations: 12 kB / 440.8 MB, free: 14.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005869/0.3016, allocations: 325.8 kB / 441.1 MB, free: 14.54 MB / 330.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.002866/0.3045, allocations: 2.561 MB / 443.6 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005221/0.305, allocations: 277.2 kB / 443.9 MB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.3052, allocations: 120.7 kB / 444 MB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06053/0.3657, allocations: 31.2 MB / 475.2 MB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.341e-05/0.3658, allocations: 34.55 kB / 475.3 MB, free: 8.531 MB / 362.7 MB Notification: Performance of pre-optimization done (n=27): time 2.184e-06/0.3658, allocations: 0 / 475.3 MB, free: 8.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.003371/0.3692, allocations: 1.215 MB / 476.5 MB, free: 7.238 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.3693, allocations: 55.41 kB / 476.5 MB, free: 7.172 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002899/0.3696, allocations: 258.6 kB / 476.8 MB, free: 6.91 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.189e-05/0.3696, allocations: 33.7 kB / 476.8 MB, free: 6.871 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001109/0.3698, allocations: 188 kB / 477 MB, free: 6.684 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.893e-05/0.3698, allocations: 114.4 kB / 477.1 MB, free: 6.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.699e-05/0.3699, allocations: 4 kB / 477.1 MB, free: 6.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.37, allocations: 346.7 kB / 477.5 MB, free: 6.219 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.3702, allocations: 92.84 kB / 477.6 MB, free: 6.129 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.3705, allocations: 214.9 kB / 477.8 MB, free: 5.867 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005133/0.371, allocations: 331.1 kB / 478.1 MB, free: 5.492 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.371, allocations: 4 kB / 478.1 MB, free: 5.488 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007886/0.3718, allocations: 410.6 kB / 478.5 MB, free: 5.074 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.83e-05/0.3719, allocations: 8.5 kB / 478.5 MB, free: 5.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.165e-05/0.3719, allocations: 8 kB / 478.5 MB, free: 5.059 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002999/0.3722, allocations: 65.61 kB / 478.6 MB, free: 4.988 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003564/0.3726, allocations: 87.84 kB / 478.7 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.3742, allocations: 2.434 MB / 481.1 MB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.3745, allocations: 27.92 kB / 481.1 MB, free: 2.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.3746, allocations: 19.98 kB / 481.1 MB, free: 2.238 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (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 (45): * Single equations (assignments): 42 * 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: 2 * 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: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002012/0.3748, allocations: 169.8 kB / 481.3 MB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.371e-05/0.3748, allocations: 31.62 kB / 481.3 MB, free: 2.031 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001012/0.3759, allocations: 0.8669 MB / 482.2 MB, free: 1.148 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.08e-05/0.3759, allocations: 7.984 kB / 482.2 MB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-06/0.3759, allocations: 0 / 482.2 MB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008859/0.3768, allocations: 1.045 MB / 483.3 MB, free: 8 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001703/0.3785, allocations: 1.485 MB / 484.7 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.3785, allocations: 7.984 kB / 484.7 MB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002139/0.3787, allocations: 51.92 kB / 484.8 MB, free: 14.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003498/0.3791, allocations: 76.72 kB / 484.9 MB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.3791, allocations: 8 kB / 484.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003764/0.3795, allocations: 0.5914 MB / 485.5 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.3795, allocations: 0 / 485.5 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009298/0.3805, allocations: 0.8274 MB / 486.3 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.3806, allocations: 132.5 kB / 486.4 MB, free: 12.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.607e-05/0.3807, allocations: 11.94 kB / 486.4 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003551/0.381, allocations: 44.03 kB / 486.5 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.131e-05/0.3811, allocations: 19.97 kB / 486.5 MB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.107e-05/0.3811, allocations: 15.98 kB / 486.5 MB, free: 12.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002376/0.3814, allocations: 239.1 kB / 486.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3814, allocations: 0 / 486.8 MB, free: 12.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002388/0.3838, allocations: 0.8551 MB / 487.6 MB, free: 11.52 MB / 378.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: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.005349/0.3891, allocations: 2.232 MB / 489.8 MB, free: 9.254 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001022/0.3902, allocations: 495 kB / 490.3 MB, free: 8.758 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.3902, allocations: 0 / 490.3 MB, free: 8.758 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003715/0.3906, allocations: 244.6 kB / 490.6 MB, free: 8.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.3917, allocations: 172.5 kB / 490.7 MB, free: 8.348 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.3965, allocations: 2.642 MB / 493.4 MB, free: 5.609 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.3969, allocations: 0.825 MB / 494.2 MB, free: 4.754 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002187/0.3971, allocations: 143.4 kB / 494.3 MB, free: 4.617 MB / 378.7 MB Notification: Performance of SimCode: time 1.113e-06/0.3972, allocations: 0 / 494.3 MB, free: 4.617 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.039/5.437, allocations: 23.6 MB / 0.5058 GB, free: 130.6 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_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/WaterIF97OnePhase_ph/WaterIF97OnePhase_ph.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches