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.001223/0.001223, allocations: 122.8 kB / 17.79 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.00128/0.00128, allocations: 201.2 kB / 18.74 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.349/1.349, allocations: 227.4 MB / 247 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 68.09 kB / 360.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2211, allocations: 50.55 MB / 411.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01584/0.237, allocations: 13.44 MB / 424.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01735/0.2544, allocations: 15.55 MB / 440.2 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.2546, allocations: 0 / 440.2 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003247/0.2549, allocations: 83.5 kB / 440.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002974/0.2552, allocations: 107.2 kB / 440.3 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0137/0.269, allocations: 5.982 MB / 446.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004415/0.2694, allocations: 342.5 kB / 446.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.141e-05/0.2695, allocations: 17.67 kB / 446.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004407/0.2699, allocations: 227 kB / 446.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.2701, allocations: 115.5 kB / 447 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.132e-05/0.2701, allocations: 16 kB / 447 MB, free: 12.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01187/0.282, allocations: 6.755 MB / 453.8 MB, free: 5.762 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.16e-05/0.2821, allocations: 43.83 kB / 453.8 MB, free: 5.719 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.2823, allocations: 111.6 kB / 453.9 MB, free: 5.609 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006938/0.2892, allocations: 3.921 MB / 457.9 MB, free: 1.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.121e-06/0.2892, allocations: 3.984 kB / 457.9 MB, free: 1.676 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2892, allocations: 0 / 457.9 MB, free: 1.676 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.2893, allocations: 0 / 457.9 MB, free: 1.676 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.002271/0.2915, allocations: 1.018 MB / 458.9 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2916, allocations: 8.031 kB / 458.9 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.316e-05/0.2916, allocations: 62.73 kB / 458.9 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/0.293, allocations: 180.6 kB / 459.1 MB, free: 360 kB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.2934, allocations: 256 kB / 459.4 MB, free: 64 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.2934, allocations: 20.8 kB / 459.4 MB, free: 44 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.957e-05/0.2934, allocations: 27.94 kB / 459.4 MB, free: 16 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002961/0.2964, allocations: 0.9012 MB / 460.3 MB, free: 15.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.364e-05/0.2964, allocations: 3.938 kB / 460.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.083e-05/0.2965, allocations: 12 kB / 460.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.084e-06/0.2965, allocations: 4 kB / 460.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003087/0.2996, allocations: 0.9657 MB / 461.3 MB, free: 14.11 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.001585/0.3012, allocations: 1.347 MB / 462.7 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002435/0.3036, allocations: 0.7325 MB / 463.4 MB, free: 11.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002678/0.3039, allocations: 156.8 kB / 463.5 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.082/0.3859, allocations: 42.18 MB / 0.4939 GB, free: 12.17 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.011e-05/0.386, allocations: 34.55 kB / 0.4939 GB, free: 12.13 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.386, allocations: 3.938 kB / 0.4939 GB, free: 12.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.00512/0.3911, allocations: 1.355 MB / 0.4952 GB, free: 10.77 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.495e-05/0.3912, allocations: 55.41 kB / 0.4953 GB, free: 10.7 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3913, allocations: 125.8 kB / 0.4954 GB, free: 10.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.674e-05/0.3914, allocations: 33.7 kB / 0.4954 GB, free: 10.53 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.795e-05/0.3915, allocations: 116.8 kB / 0.4955 GB, free: 10.41 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/0.3916, allocations: 122.9 kB / 0.4957 GB, free: 10.29 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002964/0.3919, allocations: 165.5 kB / 0.4958 GB, free: 10.12 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3921, allocations: 326.8 kB / 0.4961 GB, free: 9.793 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006473/0.3927, allocations: 343.6 kB / 0.4965 GB, free: 9.457 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007331/0.3934, allocations: 403.5 kB / 0.4968 GB, free: 9.035 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001356/0.3948, allocations: 0.7105 MB / 0.4975 GB, free: 8.297 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.3948, allocations: 4 kB / 0.4975 GB, free: 8.293 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001864/0.3967, allocations: 0.8758 MB / 0.4984 GB, free: 7.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.3967, allocations: 15.88 kB / 0.4984 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.3967, allocations: 0 / 0.4984 GB, free: 7.395 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.3968, allocations: 4 kB / 0.4984 GB, free: 7.391 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006467/0.3974, allocations: 171.8 kB / 0.4986 GB, free: 7.223 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/0.3974, allocations: 16.17 kB / 0.4986 GB, free: 7.207 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003123/0.3978, allocations: 31.83 kB / 0.4986 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001222/0.3979, allocations: 67.92 kB / 0.4987 GB, free: 7.109 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.0002243/0.3981, allocations: 137.7 kB / 0.4988 GB, free: 6.969 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.3983, allocations: 23.84 kB / 0.4988 GB, free: 6.945 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008334/0.4066, allocations: 7.97 MB / 0.5066 GB, free: 14.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.45e-05/0.4067, allocations: 27.91 kB / 0.5067 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.4067, allocations: 3.984 kB / 0.5067 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.4067, allocations: 0 / 0.5067 GB, free: 14.93 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003368/0.4101, allocations: 3.6 MB / 0.5102 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.4101, allocations: 0 / 0.5102 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000622/0.4107, allocations: 111.8 kB / 0.5103 GB, free: 10.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.047e-06/0.4107, allocations: 3.938 kB / 0.5103 GB, free: 10.95 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.218e-05/0.4108, allocations: 15.98 kB / 0.5103 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.661e-06/0.4108, allocations: 4 kB / 0.5103 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.4108, allocations: 0 / 0.5103 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00255/0.4134, allocations: 1.839 MB / 0.5121 GB, free: 9.074 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.4135, allocations: 140.5 kB / 0.5122 GB, free: 8.918 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.718e-05/0.4135, allocations: 11.94 kB / 0.5122 GB, free: 8.906 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.4138, allocations: 20.05 kB / 0.5123 GB, free: 8.887 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.683e-05/0.4139, allocations: 23.97 kB / 0.5123 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.414, allocations: 23.92 kB / 0.5123 GB, free: 8.84 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.62e-05/0.414, allocations: 91.27 kB / 0.5124 GB, free: 8.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4141, allocations: 0 / 0.5124 GB, free: 8.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002594/0.4167, allocations: 1.002 MB / 0.5134 GB, free: 7.746 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.006971/0.4236, allocations: 3.443 MB / 0.5167 GB, free: 4.273 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.4253, allocations: 0.9001 MB / 0.5176 GB, free: 3.371 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4253, allocations: 0.5 kB / 0.5176 GB, free: 3.371 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007765/0.4261, allocations: 0.5947 MB / 0.5182 GB, free: 2.777 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006348/0.4267, allocations: 88.11 kB / 0.5183 GB, free: 2.691 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007564/0.4343, allocations: 4.683 MB / 0.5229 GB, free: 13.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.4348, allocations: 0.8497 MB / 0.5237 GB, free: 13 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002044/0.4368, allocations: 1.788 MB / 0.5254 GB, free: 11.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004581/0.4373, allocations: 219.3 kB / 0.5256 GB, free: 10.99 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4373, allocations: 0 / 0.5256 GB, free: 10.99 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2476/0.6849, allocations: 45.72 MB / 0.5703 GB, free: 103 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/11.31, allocations: 12.17 kB / 0.5703 GB, free: 103 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.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