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.0008342/0.0008342, allocations: 93.38 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009648/0.0009647, allocations: 207.8 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 227.7 MB / 246.8 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001839/0.0001839, allocations: 4 kB / 307.8 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07803/0.07823, allocations: 51.53 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1593/0.2376, allocations: 13.76 MB / 373.1 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01398/0.2516, allocations: 16.33 MB / 389.5 MB, free: 4.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001388/0.2518, allocations: 1.125 kB / 389.5 MB, free: 4.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002861/0.252, allocations: 74.67 kB / 389.5 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002905/0.2523, allocations: 104.5 kB / 389.6 MB, free: 4.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01208/0.2644, allocations: 4.719 MB / 394.4 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004135/0.2649, allocations: 369.8 kB / 394.7 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.078e-05/0.2649, allocations: 15.98 kB / 394.7 MB, free: 2.488 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003637/0.2653, allocations: 215.7 kB / 394.9 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.2654, allocations: 101.7 kB / 395 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.2655, allocations: 8.625 kB / 395 MB, free: 2.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01119/0.2766, allocations: 6.693 MB / 401.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.2e-05/0.2768, allocations: 41.36 kB / 401.8 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.2769, allocations: 119.4 kB / 401.9 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005601/0.2825, allocations: 3.923 MB / 405.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2825, allocations: 0 / 405.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2826, allocations: 0 / 405.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.389e-06/0.2826, allocations: 0 / 405.8 MB, free: 12.36 MB / 318.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.001905/0.2845, allocations: 0.9467 MB / 406.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.2845, allocations: 8.719 kB / 406.8 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.312e-05/0.2846, allocations: 58.08 kB / 406.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.2858, allocations: 179.3 kB / 407 MB, free: 11.5 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.2861, allocations: 269.1 kB / 407.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.2861, allocations: 13.41 kB / 407.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.2861, allocations: 22.16 kB / 407.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002844/0.289, allocations: 0.9257 MB / 408.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.289, allocations: 3.938 kB / 408.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.2891, allocations: 8 kB / 408.2 MB, free: 10.26 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.2891, allocations: 8 kB / 408.3 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002982/0.2921, allocations: 0.9813 MB / 409.2 MB, free: 9.27 MB / 318.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.001385/0.2935, allocations: 1.346 MB / 410.6 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.2958, allocations: 0.7356 MB / 411.3 MB, free: 7.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002553/0.2961, allocations: 164.8 kB / 411.5 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07296/0.369, allocations: 42.36 MB / 453.8 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.372e-05/0.3691, allocations: 35.44 kB / 453.9 MB, free: 7.105 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.3691, allocations: 4 kB / 453.9 MB, free: 7.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.004878/0.374, allocations: 1.378 MB / 455.3 MB, free: 5.719 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.21e-05/0.3741, allocations: 55.41 kB / 455.3 MB, free: 5.652 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.471e-05/0.3741, allocations: 117.8 kB / 455.4 MB, free: 5.527 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.097e-05/0.3742, allocations: 33.7 kB / 455.5 MB, free: 5.488 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.3743, allocations: 112.7 kB / 455.6 MB, free: 5.375 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.3744, allocations: 118.2 kB / 455.7 MB, free: 5.258 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-05/0.3745, allocations: 37.7 kB / 455.7 MB, free: 5.215 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.013e-05/0.3746, allocations: 330.8 kB / 456 MB, free: 4.883 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005685/0.3752, allocations: 343.8 kB / 456.4 MB, free: 4.547 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006055/0.3758, allocations: 419.3 kB / 456.8 MB, free: 4.109 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.377, allocations: 0.7104 MB / 457.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.377, allocations: 384 / 457.5 MB, free: 3.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001534/0.3785, allocations: 0.8761 MB / 458.4 MB, free: 2.488 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3785, allocations: 11.98 kB / 458.4 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3786, allocations: 0 / 458.4 MB, free: 2.477 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.3786, allocations: 12.12 kB / 458.4 MB, free: 2.465 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000597/0.3792, allocations: 183.8 kB / 458.6 MB, free: 2.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/0.3792, allocations: 7.938 kB / 458.6 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003781/0.3796, allocations: 39.67 kB / 458.6 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.702e-05/0.3797, allocations: 71.3 kB / 458.7 MB, free: 2.172 MB / 366.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.0002103/0.3799, allocations: 146.8 kB / 458.8 MB, free: 2.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.889e-05/0.38, allocations: 19.8 kB / 458.9 MB, free: 2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007164/0.3872, allocations: 7.982 MB / 466.8 MB, free: 10 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.007e-05/0.3872, allocations: 27.95 kB / 466.9 MB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3872, allocations: 0 / 466.9 MB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.3872, allocations: 0 / 466.9 MB, free: 9.973 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002733/0.39, allocations: 3.6 MB / 470.5 MB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.39, allocations: 0 / 470.5 MB, free: 6.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000588/0.3906, allocations: 107.8 kB / 470.6 MB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.553e-06/0.3906, allocations: 4 kB / 470.6 MB, free: 6.004 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.213e-05/0.3907, allocations: 19.92 kB / 470.6 MB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.3907, allocations: 4 kB / 470.6 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3907, allocations: 0 / 470.6 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.3928, allocations: 1.858 MB / 472.5 MB, free: 4.102 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.657e-05/0.3929, allocations: 148 kB / 472.6 MB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.393, allocations: 15.94 kB / 472.6 MB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002993/0.3933, allocations: 15.98 kB / 472.6 MB, free: 3.906 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.54e-05/0.3934, allocations: 31.95 kB / 472.7 MB, free: 3.875 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.3934, allocations: 19.98 kB / 472.7 MB, free: 3.855 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.15e-05/0.3935, allocations: 95.28 kB / 472.8 MB, free: 3.762 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3935, allocations: 0 / 472.8 MB, free: 3.762 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002512/0.396, allocations: 0.9877 MB / 473.8 MB, free: 2.773 MB / 382.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.006619/0.4026, allocations: 3.427 MB / 477.2 MB, free: 15.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.404, allocations: 0.9121 MB / 478.1 MB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4041, allocations: 4.062 kB / 478.1 MB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006502/0.4047, allocations: 0.5947 MB / 478.7 MB, free: 13.81 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006163/0.4053, allocations: 98.41 kB / 478.8 MB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006851/0.4122, allocations: 4.971 MB / 483.8 MB, free: 8.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003649/0.4126, allocations: 0.8536 MB / 484.6 MB, free: 7.742 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001776/0.4144, allocations: 1.783 MB / 486.4 MB, free: 5.953 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004334/0.4148, allocations: 215.3 kB / 486.6 MB, free: 5.742 MB / 398.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4148, allocations: 4 kB / 486.6 MB, free: 5.738 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06192/0.4767, allocations: 45.14 MB / 0.5193 GB, free: 8.664 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001995/0.477, allocations: 209.7 kB / 0.5195 GB, free: 8.406 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.619/4.096, allocations: 4.062 kB / 0.5195 GB, free: 8.402 MB / 446.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