Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007883/0.0007883, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003366/0.003366, allocations: 164.3 kB / 24.7 MB, free: 8.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.84/0.84, allocations: 158.6 MB / 186.5 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.232e-06/1.232e-06, allocations: 0 / 301.2 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.274e-05/1.398e-05, allocations: 2.281 kB / 301.2 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1469/0.1469, allocations: 12.19 MB / 313.4 MB, free: 7.484 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01053/0.1575, allocations: 13.64 MB / 327 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.1576, allocations: 0 / 327 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.1579, allocations: 69.17 kB / 327.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002745/0.1582, allocations: 124 kB / 327.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0154/0.1736, allocations: 5.969 MB / 333.2 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004339/0.174, allocations: 347 kB / 333.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.99e-05/0.174, allocations: 9.531 kB / 333.5 MB, free: 9.844 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004444/0.1745, allocations: 269.1 kB / 333.8 MB, free: 9.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001235/0.1746, allocations: 88 kB / 333.8 MB, free: 9.637 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.552e-05/0.1746, allocations: 17.38 kB / 333.9 MB, free: 9.633 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008907/0.1835, allocations: 6.475 MB / 340.3 MB, free: 4.953 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.45e-05/0.1836, allocations: 43.88 kB / 340.4 MB, free: 4.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.593e-05/0.1837, allocations: 71.84 kB / 340.5 MB, free: 4.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005385/0.1891, allocations: 4.954 MB / 345.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1891, allocations: 4 kB / 345.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1891, allocations: 1.312 kB / 345.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1891, allocations: 0 / 345.4 MB, free: 15.87 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.001334/0.1904, allocations: 0.9312 MB / 346.3 MB, free: 14.9 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1904, allocations: 11.98 kB / 346.4 MB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.565e-05/0.1905, allocations: 58.73 kB / 346.4 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000679/0.1912, allocations: 176.6 kB / 346.6 MB, free: 14.65 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.1915, allocations: 201.4 kB / 346.8 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.1915, allocations: 16.88 kB / 346.8 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.301e-05/0.1915, allocations: 28.33 kB / 346.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001592/0.1931, allocations: 0.9604 MB / 347.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.1931, allocations: 0 / 347.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.1931, allocations: 8 kB / 347.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.1931, allocations: 8 kB / 347.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.1948, allocations: 0.9697 MB / 348.8 MB, free: 12.41 MB / 314.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.0009699/0.1957, allocations: 0.9361 MB / 349.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001326/0.1971, allocations: 0.7321 MB / 350.4 MB, free: 10.68 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.1972, allocations: 152.8 kB / 350.6 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03218/0.2294, allocations: 19.71 MB / 370.3 MB, free: 6.793 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.2294, allocations: 42.5 kB / 370.3 MB, free: 6.742 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 2.335e-06/0.2294, allocations: 0 / 370.3 MB, free: 6.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.00298/0.2324, allocations: 1.356 MB / 371.7 MB, free: 5.379 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.2325, allocations: 59.34 kB / 371.8 MB, free: 5.309 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.992e-05/0.2326, allocations: 121.8 kB / 371.9 MB, free: 5.18 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.834e-05/0.2326, allocations: 33.7 kB / 371.9 MB, free: 5.141 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.774e-05/0.2327, allocations: 128.8 kB / 372 MB, free: 5.008 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002211/0.2329, allocations: 111 kB / 372.1 MB, free: 4.898 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002083/0.2331, allocations: 169.5 kB / 372.3 MB, free: 4.727 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.946e-05/0.2332, allocations: 322.8 kB / 372.6 MB, free: 4.402 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005066/0.2337, allocations: 339.8 kB / 372.9 MB, free: 4.07 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004803/0.2342, allocations: 414.8 kB / 373.4 MB, free: 3.641 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009038/0.2351, allocations: 0.7076 MB / 374.1 MB, free: 2.906 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.137e-06/0.2351, allocations: 0 / 374.1 MB, free: 2.906 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001272/0.2364, allocations: 0.8719 MB / 374.9 MB, free: 2.027 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.2364, allocations: 8 kB / 374.9 MB, free: 2.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.2364, allocations: 0 / 374.9 MB, free: 2.02 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.2364, allocations: 4 kB / 374.9 MB, free: 2.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004083/0.2368, allocations: 183.7 kB / 375.1 MB, free: 1.836 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.2368, allocations: 4.25 kB / 375.1 MB, free: 1.832 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001791/0.237, allocations: 31.84 kB / 375.2 MB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.257e-05/0.2371, allocations: 63.92 kB / 375.2 MB, free: 1.738 MB / 330.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002096/0.2373, allocations: 146 kB / 375.4 MB, free: 1.586 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.577e-05/0.2374, allocations: 15.91 kB / 375.4 MB, free: 1.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005916/0.2433, allocations: 8.507 MB / 383.9 MB, free: 9.051 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-05/0.2433, allocations: 27.95 kB / 383.9 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.234e-05/0.2433, allocations: 3.938 kB / 383.9 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.2434, allocations: 4 kB / 383.9 MB, free: 9.016 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002366/0.2457, allocations: 3.725 MB / 387.6 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.2457, allocations: 0 / 387.6 MB, free: 5.031 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000341/0.2461, allocations: 107.8 kB / 387.8 MB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.737e-06/0.2461, allocations: 4 kB / 387.8 MB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.277e-05/0.2461, allocations: 12 kB / 387.8 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-06/0.2461, allocations: 0 / 387.8 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.2461, allocations: 7.938 kB / 387.8 MB, free: 4.902 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001711/0.2478, allocations: 1.892 MB / 389.7 MB, free: 2.992 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.096e-05/0.2479, allocations: 71.33 kB / 389.7 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.248, allocations: 8 kB / 389.7 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.2481, allocations: 15.98 kB / 389.8 MB, free: 2.898 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.556e-05/0.2482, allocations: 35.88 kB / 389.8 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.431e-05/0.2482, allocations: 8 kB / 389.8 MB, free: 2.855 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.568e-05/0.2483, allocations: 95.33 kB / 389.9 MB, free: 2.762 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2483, allocations: 4 kB / 389.9 MB, free: 2.758 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002317/0.2506, allocations: 0.9863 MB / 390.9 MB, free: 1.77 MB / 346.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 (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.005847/0.2564, allocations: 3.607 MB / 394.5 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.2576, allocations: 0.8916 MB / 395.4 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.2576, allocations: 4.125 kB / 395.4 MB, free: 13.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005198/0.2581, allocations: 0.5322 MB / 395.9 MB, free: 12.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.2586, allocations: 84.02 kB / 396 MB, free: 12.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006162/0.2648, allocations: 4.623 MB / 400.6 MB, free: 7.879 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001813/0.2649, allocations: 259 kB / 400.9 MB, free: 7.602 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001324/0.2663, allocations: 1.784 MB / 402.7 MB, free: 5.812 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004078/0.2667, allocations: 228.4 kB / 402.9 MB, free: 5.59 MB / 362.7 MB Notification: Performance of SimCode: time 1.943e-06/0.2667, allocations: 0 / 402.9 MB, free: 5.59 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06641/0.3331, allocations: 47.02 MB / 449.9 MB, free: 6.348 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.556/8.889, allocations: 4 kB / 449.9 MB, free: 6.344 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.818014406599104]