Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0008464/0.0008502, allocations: 174.4 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.156/1.156, allocations: 205.4 MB / 222.9 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006965/0.0006965, allocations: 99.58 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000286/0.0002861, allocations: 12 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1806, allocations: 47.58 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.009885/0.1906, allocations: 12.37 MB / 387.6 MB, free: 35.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.2011, allocations: 14.36 MB / 401.9 MB, free: 21.9 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.2013, allocations: 0 / 401.9 MB, free: 21.9 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.2015, allocations: 67.67 kB / 402 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.2018, allocations: 99.33 kB / 402.1 MB, free: 21.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01068/0.2125, allocations: 4.526 MB / 406.6 MB, free: 17.21 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00033/0.2128, allocations: 338.5 kB / 406.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.405e-05/0.2129, allocations: 13.69 kB / 407 MB, free: 16.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003701/0.2132, allocations: 199.2 kB / 407.2 MB, free: 16.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.2134, allocations: 103.6 kB / 407.3 MB, free: 16.57 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.097e-05/0.2134, allocations: 8 kB / 407.3 MB, free: 16.56 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008947/0.2223, allocations: 6.473 MB / 413.7 MB, free: 10.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.58e-05/0.2224, allocations: 43.88 kB / 413.8 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001145/0.2226, allocations: 117.3 kB / 413.9 MB, free: 9.918 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003347/0.2259, allocations: 2.627 MB / 416.5 MB, free: 7.285 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.2259, allocations: 0 / 416.5 MB, free: 7.285 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2259, allocations: 0 / 416.5 MB, free: 7.285 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.007e-06/0.2259, allocations: 0 / 416.5 MB, free: 7.285 MB / 298.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.001801/0.2278, allocations: 0.9439 MB / 417.5 MB, free: 6.293 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.349e-05/0.2278, allocations: 8.031 kB / 417.5 MB, free: 6.285 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.157e-05/0.2278, allocations: 58.73 kB / 417.5 MB, free: 6.219 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001164/0.229, allocations: 176.5 kB / 417.7 MB, free: 6.047 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.2292, allocations: 263.9 kB / 418 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.309e-05/0.2292, allocations: 20.81 kB / 418 MB, free: 5.727 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.769e-05/0.2293, allocations: 24.12 kB / 418 MB, free: 5.703 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/0.2318, allocations: 0.909 MB / 418.9 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.2318, allocations: 0 / 418.9 MB, free: 4.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.649e-05/0.2319, allocations: 8 kB / 418.9 MB, free: 4.766 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.2319, allocations: 8 kB / 418.9 MB, free: 4.758 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00259/0.2345, allocations: 0.989 MB / 419.9 MB, free: 3.77 MB / 298.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.001106/0.2356, allocations: 1.354 MB / 421.3 MB, free: 2.281 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002077/0.2377, allocations: 0.7292 MB / 422 MB, free: 1.543 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.2379, allocations: 157.4 kB / 422.2 MB, free: 1.387 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06915/0.307, allocations: 37.76 MB / 459.9 MB, free: 7.172 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.3071, allocations: 34.84 kB / 459.9 MB, free: 7.129 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 3.216e-06/0.3071, allocations: 0 / 459.9 MB, free: 7.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.004625/0.3118, allocations: 1.384 MB / 461.3 MB, free: 5.738 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.65e-05/0.3118, allocations: 55.41 kB / 461.4 MB, free: 5.672 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.255e-05/0.3119, allocations: 117.8 kB / 461.5 MB, free: 5.547 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.978e-05/0.312, allocations: 33.7 kB / 461.5 MB, free: 5.508 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.754e-05/0.312, allocations: 120.6 kB / 461.7 MB, free: 5.383 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/0.3122, allocations: 110.4 kB / 461.8 MB, free: 5.273 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.998e-05/0.3122, allocations: 12 kB / 461.8 MB, free: 5.262 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.038e-05/0.3123, allocations: 326.8 kB / 462.1 MB, free: 4.934 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005661/0.3129, allocations: 335.8 kB / 462.4 MB, free: 4.605 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006154/0.3135, allocations: 419.2 kB / 462.8 MB, free: 4.168 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001161/0.3147, allocations: 0.7037 MB / 463.5 MB, free: 3.438 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.3147, allocations: 0 / 463.5 MB, free: 3.438 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001584/0.3163, allocations: 0.8835 MB / 464.4 MB, free: 2.547 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.3163, allocations: 4.938 kB / 464.4 MB, free: 2.543 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/0.3164, allocations: 12.19 kB / 464.4 MB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.3164, allocations: 4 kB / 464.4 MB, free: 2.527 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005953/0.317, allocations: 179.8 kB / 464.6 MB, free: 2.352 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.317, allocations: 7.984 kB / 464.6 MB, free: 2.344 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003642/0.3174, allocations: 31.75 kB / 464.7 MB, free: 2.312 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.3175, allocations: 67.92 kB / 464.7 MB, free: 2.246 MB / 346.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.0002033/0.3177, allocations: 142.6 kB / 464.9 MB, free: 2.098 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.097e-05/0.3178, allocations: 15.81 kB / 464.9 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006849/0.3246, allocations: 7.982 MB / 472.9 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/0.3247, allocations: 27.95 kB / 472.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3247, allocations: 3.938 kB / 472.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.3247, allocations: 3.984 kB / 472.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002738/0.3275, allocations: 3.596 MB / 476.5 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.201e-06/0.3275, allocations: 0 / 476.5 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005802/0.3281, allocations: 111.8 kB / 476.6 MB, free: 6.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.3281, allocations: 4 kB / 476.6 MB, free: 6.078 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.681e-05/0.3281, allocations: 19.94 kB / 476.6 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.3282, allocations: 3.984 kB / 476.6 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3282, allocations: 3.984 kB / 476.6 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002209/0.3304, allocations: 1.85 MB / 478.5 MB, free: 4.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.269e-05/0.3305, allocations: 140.2 kB / 478.6 MB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.3305, allocations: 15.94 kB / 478.6 MB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002879/0.3308, allocations: 15.98 kB / 478.6 MB, free: 3.992 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.331, allocations: 31.95 kB / 478.7 MB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.197e-05/0.331, allocations: 24.05 kB / 478.7 MB, free: 3.938 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.965e-05/0.3311, allocations: 87.27 kB / 478.8 MB, free: 3.852 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3311, allocations: 4 kB / 478.8 MB, free: 3.848 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002354/0.3334, allocations: 0.976 MB / 479.8 MB, free: 2.871 MB / 362.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.00665/0.3401, allocations: 3.421 MB / 483.2 MB, free: 15.42 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.3415, allocations: 0.9114 MB / 484.1 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3415, allocations: 0 / 484.1 MB, free: 14.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006743/0.3422, allocations: 0.5947 MB / 484.7 MB, free: 13.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006214/0.3428, allocations: 80.05 kB / 484.8 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00517/0.348, allocations: 3.332 MB / 488.1 MB, free: 10.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.3484, allocations: 0.8541 MB / 489 MB, free: 9.547 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004604/0.3489, allocations: 223.3 kB / 489.2 MB, free: 9.328 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.3489, allocations: 0 / 489.2 MB, free: 9.328 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.45/4.799, allocations: 23.12 MB / 0.5003 GB, free: 2.168 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches