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.001287/0.001287, allocations: 113.6 kB / 21.19 MB, free: 0.7031 MB / 14.72 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.00149/0.00149, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 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 1.338/1.338, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001809/0.001809, allocations: 59.05 kB / 348 MB, free: 9.289 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2467, allocations: 49.16 MB / 397.2 MB, free: 8.703 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01354/0.2603, allocations: 13.46 MB / 410.6 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01953/0.2798, allocations: 15.64 MB / 426.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.28, allocations: 1.125 kB / 426.3 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000355/0.2803, allocations: 81.09 kB / 426.4 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000351/0.2807, allocations: 114.4 kB / 426.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01652/0.2972, allocations: 5.961 MB / 432.4 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005118/0.2977, allocations: 350.3 kB / 432.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.803e-05/0.2977, allocations: 8.438 kB / 432.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004641/0.2982, allocations: 226.2 kB / 433 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001753/0.2984, allocations: 113 kB / 433.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.449e-05/0.2984, allocations: 13.56 kB / 433.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01352/0.3119, allocations: 6.761 MB / 439.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.317e-05/0.312, allocations: 43.86 kB / 439.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.3122, allocations: 107.6 kB / 440 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008394/0.3206, allocations: 3.898 MB / 443.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3206, allocations: 0 / 443.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3206, allocations: 0 / 443.9 MB, free: 4.191 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.393e-06/0.3206, allocations: 0 / 443.9 MB, free: 4.191 MB / 350.1 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.002475/0.3231, allocations: 0.9429 MB / 444.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3232, allocations: 15.98 kB / 444.9 MB, free: 3.199 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.671e-05/0.3232, allocations: 62.72 kB / 445 MB, free: 3.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001342/0.3246, allocations: 168.7 kB / 445.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000313/0.3249, allocations: 198.2 kB / 445.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.3249, allocations: 16.81 kB / 445.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.547e-05/0.325, allocations: 31.89 kB / 445.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003101/0.3281, allocations: 0.9012 MB / 446.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.3281, allocations: 3.938 kB / 446.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.3281, allocations: 8 kB / 446.3 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.3281, allocations: 7.938 kB / 446.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003246/0.3314, allocations: 0.9774 MB / 447.3 MB, free: 0.7773 MB / 350.1 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.001781/0.3331, allocations: 1.322 MB / 448.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002569/0.3357, allocations: 0.7167 MB / 449.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002775/0.336, allocations: 148.8 kB / 449.4 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06839/0.4044, allocations: 19.65 MB / 469.1 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.872e-05/0.4044, allocations: 34.56 kB / 469.1 MB, free: 10.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 2.013e-06/0.4044, allocations: 0 / 469.1 MB, free: 10.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.005289/0.4097, allocations: 1.368 MB / 470.5 MB, free: 9.367 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.257e-05/0.4098, allocations: 55.41 kB / 470.5 MB, free: 9.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001205/0.4099, allocations: 117.8 kB / 470.7 MB, free: 9.176 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.827e-05/0.41, allocations: 29.7 kB / 470.7 MB, free: 9.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.512e-05/0.41, allocations: 120.9 kB / 470.8 MB, free: 9.02 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/0.4102, allocations: 115 kB / 470.9 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002694/0.4104, allocations: 173.5 kB / 471.1 MB, free: 8.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.4106, allocations: 322.8 kB / 471.4 MB, free: 8.406 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006201/0.4112, allocations: 335.8 kB / 471.7 MB, free: 8.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007138/0.4119, allocations: 415.3 kB / 472.1 MB, free: 7.645 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001372/0.4133, allocations: 0.6998 MB / 472.8 MB, free: 6.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.596e-06/0.4133, allocations: 0 / 472.8 MB, free: 6.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001847/0.4151, allocations: 0.8721 MB / 473.7 MB, free: 6.039 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.4152, allocations: 11.94 kB / 473.7 MB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.4152, allocations: 0 / 473.7 MB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.4152, allocations: 4 kB / 473.7 MB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006798/0.4159, allocations: 179.8 kB / 473.9 MB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/0.4159, allocations: 15.86 kB / 473.9 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.4162, allocations: 32.16 kB / 474 MB, free: 5.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001142/0.4163, allocations: 67.92 kB / 474 MB, free: 5.734 MB / 382.1 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.000267/0.4166, allocations: 145.8 kB / 474.2 MB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.4168, allocations: 19.84 kB / 474.2 MB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00887/0.4256, allocations: 8.497 MB / 482.7 MB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.655e-05/0.4257, allocations: 27.95 kB / 482.7 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.043e-06/0.4257, allocations: 0 / 482.7 MB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4257, allocations: 8 kB / 482.7 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003641/0.4293, allocations: 3.767 MB / 486.5 MB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.206e-06/0.4293, allocations: 0 / 486.5 MB, free: 8.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006621/0.43, allocations: 103.8 kB / 486.6 MB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.406e-05/0.43, allocations: 11.92 kB / 486.6 MB, free: 8.871 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.053e-05/0.4301, allocations: 15.98 kB / 486.6 MB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.4301, allocations: 0 / 486.6 MB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.4301, allocations: 0 / 486.6 MB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00265/0.4327, allocations: 1.882 MB / 488.5 MB, free: 6.953 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.208e-05/0.4328, allocations: 71.33 kB / 488.6 MB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.329e-05/0.4329, allocations: 11.94 kB / 488.6 MB, free: 6.871 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003019/0.4332, allocations: 15.98 kB / 488.6 MB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.651e-05/0.4333, allocations: 31.94 kB / 488.6 MB, free: 6.824 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.852e-05/0.4333, allocations: 12 kB / 488.6 MB, free: 6.812 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.815e-05/0.4334, allocations: 95.33 kB / 488.7 MB, free: 6.719 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4334, allocations: 0 / 488.7 MB, free: 6.719 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002696/0.4361, allocations: 0.9941 MB / 489.7 MB, free: 5.723 MB / 398.1 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.007351/0.4434, allocations: 3.462 MB / 493.2 MB, free: 2.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001677/0.4451, allocations: 0.8951 MB / 494.1 MB, free: 1.336 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4451, allocations: 0 / 494.1 MB, free: 1.336 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007791/0.4459, allocations: 0.5283 MB / 494.6 MB, free: 0.8086 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00066/0.4465, allocations: 80.36 kB / 494.7 MB, free: 0.7305 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008104/0.4546, allocations: 4.687 MB / 499.4 MB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005058/0.4552, allocations: 0.8575 MB / 0.4885 GB, free: 11.03 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002139/0.4573, allocations: 1.78 MB / 0.4902 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004736/0.4578, allocations: 223.3 kB / 0.4905 GB, free: 9.023 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4578, allocations: 0 / 0.4905 GB, free: 9.023 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09839/0.5562, allocations: 46.66 MB / 0.536 GB, free: 10.19 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.8/14.36, allocations: 4.062 kB / 0.536 GB, free: 10.18 MB / 462.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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: 16.936181945027784]