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.0008864/0.0008864, allocations: 87.62 kB / 21.43 MB, free: 3.137 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.004209/0.004209, allocations: 159.4 kB / 24.69 MB, free: 9.422 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.8201/0.8201, allocations: 158.6 MB / 186.5 MB, free: 3.043 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.864e-06/1.864e-06, allocations: 0 / 301.2 MB, free: 0.7695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.644e-05/1.831e-05, allocations: 2.281 kB / 301.2 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1418/0.1418, allocations: 12.19 MB / 313.4 MB, free: 7.473 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009796/0.1516, allocations: 13.63 MB / 327 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.1517, allocations: 1.25 kB / 327 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003236/0.152, allocations: 69.48 kB / 327.1 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003045/0.1523, allocations: 127.8 kB / 327.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01349/0.1658, allocations: 5.961 MB / 333.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004087/0.1662, allocations: 350.7 kB / 333.5 MB, free: 9.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.313e-05/0.1663, allocations: 9.906 kB / 333.5 MB, free: 9.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004698/0.1668, allocations: 272.2 kB / 333.8 MB, free: 9.672 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.1669, allocations: 87.98 kB / 333.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.814e-05/0.1669, allocations: 14.47 kB / 333.9 MB, free: 9.629 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009151/0.1761, allocations: 6.472 MB / 340.3 MB, free: 4.945 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.523e-05/0.1762, allocations: 43.88 kB / 340.4 MB, free: 4.902 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.1763, allocations: 83.81 kB / 340.5 MB, free: 4.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006813/0.1831, allocations: 4.946 MB / 345.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1831, allocations: 0 / 345.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1831, allocations: 1.312 kB / 345.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1831, allocations: 0 / 345.4 MB, free: 15.86 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.001748/0.1848, allocations: 0.9351 MB / 346.3 MB, free: 14.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.1849, allocations: 15.98 kB / 346.4 MB, free: 14.88 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.588e-05/0.1849, allocations: 54.73 kB / 346.4 MB, free: 14.81 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007017/0.1856, allocations: 180.6 kB / 346.6 MB, free: 14.64 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002829/0.1859, allocations: 201.5 kB / 346.8 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.68e-05/0.1859, allocations: 20.81 kB / 346.8 MB, free: 14.39 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.228e-05/0.186, allocations: 16.38 kB / 346.8 MB, free: 14.38 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/0.1876, allocations: 0.9565 MB / 347.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1876, allocations: 7.922 kB / 347.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.308e-05/0.1876, allocations: 16 kB / 347.8 MB, free: 13.37 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.804e-06/0.1877, allocations: 4.625 kB / 347.8 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001623/0.1893, allocations: 0.9658 MB / 348.8 MB, free: 12.39 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.0009432/0.1902, allocations: 0.9472 MB / 349.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001569/0.1918, allocations: 0.7204 MB / 350.4 MB, free: 10.66 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.1919, allocations: 148.8 kB / 350.6 MB, free: 10.52 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03175/0.2237, allocations: 19.71 MB / 370.3 MB, free: 6.777 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.2237, allocations: 30.56 kB / 370.3 MB, free: 6.738 MB / 330.7 MB Notification: Performance of pre-optimization done (n=33): time 1.984e-06/0.2237, allocations: 0 / 370.3 MB, free: 6.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=33): time 0.002764/0.2265, allocations: 1.372 MB / 371.7 MB, free: 5.359 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.369e-05/0.2265, allocations: 59.34 kB / 371.8 MB, free: 5.289 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.337e-05/0.2266, allocations: 121.8 kB / 371.9 MB, free: 5.16 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.435e-05/0.2266, allocations: 33.7 kB / 371.9 MB, free: 5.121 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.427e-05/0.2267, allocations: 116.8 kB / 372 MB, free: 5 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004283/0.2271, allocations: 119 kB / 372.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.2273, allocations: 161.5 kB / 372.3 MB, free: 4.719 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.006e-05/0.2274, allocations: 326.8 kB / 372.6 MB, free: 4.391 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003884/0.2278, allocations: 343.4 kB / 373 MB, free: 4.059 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004302/0.2282, allocations: 415.2 kB / 373.4 MB, free: 3.625 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007986/0.229, allocations: 0.7036 MB / 374.1 MB, free: 2.895 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.229, allocations: 0 / 374.1 MB, free: 2.895 MB / 330.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001097/0.2301, allocations: 0.8758 MB / 374.9 MB, free: 2.012 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.2301, allocations: 4 kB / 374.9 MB, free: 2.008 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.2301, allocations: 4.25 kB / 374.9 MB, free: 2.004 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2301, allocations: 8 kB / 375 MB, free: 1.996 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000304/0.2304, allocations: 179.7 kB / 375.1 MB, free: 1.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.2305, allocations: 4 kB / 375.1 MB, free: 1.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000143/0.2306, allocations: 27.84 kB / 375.2 MB, free: 1.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.299e-05/0.2307, allocations: 67.92 kB / 375.2 MB, free: 1.723 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.0001395/0.2308, allocations: 138.1 kB / 375.4 MB, free: 1.578 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.435e-05/0.2309, allocations: 15.91 kB / 375.4 MB, free: 1.562 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005061/0.2359, allocations: 8.511 MB / 383.9 MB, free: 9.039 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.931e-05/0.236, allocations: 27.95 kB / 383.9 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.236, allocations: 7.922 kB / 383.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.236, allocations: 0 / 383.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002301/0.2383, allocations: 3.722 MB / 387.6 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.2383, allocations: 0 / 387.6 MB, free: 5.023 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002767/0.2386, allocations: 115.8 kB / 387.8 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.2386, allocations: 4 kB / 387.8 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.286e-05/0.2386, allocations: 8 kB / 387.8 MB, free: 4.898 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.2386, allocations: 4 kB / 387.8 MB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2386, allocations: 3.938 kB / 387.8 MB, free: 4.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001475/0.2401, allocations: 1.892 MB / 389.7 MB, free: 2.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.359e-05/0.2401, allocations: 67.33 kB / 389.7 MB, free: 2.914 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.81e-05/0.2401, allocations: 11.94 kB / 389.8 MB, free: 2.902 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.2402, allocations: 16.05 kB / 389.8 MB, free: 2.887 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.387e-05/0.2403, allocations: 35.88 kB / 389.8 MB, free: 2.852 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.2403, allocations: 20.86 kB / 389.8 MB, free: 2.832 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.621e-05/0.2404, allocations: 87.28 kB / 389.9 MB, free: 2.746 MB / 346.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2404, allocations: 0 / 389.9 MB, free: 2.746 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002025/0.2424, allocations: 0.9902 MB / 390.9 MB, free: 1.754 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.004444/0.2468, allocations: 3.596 MB / 394.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000925/0.2478, allocations: 0.8989 MB / 395.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2478, allocations: 0 / 395.4 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004283/0.2482, allocations: 0.5244 MB / 395.9 MB, free: 12.7 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.2486, allocations: 88.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.004367/0.2529, allocations: 4.629 MB / 400.6 MB, free: 7.867 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.2533, allocations: 259 kB / 400.9 MB, free: 7.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001097/0.2544, allocations: 1.791 MB / 402.7 MB, free: 5.793 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000296/0.2547, allocations: 224.4 kB / 402.9 MB, free: 5.574 MB / 362.7 MB Notification: Performance of SimCode: time 6.32e-07/0.2547, allocations: 0 / 402.9 MB, free: 5.574 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05564/0.3104, allocations: 47.01 MB / 449.9 MB, free: 6.336 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.261/8.572, allocations: 3.984 kB / 449.9 MB, free: 6.332 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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.325435298494995]