Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009026/0.0009026, allocations: 193 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.204/1.204, allocations: 226.5 MB / 244.7 MB, free: 8.105 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006803/0.0006803, allocations: 96.31 kB / 296.7 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002077/0.0002077, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1772/0.1774, allocations: 51.29 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.008781/0.1862, allocations: 12.43 MB / 420.6 MB, free: 15.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01013/0.1964, allocations: 14.37 MB / 434.9 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.609e-05/0.1965, allocations: 0 / 434.9 MB, free: 0.8242 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002474/0.1968, allocations: 63.61 kB / 435 MB, free: 0.7617 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002254/0.197, allocations: 103.3 kB / 435.1 MB, free: 0.6602 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01062/0.2076, allocations: 4.54 MB / 439.6 MB, free: 12.14 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.208, allocations: 338.5 kB / 440 MB, free: 11.81 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.195e-05/0.2081, allocations: 13.69 kB / 440 MB, free: 11.8 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003743/0.2085, allocations: 211.1 kB / 440.2 MB, free: 11.59 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001288/0.2086, allocations: 99.59 kB / 440.3 MB, free: 11.49 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.345e-05/0.2086, allocations: 8 kB / 440.3 MB, free: 11.48 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009747/0.2184, allocations: 6.496 MB / 446.8 MB, free: 4.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 7.203e-05/0.2185, allocations: 43.81 kB / 446.8 MB, free: 4.938 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.2186, allocations: 117.4 kB / 446.9 MB, free: 4.816 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00358/0.2222, allocations: 2.639 MB / 449.6 MB, free: 2.172 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2222, allocations: 0 / 449.6 MB, free: 2.172 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2222, allocations: 0 / 449.6 MB, free: 2.172 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.442e-06/0.2222, allocations: 0 / 449.6 MB, free: 2.172 MB / 314.7 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.001971/0.2242, allocations: 0.9634 MB / 450.5 MB, free: 1.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.2243, allocations: 8.031 kB / 450.5 MB, free: 1.152 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.534e-05/0.2243, allocations: 58.67 kB / 450.6 MB, free: 1.086 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001182/0.2255, allocations: 176.6 kB / 450.8 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.2257, allocations: 264 kB / 451 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.723e-05/0.2258, allocations: 12.81 kB / 451 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.235e-05/0.2258, allocations: 24.12 kB / 451.1 MB, free: 0.582 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002777/0.2286, allocations: 0.9168 MB / 452 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2286, allocations: 0 / 452 MB, free: 15.64 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.986e-05/0.2287, allocations: 8 kB / 452 MB, free: 15.63 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.2287, allocations: 8 kB / 452 MB, free: 15.62 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002846/0.2315, allocations: 0.9851 MB / 453 MB, free: 14.64 MB / 330.7 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.001508/0.2331, allocations: 1.343 MB / 454.3 MB, free: 13.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002317/0.2354, allocations: 0.7292 MB / 455.1 MB, free: 12.42 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.2357, allocations: 169.3 kB / 455.2 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07334/0.309, allocations: 42.37 MB / 497.6 MB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.554e-05/0.3091, allocations: 34.84 kB / 497.6 MB, free: 12.46 MB / 378.7 MB Notification: Performance of pre-optimization done (n=33): time 2.104e-06/0.3091, allocations: 0 / 497.6 MB, free: 12.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=33): time 0.004611/0.3137, allocations: 1.376 MB / 499 MB, free: 11.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.3138, allocations: 63.28 kB / 499.1 MB, free: 11.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.173e-05/0.3138, allocations: 121.8 kB / 499.2 MB, free: 10.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.829e-05/0.3139, allocations: 33.7 kB / 499.2 MB, free: 10.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.495e-05/0.314, allocations: 116.6 kB / 499.3 MB, free: 10.72 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.3141, allocations: 114.4 kB / 499.4 MB, free: 10.61 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.237e-05/0.3142, allocations: 8 kB / 499.5 MB, free: 10.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.143e-05/0.3143, allocations: 326.8 kB / 499.8 MB, free: 10.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005861/0.3149, allocations: 343.6 kB / 0.4884 GB, free: 9.938 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000594/0.3155, allocations: 407.9 kB / 0.4888 GB, free: 9.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.3166, allocations: 0.7106 MB / 0.4895 GB, free: 8.773 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3166, allocations: 8 kB / 0.4895 GB, free: 8.766 MB / 378.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001547/0.3182, allocations: 0.8718 MB / 0.4903 GB, free: 7.887 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.3182, allocations: 12.19 kB / 0.4903 GB, free: 7.875 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.3182, allocations: 7.938 kB / 0.4904 GB, free: 7.867 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.3183, allocations: 4 kB / 0.4904 GB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006173/0.3189, allocations: 183.7 kB / 0.4905 GB, free: 7.684 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3189, allocations: 4 kB / 0.4905 GB, free: 7.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003582/0.3193, allocations: 39.73 kB / 0.4906 GB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001042/0.3194, allocations: 63.94 kB / 0.4906 GB, free: 7.578 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002013/0.3196, allocations: 146.4 kB / 0.4908 GB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.852e-05/0.3197, allocations: 19.75 kB / 0.4908 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1523/0.472, allocations: 7.974 MB / 0.4986 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.982e-05/0.4721, allocations: 29.28 kB / 0.4986 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4721, allocations: 0 / 0.4986 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.928e-06/0.4721, allocations: 2.5 kB / 0.4986 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002408/0.4745, allocations: 3.591 MB / 0.5021 GB, free: 97.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.4745, allocations: 4.547 kB / 0.5021 GB, free: 97.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000598/0.4751, allocations: 109.2 kB / 0.5022 GB, free: 97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.685e-06/0.4752, allocations: 3.531 kB / 0.5022 GB, free: 97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.815e-05/0.4752, allocations: 13.94 kB / 0.5022 GB, free: 96.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.4752, allocations: 5.562 kB / 0.5022 GB, free: 96.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.4752, allocations: 4.156 kB / 0.5022 GB, free: 96.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002069/0.4773, allocations: 1.852 MB / 0.5041 GB, free: 96.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.062e-05/0.4774, allocations: 144.9 kB / 0.5042 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.587e-05/0.4774, allocations: 11.12 kB / 0.5042 GB, free: 95.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002841/0.4777, allocations: 23.41 kB / 0.5042 GB, free: 95.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.4778, allocations: 31.27 kB / 0.5043 GB, free: 95.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.4779, allocations: 16.77 kB / 0.5043 GB, free: 95.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.951e-05/0.4779, allocations: 97.53 kB / 0.5044 GB, free: 95.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4779, allocations: 0 / 0.5044 GB, free: 95.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00235/0.4803, allocations: 0.9902 MB / 0.5053 GB, free: 95.76 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006036/0.4863, allocations: 3.431 MB / 0.5087 GB, free: 94.24 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001269/0.4876, allocations: 0.914 MB / 0.5096 GB, free: 93.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4876, allocations: 2.219 kB / 0.5096 GB, free: 93.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005537/0.4882, allocations: 0.5892 MB / 0.5102 GB, free: 93.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005853/0.4888, allocations: 83.33 kB / 0.5102 GB, free: 93.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003974/0.4928, allocations: 3.357 MB / 0.5135 GB, free: 90.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001752/0.4929, allocations: 0.8615 MB / 0.5144 GB, free: 89.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003865/0.4933, allocations: 223.3 kB / 0.5146 GB, free: 89.46 MB / 378.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4933, allocations: 0 / 0.5146 GB, free: 89.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.673/5.166, allocations: 23.32 MB / 0.5373 GB, free: 66.13 MB / 378.7 MB (rm -f Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches