Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008953/0.0008953, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 153.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8817/0.8817, allocations: 173.3 MB / 200.4 MB, free: 9.453 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 321.1 MB, free: 3.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.936e-05/2.08e-05, allocations: 2.281 kB / 321.1 MB, free: 3.609 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01031/0.01033, allocations: 12.2 MB / 333.3 MB, free: 7.367 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.02153, allocations: 13.63 MB / 347 MB, free: 9.68 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001699/0.0217, allocations: 0 / 347 MB, free: 9.68 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000341/0.02204, allocations: 83.44 kB / 347.1 MB, free: 9.598 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003633/0.02241, allocations: 111.2 kB / 347.2 MB, free: 9.488 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01145/0.03385, allocations: 6.001 MB / 353.2 MB, free: 3.496 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004289/0.03428, allocations: 338.4 kB / 353.5 MB, free: 3.164 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.48e-05/0.03434, allocations: 9.812 kB / 353.5 MB, free: 3.156 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004294/0.03477, allocations: 271 kB / 353.8 MB, free: 2.891 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.03489, allocations: 87.77 kB / 353.9 MB, free: 2.805 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.03492, allocations: 16 kB / 353.9 MB, free: 2.789 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008967/0.04389, allocations: 6.476 MB / 360.3 MB, free: 12.31 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001009/0.04399, allocations: 47.81 kB / 360.4 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001288/0.04412, allocations: 75.91 kB / 360.5 MB, free: 12.19 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008143/0.05226, allocations: 4.966 MB / 365.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.05227, allocations: 0 / 365.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.05227, allocations: 0 / 365.4 MB, free: 7.211 MB / 330.7 MB Notification: Performance of Transformations before backend: time 7.164e-06/0.05227, allocations: 4 kB / 365.4 MB, free: 7.207 MB / 330.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.001942/0.05422, allocations: 0.9383 MB / 366.4 MB, free: 6.238 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.05426, allocations: 8.922 kB / 366.4 MB, free: 6.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.789e-05/0.05431, allocations: 62.72 kB / 366.4 MB, free: 6.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007416/0.05505, allocations: 176.6 kB / 366.6 MB, free: 5.988 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.05533, allocations: 193.5 kB / 366.8 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.034e-05/0.05536, allocations: 20.88 kB / 366.8 MB, free: 5.75 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/0.05539, allocations: 28.31 kB / 366.9 MB, free: 5.723 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001673/0.05707, allocations: 0.9642 MB / 367.8 MB, free: 4.727 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.05708, allocations: 3.984 kB / 367.8 MB, free: 4.723 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.155e-05/0.0571, allocations: 8 kB / 367.8 MB, free: 4.715 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.05711, allocations: 7.984 kB / 367.8 MB, free: 4.707 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001656/0.05876, allocations: 0.9659 MB / 368.8 MB, free: 3.742 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.001036/0.0598, allocations: 0.9359 MB / 369.7 MB, free: 2.75 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001331/0.06113, allocations: 0.7324 MB / 370.5 MB, free: 2.008 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001687/0.0613, allocations: 157.6 kB / 370.6 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03412/0.09542, allocations: 19.71 MB / 390.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.09546, allocations: 38.56 kB / 390.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.455e-06/0.09546, allocations: 0 / 390.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002811/0.09827, allocations: 1.36 MB / 391.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.09831, allocations: 59.34 kB / 391.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.12e-05/0.0984, allocations: 121.7 kB / 391.9 MB, free: 12.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.909e-05/0.09845, allocations: 33.7 kB / 391.9 MB, free: 12.47 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.521e-05/0.0985, allocations: 120.9 kB / 392.1 MB, free: 12.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.95e-05/0.09859, allocations: 118.9 kB / 392.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001747/0.09877, allocations: 169.5 kB / 392.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.029e-05/0.09885, allocations: 322.8 kB / 392.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003891/0.09924, allocations: 339.8 kB / 393 MB, free: 11.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006921/0.09993, allocations: 415 kB / 393.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008158/0.1007, allocations: 0.7114 MB / 394.1 MB, free: 10.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.1007, allocations: 0 / 394.1 MB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001141/0.1019, allocations: 0.8758 MB / 395 MB, free: 9.344 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.238e-05/0.1019, allocations: 4 kB / 395 MB, free: 9.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.406e-06/0.1019, allocations: 4 kB / 395 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.1019, allocations: 4.375 kB / 395 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003294/0.1023, allocations: 175.7 kB / 395.2 MB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.1023, allocations: 4 kB / 395.2 MB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.1024, allocations: 39.83 kB / 395.2 MB, free: 9.117 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.548e-05/0.1025, allocations: 72.11 kB / 395.3 MB, free: 9.047 MB / 362.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.0001783/0.1027, allocations: 137.7 kB / 395.4 MB, free: 8.902 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.124e-05/0.1028, allocations: 19.91 kB / 395.4 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005473/0.1082, allocations: 8.515 MB / 404 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.478e-05/0.1083, allocations: 27.95 kB / 404 MB, free: 340 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/0.1083, allocations: 11.92 kB / 404 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.1083, allocations: 0 / 404 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002346/0.1106, allocations: 3.722 MB / 407.7 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.1106, allocations: 0 / 407.7 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003104/0.111, allocations: 107.8 kB / 407.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.829e-06/0.111, allocations: 0 / 407.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.111, allocations: 19.92 kB / 407.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.111, allocations: 4 kB / 407.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.111, allocations: 3.938 kB / 407.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/0.1126, allocations: 1.889 MB / 409.7 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.069e-05/0.1127, allocations: 67.39 kB / 409.8 MB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.773e-05/0.1127, allocations: 4 kB / 409.8 MB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.1129, allocations: 19.98 kB / 409.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/0.1129, allocations: 35.83 kB / 409.9 MB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.31e-05/0.113, allocations: 11.98 kB / 409.9 MB, free: 10.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.923e-05/0.113, allocations: 91.27 kB / 410 MB, free: 10.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.113, allocations: 0 / 410 MB, free: 10.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002153/0.1152, allocations: 0.9944 MB / 411 MB, free: 9.078 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 (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.005462/0.1206, allocations: 3.61 MB / 414.6 MB, free: 5.438 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001511/0.1221, allocations: 0.8838 MB / 415.4 MB, free: 4.551 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.678e-06/0.1221, allocations: 3.938 kB / 415.5 MB, free: 4.547 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005111/0.1227, allocations: 0.5327 MB / 416 MB, free: 4.012 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004801/0.1231, allocations: 87.73 kB / 416.1 MB, free: 3.926 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005984/0.1291, allocations: 4.651 MB / 420.7 MB, free: 15.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001619/0.1293, allocations: 251.2 kB / 421 MB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001495/0.1308, allocations: 1.78 MB / 422.7 MB, free: 13.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003493/0.1311, allocations: 228.4 kB / 423 MB, free: 12.87 MB / 394.7 MB Notification: Performance of SimCode: time 1.894e-06/0.1311, allocations: 0 / 423 MB, free: 12.87 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1749/0.306, allocations: 47.06 MB / 470 MB, free: 98.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.166/8.472, allocations: 14.33 kB / 470 MB, free: 98.29 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.346579600125551]