Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001055/0.001055, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00116/0.00116, allocations: 201.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.288/1.288, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 59.91 kB / 360.5 MB, free: 11.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2322, allocations: 50.54 MB / 411.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01624/0.2485, allocations: 13.44 MB / 424.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01788/0.2664, allocations: 15.57 MB / 440.1 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002169/0.2667, allocations: 0 / 440.1 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003831/0.2671, allocations: 79.55 kB / 440.2 MB, free: 3.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004073/0.2676, allocations: 115.2 kB / 440.3 MB, free: 3.281 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01678/0.2843, allocations: 5.971 MB / 446.2 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005883/0.285, allocations: 346.5 kB / 446.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.128e-05/0.285, allocations: 13.67 kB / 446.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005989/0.2856, allocations: 235 kB / 446.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002234/0.2859, allocations: 107.6 kB / 446.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.637e-05/0.2859, allocations: 16 kB / 447 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01318/0.2991, allocations: 6.759 MB / 453.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.2992, allocations: 51.75 kB / 453.8 MB, free: 5.797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001649/0.2994, allocations: 99.59 kB / 453.9 MB, free: 5.699 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008281/0.3077, allocations: 3.914 MB / 457.8 MB, free: 1.777 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3077, allocations: 0 / 457.8 MB, free: 1.777 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3077, allocations: 4 kB / 457.8 MB, free: 1.773 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.3078, allocations: 0 / 457.8 MB, free: 1.773 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.002861/0.3106, allocations: 0.9986 MB / 458.8 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3107, allocations: 12.03 kB / 458.8 MB, free: 0.7148 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.386e-05/0.3108, allocations: 50.73 kB / 458.8 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001365/0.3121, allocations: 176.5 kB / 459 MB, free: 496 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.3125, allocations: 260 kB / 459.3 MB, free: 196 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.368e-05/0.3126, allocations: 16.81 kB / 459.3 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.916e-05/0.3126, allocations: 23.94 kB / 459.3 MB, free: 156 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003188/0.3158, allocations: 0.909 MB / 460.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3158, allocations: 0 / 460.2 MB, free: 15.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.135e-05/0.3159, allocations: 15.94 kB / 460.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.3159, allocations: 4 kB / 460.2 MB, free: 15.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003232/0.3191, allocations: 0.9773 MB / 461.2 MB, free: 14.23 MB / 382.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.001676/0.3208, allocations: 1.339 MB / 462.5 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002663/0.3235, allocations: 0.7286 MB / 463.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002572/0.3238, allocations: 156.8 kB / 463.4 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07609/0.3999, allocations: 42.18 MB / 0.4938 GB, free: 12.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.403e-05/0.4, allocations: 38.55 kB / 0.4938 GB, free: 12.26 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.124e-06/0.4, allocations: 0 / 0.4938 GB, free: 12.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005565/0.4055, allocations: 1.358 MB / 0.4951 GB, free: 10.9 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.4057, allocations: 59.41 kB / 0.4952 GB, free: 10.83 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.4058, allocations: 117.8 kB / 0.4953 GB, free: 10.7 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 8.76e-05/0.4059, allocations: 29.7 kB / 0.4953 GB, free: 10.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.406, allocations: 120.7 kB / 0.4954 GB, free: 10.55 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.4062, allocations: 110.3 kB / 0.4955 GB, free: 10.44 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003768/0.4066, allocations: 165.5 kB / 0.4957 GB, free: 10.27 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.4067, allocations: 326.8 kB / 0.496 GB, free: 9.941 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005993/0.4073, allocations: 347.6 kB / 0.4963 GB, free: 9.602 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006578/0.408, allocations: 399.5 kB / 0.4967 GB, free: 9.184 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.4093, allocations: 0.7144 MB / 0.4974 GB, free: 8.441 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.888e-06/0.4093, allocations: 0 / 0.4974 GB, free: 8.441 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001772/0.4111, allocations: 0.8718 MB / 0.4983 GB, free: 7.562 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.4111, allocations: 7.938 kB / 0.4983 GB, free: 7.555 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.4111, allocations: 7.938 kB / 0.4983 GB, free: 7.547 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.863e-05/0.4112, allocations: 4.25 kB / 0.4983 GB, free: 7.543 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006807/0.4119, allocations: 179.7 kB / 0.4985 GB, free: 7.367 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.4119, allocations: 4.375 kB / 0.4985 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003754/0.4123, allocations: 39.67 kB / 0.4985 GB, free: 7.324 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001066/0.4124, allocations: 63.92 kB / 0.4986 GB, free: 7.262 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002386/0.4126, allocations: 141.7 kB / 0.4987 GB, free: 7.113 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.4128, allocations: 15.84 kB / 0.4987 GB, free: 7.098 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007429/0.4202, allocations: 7.974 MB / 0.5065 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.753e-05/0.4203, allocations: 27.95 kB / 0.5065 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.4203, allocations: 0 / 0.5065 GB, free: 15.08 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.4203, allocations: 4 kB / 0.5065 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002904/0.4232, allocations: 3.6 MB / 0.51 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.402e-06/0.4232, allocations: 0 / 0.51 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006653/0.4239, allocations: 115.8 kB / 0.5102 GB, free: 11.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.029e-05/0.4239, allocations: 7.938 kB / 0.5102 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.667e-05/0.424, allocations: 11.98 kB / 0.5102 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.424, allocations: 0 / 0.5102 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.424, allocations: 0 / 0.5102 GB, free: 11.08 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002316/0.4263, allocations: 1.842 MB / 0.512 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.146e-05/0.4264, allocations: 140.2 kB / 0.5121 GB, free: 9.059 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.68e-05/0.4265, allocations: 11.94 kB / 0.5121 GB, free: 9.047 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003198/0.4268, allocations: 15.98 kB / 0.5121 GB, free: 9.031 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.232e-05/0.4269, allocations: 23.97 kB / 0.5122 GB, free: 9.008 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.4269, allocations: 15.98 kB / 0.5122 GB, free: 8.992 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.916e-05/0.427, allocations: 99.14 kB / 0.5123 GB, free: 8.895 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.427, allocations: 4 kB / 0.5123 GB, free: 8.891 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002532/0.4295, allocations: 0.9838 MB / 0.5132 GB, free: 7.906 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 15 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006772/0.4363, allocations: 3.432 MB / 0.5166 GB, free: 4.449 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.4379, allocations: 0.9082 MB / 0.5175 GB, free: 3.543 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4379, allocations: 0 / 0.5175 GB, free: 3.543 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007382/0.4387, allocations: 0.5869 MB / 0.518 GB, free: 2.957 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006079/0.4393, allocations: 94.66 kB / 0.5181 GB, free: 2.867 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007541/0.4468, allocations: 4.658 MB / 0.5227 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.4473, allocations: 0.8497 MB / 0.5235 GB, free: 13.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001764/0.449, allocations: 1.787 MB / 0.5253 GB, free: 11.41 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004245/0.4495, allocations: 219.3 kB / 0.5255 GB, free: 11.19 MB / 462.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4495, allocations: 0 / 0.5255 GB, free: 11.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2508/0.7003, allocations: 46.01 MB / 0.5704 GB, free: 102.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/11.25, allocations: 4.547 kB / 0.5704 GB, free: 102.9 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches