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.001626/0.001626, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001967/0.001967, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.481/1.481, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 67.88 kB / 360.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2453, allocations: 50.54 MB / 411.1 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01772/0.2631, allocations: 13.44 MB / 424.5 MB, free: 3.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01961/0.2827, allocations: 15.55 MB / 440.1 MB, free: 3.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001676/0.2829, allocations: 4 kB / 440.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000398/0.2834, allocations: 87.53 kB / 440.2 MB, free: 3.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004353/0.2838, allocations: 103.2 kB / 440.3 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01629/0.3001, allocations: 5.978 MB / 446.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005443/0.3007, allocations: 346.5 kB / 446.6 MB, free: 12.91 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.568e-05/0.3008, allocations: 17.67 kB / 446.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005479/0.3013, allocations: 227 kB / 446.8 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001965/0.3015, allocations: 103.6 kB / 446.9 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.3016, allocations: 19.98 kB / 447 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01288/0.3145, allocations: 6.759 MB / 453.7 MB, free: 5.785 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.843e-05/0.3146, allocations: 43.83 kB / 453.8 MB, free: 5.742 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.3148, allocations: 103.6 kB / 453.9 MB, free: 5.641 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008699/0.3235, allocations: 3.921 MB / 457.8 MB, free: 1.711 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3235, allocations: 4 kB / 457.8 MB, free: 1.707 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3235, allocations: 4 kB / 457.8 MB, free: 1.703 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.3236, allocations: 0 / 457.8 MB, free: 1.703 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.003014/0.3266, allocations: 1.018 MB / 458.8 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.3266, allocations: 12.03 kB / 458.8 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.077e-05/0.3267, allocations: 62.72 kB / 458.9 MB, free: 0.5508 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001416/0.3282, allocations: 172.6 kB / 459 MB, free: 392 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.3285, allocations: 260.1 kB / 459.3 MB, free: 92 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.347e-05/0.3285, allocations: 16.81 kB / 459.3 MB, free: 76 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.792e-05/0.3286, allocations: 31.86 kB / 459.3 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003308/0.3319, allocations: 0.9012 MB / 460.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.332, allocations: 0 / 460.3 MB, free: 15.12 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.332, allocations: 12 kB / 460.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.332, allocations: 7.938 kB / 460.3 MB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003418/0.3354, allocations: 0.9695 MB / 461.2 MB, free: 14.13 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.001724/0.3372, allocations: 1.347 MB / 462.6 MB, free: 12.65 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002798/0.34, allocations: 0.7364 MB / 463.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002778/0.3403, allocations: 156.8 kB / 463.5 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08235/0.4226, allocations: 42.18 MB / 0.4938 GB, free: 12.2 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.108e-05/0.4227, allocations: 30.56 kB / 0.4938 GB, free: 12.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.795e-06/0.4227, allocations: 4 kB / 0.4938 GB, free: 12.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005841/0.4286, allocations: 1.362 MB / 0.4952 GB, free: 10.79 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.035e-05/0.4287, allocations: 55.41 kB / 0.4952 GB, free: 10.73 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001275/0.4288, allocations: 117.8 kB / 0.4953 GB, free: 10.6 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.287e-05/0.4289, allocations: 33.7 kB / 0.4954 GB, free: 10.56 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.693e-05/0.429, allocations: 120.8 kB / 0.4955 GB, free: 10.44 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001543/0.4292, allocations: 123 kB / 0.4956 GB, free: 10.32 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002893/0.4295, allocations: 161.6 kB / 0.4957 GB, free: 10.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.4296, allocations: 326.8 kB / 0.4961 GB, free: 9.828 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000668/0.4303, allocations: 339.6 kB / 0.4964 GB, free: 9.496 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007616/0.431, allocations: 411.5 kB / 0.4968 GB, free: 9.066 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.4325, allocations: 0.7066 MB / 0.4975 GB, free: 8.332 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.4325, allocations: 0 / 0.4975 GB, free: 8.332 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001926/0.4344, allocations: 0.8798 MB / 0.4983 GB, free: 7.445 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.4345, allocations: 7.938 kB / 0.4983 GB, free: 7.438 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.4345, allocations: 7.938 kB / 0.4983 GB, free: 7.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.4345, allocations: 4 kB / 0.4983 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007352/0.4353, allocations: 175.8 kB / 0.4985 GB, free: 7.254 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.4353, allocations: 7.984 kB / 0.4985 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004089/0.4357, allocations: 28.22 kB / 0.4985 GB, free: 7.219 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000116/0.4358, allocations: 76.11 kB / 0.4986 GB, free: 7.145 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.0002745/0.4361, allocations: 137.7 kB / 0.4987 GB, free: 7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001646/0.4363, allocations: 19.84 kB / 0.4988 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00842/0.4447, allocations: 7.97 MB / 0.5066 GB, free: 14.99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-05/0.4448, allocations: 35.95 kB / 0.5066 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4448, allocations: 0 / 0.5066 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.4448, allocations: 3.984 kB / 0.5066 GB, free: 14.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0035/0.4483, allocations: 3.596 MB / 0.5101 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4484, allocations: 0 / 0.5101 GB, free: 11.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007098/0.4491, allocations: 115.8 kB / 0.5102 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.687e-06/0.4491, allocations: 3.938 kB / 0.5102 GB, free: 10.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.06e-05/0.4492, allocations: 8 kB / 0.5102 GB, free: 10.97 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.4492, allocations: 3.984 kB / 0.5102 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.4492, allocations: 4 kB / 0.5102 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002637/0.4518, allocations: 1.839 MB / 0.512 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.452, allocations: 140.5 kB / 0.5122 GB, free: 8.945 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.211e-05/0.4521, allocations: 15.92 kB / 0.5122 GB, free: 8.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003202/0.4524, allocations: 8 kB / 0.5122 GB, free: 8.922 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.4525, allocations: 40 kB / 0.5122 GB, free: 8.883 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.928e-05/0.4526, allocations: 19.98 kB / 0.5122 GB, free: 8.863 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.387e-05/0.4526, allocations: 91.22 kB / 0.5123 GB, free: 8.773 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4526, allocations: 0 / 0.5123 GB, free: 8.773 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003004/0.4557, allocations: 1.002 MB / 0.5133 GB, free: 7.77 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.007718/0.4634, allocations: 3.443 MB / 0.5167 GB, free: 4.297 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.4652, allocations: 0.9 MB / 0.5175 GB, free: 3.398 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.691e-06/0.4653, allocations: 7.938 kB / 0.5176 GB, free: 3.391 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008575/0.4661, allocations: 0.5913 MB / 0.5181 GB, free: 2.801 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006625/0.4668, allocations: 71.92 kB / 0.5182 GB, free: 2.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008519/0.4753, allocations: 4.691 MB / 0.5228 GB, free: 13.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005089/0.4759, allocations: 0.8653 MB / 0.5236 GB, free: 13.01 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00205/0.478, allocations: 1.78 MB / 0.5254 GB, free: 11.23 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000488/0.4785, allocations: 219.3 kB / 0.5256 GB, free: 11.01 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4785, allocations: 0 / 0.5256 GB, free: 11.01 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2733/0.7518, allocations: 45.7 MB / 0.5702 GB, free: 103.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.8, allocations: 15.36 kB / 0.5702 GB, free: 103.1 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.1.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