Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001454/0.00146, allocations: 102.6 kB / 17.72 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001651/0.001651, allocations: 187.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 43.92 kB / 328.1 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08201/0.08323, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.2045/0.2878, allocations: 32.57 MB / 407.3 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01902/0.3069, allocations: 15.73 MB / 423 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005169/0.3075, allocations: 9.375 kB / 423 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001075/0.3086, allocations: 267.3 kB / 423.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001007/0.3096, allocations: 360.7 kB / 423.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01621/0.3258, allocations: 5.788 MB / 429.4 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001254/0.3271, allocations: 0.9895 MB / 430.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.3273, allocations: 108.4 kB / 430.5 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004616/0.3319, allocations: 2.215 MB / 432.7 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004979/0.3325, allocations: 313.3 kB / 433 MB, free: 5.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.489e-05/0.3325, allocations: 40 kB / 433.1 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01152/0.3441, allocations: 6.064 MB / 439.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.3443, allocations: 111.7 kB / 439.2 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003993/0.3447, allocations: 227.2 kB / 439.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007664/0.3524, allocations: 3.777 MB / 443.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.3524, allocations: 0 / 443.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3525, allocations: 0 / 443.2 MB, free: 11.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.3525, allocations: 0 / 443.2 MB, free: 11.34 MB / 366.1 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.002216/0.3547, allocations: 1.011 MB / 444.2 MB, free: 10.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3547, allocations: 8.031 kB / 444.2 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.28e-05/0.3548, allocations: 70.72 kB / 444.3 MB, free: 10.2 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.3561, allocations: 149.4 kB / 444.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004765/0.3565, allocations: 335.5 kB / 444.8 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.314e-05/0.3566, allocations: 29.03 kB / 444.8 MB, free: 9.656 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.021e-05/0.3566, allocations: 28.38 kB / 444.8 MB, free: 9.629 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.358, allocations: 0.5502 MB / 445.4 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.358, allocations: 7.938 kB / 445.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.779e-05/0.3581, allocations: 16 kB / 445.4 MB, free: 9.016 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.3581, allocations: 12 kB / 445.4 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.3595, allocations: 0.4938 MB / 445.9 MB, free: 8.512 MB / 366.1 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.002926/0.3625, allocations: 2.613 MB / 448.5 MB, free: 5.641 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.3639, allocations: 438.9 kB / 449 MB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004085/0.3643, allocations: 169.5 kB / 449.1 MB, free: 5.035 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007394/0.3651, allocations: 0.5641 MB / 449.7 MB, free: 4.379 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/0.3651, allocations: 34.56 kB / 449.7 MB, free: 4.336 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 2.856e-06/0.3651, allocations: 3.938 kB / 449.7 MB, free: 4.332 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.004589/0.3697, allocations: 1.496 MB / 451.2 MB, free: 2.758 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.3698, allocations: 55.41 kB / 451.3 MB, free: 2.691 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002449/0.37, allocations: 248.9 kB / 451.5 MB, free: 2.438 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.013e-05/0.3701, allocations: 37.7 kB / 451.6 MB, free: 2.395 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.3702, allocations: 184.1 kB / 451.7 MB, free: 2.211 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.045e-05/0.3703, allocations: 122.2 kB / 451.9 MB, free: 2.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.3704, allocations: 74.12 kB / 451.9 MB, free: 2.012 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3705, allocations: 338.8 kB / 452.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003943/0.3709, allocations: 139.3 kB / 452.4 MB, free: 1.539 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004486/0.3714, allocations: 235.4 kB / 452.6 MB, free: 1.266 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008144/0.3722, allocations: 402.9 kB / 453 MB, free: 0.832 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3722, allocations: 0 / 453 MB, free: 0.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001206/0.3735, allocations: 0.5033 MB / 453.5 MB, free: 320 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/0.3735, allocations: 4 kB / 453.5 MB, free: 316 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/0.3735, allocations: 7.938 kB / 453.5 MB, free: 308 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004902/0.374, allocations: 110.7 kB / 453.6 MB, free: 188 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003497/0.3744, allocations: 91.89 kB / 453.7 MB, free: 96 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00181/0.3762, allocations: 2.5 MB / 456.2 MB, free: 13.41 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.3765, allocations: 32 kB / 456.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.3765, allocations: 16 kB / 456.3 MB, free: 13.36 MB / 382.1 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 (fixedMassFlowRate.medium.phase,volume.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 (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,1), (1,1), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001709/0.3767, allocations: 169.4 kB / 456.4 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.502e-05/0.3768, allocations: 35.69 kB / 456.5 MB, free: 13.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001824/0.3786, allocations: 1.317 MB / 457.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/0.3787, allocations: 19.97 kB / 457.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3787, allocations: 0 / 457.8 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001582/0.3803, allocations: 1.421 MB / 459.2 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002539/0.3828, allocations: 2.101 MB / 461.3 MB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.728e-06/0.3828, allocations: 0 / 461.3 MB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003989/0.3832, allocations: 95.86 kB / 461.4 MB, free: 8.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003079/0.3836, allocations: 64.8 kB / 461.5 MB, free: 7.953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.132e-05/0.3836, allocations: 12 kB / 461.5 MB, free: 7.941 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003468/0.3839, allocations: 0.5951 MB / 462.1 MB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.384, allocations: 3.938 kB / 462.1 MB, free: 7.316 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.3857, allocations: 1.28 MB / 463.4 MB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.3859, allocations: 128.3 kB / 463.5 MB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.233e-05/0.3859, allocations: 15.84 kB / 463.5 MB, free: 5.855 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.3862, allocations: 23.97 kB / 463.6 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.936e-05/0.3863, allocations: 39.95 kB / 463.6 MB, free: 5.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.3863, allocations: 15.98 kB / 463.6 MB, free: 5.777 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000235/0.3866, allocations: 231.1 kB / 463.8 MB, free: 5.547 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3866, allocations: 0 / 463.8 MB, free: 5.547 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002169/0.3887, allocations: 0.859 MB / 464.7 MB, free: 4.688 MB / 382.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005736/0.3945, allocations: 2.698 MB / 467.4 MB, free: 1.961 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00131/0.3958, allocations: 0.6472 MB / 468 MB, free: 1.297 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.3958, allocations: 0 / 468 MB, free: 1.297 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006796/0.3965, allocations: 417.3 kB / 468.4 MB, free: 0.8906 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.3977, allocations: 188.1 kB / 468.6 MB, free: 0.7109 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007499/0.4052, allocations: 4.557 MB / 473.2 MB, free: 11.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.4056, allocations: 0.8726 MB / 474.1 MB, free: 11.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003469/0.4059, allocations: 143.8 kB / 474.2 MB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.4062, allocations: 191.4 kB / 474.4 MB, free: 10.76 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4062, allocations: 0 / 474.4 MB, free: 10.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0749/0.4811, allocations: 41.67 MB / 0.504 GB, free: 0.9688 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.09, allocations: 11.94 kB / 0.504 GB, free: 0.957 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches