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.001143/0.001143, allocations: 108.5 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.181/1.181, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 59.91 kB / 306.3 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08483/0.08603, allocations: 50.54 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01617/0.1022, allocations: 14.28 MB / 371.2 MB, free: 88 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1606/0.2629, allocations: 16.6 MB / 387.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.2631, allocations: 1.094 kB / 387.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003363/0.2635, allocations: 76.23 kB / 387.8 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002807/0.2637, allocations: 108.9 kB / 387.9 MB, free: 4.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01404/0.2778, allocations: 4.731 MB / 392.7 MB, free: 2.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004847/0.2783, allocations: 369.1 kB / 393 MB, free: 2.246 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.004e-05/0.2784, allocations: 15.8 kB / 393.1 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005195/0.2789, allocations: 211.4 kB / 393.3 MB, free: 2.148 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.2791, allocations: 109.5 kB / 393.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.2791, allocations: 10.62 kB / 393.4 MB, free: 2.098 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01258/0.2917, allocations: 6.685 MB / 400.1 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.2919, allocations: 44.61 kB / 400.1 MB, free: 14.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002148/0.2921, allocations: 98.11 kB / 400.2 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008341/0.3004, allocations: 3.937 MB / 404.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3005, allocations: 0 / 404.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3005, allocations: 3.938 kB / 404.1 MB, free: 12.17 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.3005, allocations: 0 / 404.1 MB, free: 12.17 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.003068/0.3036, allocations: 0.9858 MB / 405.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.3036, allocations: 9.875 kB / 405.1 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.695e-05/0.3037, allocations: 58.48 kB / 405.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001439/0.3052, allocations: 178.5 kB / 405.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.3055, allocations: 256.6 kB / 405.6 MB, free: 11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/0.3055, allocations: 17.97 kB / 405.6 MB, free: 10.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.417e-05/0.3056, allocations: 22.53 kB / 405.7 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003237/0.3089, allocations: 0.9137 MB / 406.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.3089, allocations: 0 / 406.6 MB, free: 10.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.232e-05/0.3089, allocations: 8 kB / 406.6 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3089, allocations: 4 kB / 406.6 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003284/0.3122, allocations: 0.9695 MB / 407.6 MB, free: 9.297 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.00181/0.314, allocations: 1.347 MB / 408.9 MB, free: 7.816 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002592/0.3166, allocations: 0.7322 MB / 409.6 MB, free: 7.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002764/0.3169, allocations: 160.8 kB / 409.8 MB, free: 6.914 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07121/0.3881, allocations: 42 MB / 451.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.3882, allocations: 30.56 kB / 451.8 MB, free: 7.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.064e-06/0.3882, allocations: 4 kB / 451.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005195/0.3934, allocations: 1.374 MB / 453.2 MB, free: 6.117 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.3935, allocations: 55.41 kB / 453.3 MB, free: 6.051 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.004e-05/0.3936, allocations: 113.8 kB / 453.4 MB, free: 5.93 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.102e-05/0.3937, allocations: 33.7 kB / 453.4 MB, free: 5.891 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.031e-05/0.3937, allocations: 112.7 kB / 453.5 MB, free: 5.777 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.3939, allocations: 122.3 kB / 453.6 MB, free: 5.656 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002703/0.3941, allocations: 161.6 kB / 453.8 MB, free: 5.492 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3943, allocations: 330.8 kB / 454.1 MB, free: 5.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006072/0.3949, allocations: 331.8 kB / 454.4 MB, free: 4.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006819/0.3956, allocations: 411.3 kB / 454.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001288/0.3969, allocations: 0.7026 MB / 455.5 MB, free: 3.676 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.3969, allocations: 0 / 455.5 MB, free: 3.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001779/0.3987, allocations: 0.8838 MB / 456.4 MB, free: 2.789 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3987, allocations: 7.984 kB / 456.4 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3987, allocations: 4 kB / 456.4 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.3987, allocations: 7.938 kB / 456.4 MB, free: 2.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006521/0.3994, allocations: 175.7 kB / 456.6 MB, free: 2.598 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.209e-05/0.3994, allocations: 7.938 kB / 456.6 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003964/0.3998, allocations: 43.86 kB / 456.7 MB, free: 2.547 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/0.3999, allocations: 67.92 kB / 456.7 MB, free: 2.48 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.0002254/0.4002, allocations: 139.2 kB / 456.9 MB, free: 2.336 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.4003, allocations: 15.84 kB / 456.9 MB, free: 2.32 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007227/0.4075, allocations: 7.986 MB / 464.9 MB, free: 10.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.69e-05/0.4076, allocations: 27.95 kB / 464.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4076, allocations: 0 / 464.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.4076, allocations: 0 / 464.9 MB, free: 10.29 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002906/0.4105, allocations: 3.6 MB / 468.5 MB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/0.4105, allocations: 0 / 468.5 MB, free: 6.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006509/0.4112, allocations: 111.8 kB / 468.6 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.501e-06/0.4112, allocations: 0 / 468.6 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.73e-05/0.4113, allocations: 15.92 kB / 468.6 MB, free: 6.305 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/0.4113, allocations: 8 kB / 468.6 MB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4113, allocations: 0 / 468.6 MB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002332/0.4136, allocations: 1.838 MB / 470.5 MB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001114/0.4138, allocations: 140.2 kB / 470.6 MB, free: 4.281 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.571e-05/0.4138, allocations: 11.94 kB / 470.6 MB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003166/0.4141, allocations: 23.95 kB / 470.6 MB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.591e-05/0.4142, allocations: 31.95 kB / 470.7 MB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.004e-05/0.4143, allocations: 15.98 kB / 470.7 MB, free: 4.199 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.915e-05/0.4143, allocations: 91.28 kB / 470.8 MB, free: 4.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.498e-06/0.4144, allocations: 0 / 470.8 MB, free: 4.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003045/0.4174, allocations: 0.9915 MB / 471.8 MB, free: 3.117 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.007409/0.4248, allocations: 3.422 MB / 475.2 MB, free: 15.67 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001485/0.4263, allocations: 0.9042 MB / 476.1 MB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.4263, allocations: 4.406 kB / 476.1 MB, free: 14.76 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007113/0.4271, allocations: 0.5908 MB / 476.7 MB, free: 14.17 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000621/0.4277, allocations: 87.8 kB / 476.8 MB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007951/0.4356, allocations: 4.894 MB / 481.7 MB, free: 9.07 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003766/0.436, allocations: 0.8536 MB / 482.5 MB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001812/0.4379, allocations: 1.787 MB / 484.3 MB, free: 6.398 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004605/0.4383, allocations: 215.3 kB / 484.5 MB, free: 6.188 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4383, allocations: 0 / 484.5 MB, free: 6.188 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.416/1.855, allocations: 45.31 MB / 0.5174 GB, free: 8.918 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002226/1.855, allocations: 221.2 kB / 0.5176 GB, free: 8.652 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.334/6.189, allocations: 3.938 kB / 0.5176 GB, free: 8.648 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