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.001606/0.001606, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00191/0.00191, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.89 kB / 360.6 MB, free: 11.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2369, allocations: 50.53 MB / 411.1 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01533/0.2522, allocations: 13.45 MB / 424.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01631/0.2686, allocations: 15.56 MB / 440.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001505/0.2688, allocations: 0 / 440.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000359/0.2692, allocations: 87.48 kB / 440.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003436/0.2695, allocations: 111.2 kB / 440.3 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01506/0.2846, allocations: 5.982 MB / 446.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005253/0.2852, allocations: 342.5 kB / 446.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.995e-05/0.2852, allocations: 13.67 kB / 446.6 MB, free: 12.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005173/0.2858, allocations: 235 kB / 446.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.2859, allocations: 107.6 kB / 446.9 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.577e-05/0.286, allocations: 16 kB / 447 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01195/0.2979, allocations: 6.763 MB / 453.7 MB, free: 5.848 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.286e-05/0.2981, allocations: 43.83 kB / 453.8 MB, free: 5.805 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001667/0.2982, allocations: 103.6 kB / 453.9 MB, free: 5.703 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007649/0.3059, allocations: 3.921 MB / 457.8 MB, free: 1.773 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3059, allocations: 0 / 457.8 MB, free: 1.773 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.3059, allocations: 4 kB / 457.8 MB, free: 1.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.125e-06/0.3059, allocations: 0 / 457.8 MB, free: 1.77 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.002793/0.3087, allocations: 1.018 MB / 458.8 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.15e-05/0.3088, allocations: 20.02 kB / 458.8 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.184e-05/0.3089, allocations: 50.73 kB / 458.9 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001441/0.3103, allocations: 176.6 kB / 459.1 MB, free: 460 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003783/0.3107, allocations: 256.1 kB / 459.3 MB, free: 164 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.3108, allocations: 20.8 kB / 459.3 MB, free: 144 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.603e-05/0.3108, allocations: 27.88 kB / 459.4 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003178/0.314, allocations: 0.9051 MB / 460.3 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.314, allocations: 0 / 460.3 MB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.3141, allocations: 12 kB / 460.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.3141, allocations: 4 kB / 460.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003272/0.3174, allocations: 0.9695 MB / 461.2 MB, free: 14.2 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.00168/0.3191, allocations: 1.354 MB / 462.6 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.3217, allocations: 0.7325 MB / 463.3 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002756/0.322, allocations: 160.7 kB / 463.5 MB, free: 11.81 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08088/0.4028, allocations: 42.18 MB / 0.4938 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/0.4029, allocations: 34.56 kB / 0.4938 GB, free: 12.22 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.995e-06/0.403, allocations: 0 / 0.4938 GB, free: 12.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005746/0.4087, allocations: 1.358 MB / 0.4952 GB, free: 10.86 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.4088, allocations: 59.41 kB / 0.4952 GB, free: 10.79 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.4089, allocations: 117.8 kB / 0.4953 GB, free: 10.66 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.409, allocations: 29.7 kB / 0.4954 GB, free: 10.63 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.745e-05/0.4091, allocations: 120.8 kB / 0.4955 GB, free: 10.51 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.4093, allocations: 122.9 kB / 0.4956 GB, free: 10.39 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002998/0.4096, allocations: 161.6 kB / 0.4958 GB, free: 10.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4098, allocations: 326.8 kB / 0.4961 GB, free: 9.895 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006673/0.4104, allocations: 343.6 kB / 0.4964 GB, free: 9.559 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007434/0.4112, allocations: 411.5 kB / 0.4968 GB, free: 9.129 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001449/0.4127, allocations: 0.7105 MB / 0.4975 GB, free: 8.391 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.322e-06/0.4127, allocations: 4 kB / 0.4975 GB, free: 8.387 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00201/0.4147, allocations: 0.8719 MB / 0.4983 GB, free: 7.508 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/0.4147, allocations: 7.938 kB / 0.4983 GB, free: 7.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.244e-05/0.4148, allocations: 7.938 kB / 0.4983 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.61e-05/0.4148, allocations: 4 kB / 0.4984 GB, free: 7.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006836/0.4155, allocations: 180 kB / 0.4985 GB, free: 7.312 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.884e-05/0.4155, allocations: 4 kB / 0.4985 GB, free: 7.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003855/0.4159, allocations: 31.84 kB / 0.4986 GB, free: 7.277 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.416, allocations: 63.92 kB / 0.4986 GB, free: 7.215 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.0002564/0.4163, allocations: 137.7 kB / 0.4987 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.4165, allocations: 19.84 kB / 0.4988 GB, free: 7.051 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007439/0.4239, allocations: 7.982 MB / 0.5066 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.322e-05/0.424, allocations: 27.95 kB / 0.5066 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/0.424, allocations: 0 / 0.5066 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.424, allocations: 7.984 kB / 0.5066 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003025/0.427, allocations: 3.596 MB / 0.5101 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.983e-06/0.427, allocations: 0 / 0.5101 GB, free: 11.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006369/0.4277, allocations: 111.8 kB / 0.5102 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.4277, allocations: 11.94 kB / 0.5102 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.978e-05/0.4277, allocations: 11.98 kB / 0.5102 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.4278, allocations: 0 / 0.5102 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4278, allocations: 0 / 0.5102 GB, free: 11.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002485/0.4303, allocations: 1.839 MB / 0.512 GB, free: 9.164 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/0.4304, allocations: 144.6 kB / 0.5122 GB, free: 9.004 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.002e-05/0.4304, allocations: 15.92 kB / 0.5122 GB, free: 8.988 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002909/0.4307, allocations: 12 kB / 0.5122 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.4308, allocations: 27.95 kB / 0.5122 GB, free: 8.949 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.94e-05/0.4309, allocations: 15.98 kB / 0.5122 GB, free: 8.934 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.398e-05/0.4309, allocations: 91.22 kB / 0.5123 GB, free: 8.844 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.431, allocations: 4 kB / 0.5123 GB, free: 8.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002918/0.4339, allocations: 0.998 MB / 0.5133 GB, free: 7.84 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.00737/0.4413, allocations: 3.447 MB / 0.5167 GB, free: 4.363 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001537/0.4428, allocations: 0.9043 MB / 0.5176 GB, free: 3.461 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.4428, allocations: 4.062 kB / 0.5176 GB, free: 3.457 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007301/0.4436, allocations: 0.5869 MB / 0.5181 GB, free: 2.871 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006567/0.4442, allocations: 84.14 kB / 0.5182 GB, free: 2.789 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007683/0.4519, allocations: 4.691 MB / 0.5228 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000374/0.4523, allocations: 0.8575 MB / 0.5236 GB, free: 13.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001832/0.4542, allocations: 1.788 MB / 0.5254 GB, free: 11.29 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004452/0.4546, allocations: 215.3 kB / 0.5256 GB, free: 11.07 MB / 462.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4546, allocations: 0 / 0.5256 GB, free: 11.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2581/0.7128, allocations: 45.7 MB / 0.5702 GB, free: 103.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.93, allocations: 8.484 kB / 0.5702 GB, free: 103.2 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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