Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001566/0.001566, allocations: 116.7 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001785/0.001785, allocations: 213.6 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 230.5 MB / 257.4 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001959/0.001959, allocations: 71.89 kB / 378.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2321, allocations: 53.4 MB / 432 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01795/0.25, allocations: 13.56 MB / 445.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02057/0.2706, allocations: 15.66 MB / 461.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001854/0.2708, allocations: 0 / 461.2 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004081/0.2712, allocations: 83.48 kB / 461.3 MB, free: 8.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004396/0.2716, allocations: 111.2 kB / 461.4 MB, free: 8.871 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01661/0.2883, allocations: 5.994 MB / 467.4 MB, free: 2.883 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006343/0.2889, allocations: 346.5 kB / 467.8 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.261e-05/0.289, allocations: 9.812 kB / 467.8 MB, free: 2.531 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005786/0.2895, allocations: 243 kB / 468 MB, free: 2.293 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002317/0.2898, allocations: 107.6 kB / 468.1 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.602e-05/0.2898, allocations: 16 kB / 468.1 MB, free: 2.172 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01417/0.304, allocations: 6.782 MB / 474.9 MB, free: 11.38 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.3041, allocations: 43.89 kB / 475 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002101/0.3043, allocations: 107.5 kB / 475.1 MB, free: 11.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009744/0.3141, allocations: 3.917 MB / 479 MB, free: 7.309 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.3141, allocations: 0 / 479 MB, free: 7.309 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3141, allocations: 0 / 479 MB, free: 7.309 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.649e-05/0.3141, allocations: 0 / 479 MB, free: 7.309 MB / 382.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.002831/0.3169, allocations: 0.9506 MB / 479.9 MB, free: 6.324 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.317, allocations: 12.03 kB / 479.9 MB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.799e-05/0.317, allocations: 54.67 kB / 480 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001361/0.3184, allocations: 184.6 kB / 480.2 MB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.3187, allocations: 202.2 kB / 480.4 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.607e-05/0.3187, allocations: 16.81 kB / 480.4 MB, free: 5.832 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.398e-05/0.3188, allocations: 23.94 kB / 480.4 MB, free: 5.809 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003136/0.3219, allocations: 0.905 MB / 481.3 MB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3219, allocations: 0 / 481.3 MB, free: 4.887 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.31e-05/0.322, allocations: 12 kB / 481.3 MB, free: 4.875 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.686e-06/0.322, allocations: 4 kB / 481.3 MB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003235/0.3252, allocations: 0.9734 MB / 482.3 MB, free: 3.895 MB / 382.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.001815/0.327, allocations: 1.307 MB / 483.6 MB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002591/0.3296, allocations: 0.7285 MB / 484.3 MB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000291/0.3299, allocations: 156.7 kB / 484.5 MB, free: 1.566 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06987/0.3998, allocations: 20.55 MB / 0.4932 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.272e-05/0.3998, allocations: 34.56 kB / 0.4932 GB, free: 12.95 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.304e-06/0.3998, allocations: 0 / 0.4932 GB, free: 12.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00531/0.4051, allocations: 1.361 MB / 0.4946 GB, free: 11.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.638e-05/0.4052, allocations: 55.41 kB / 0.4946 GB, free: 11.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.4053, allocations: 125.7 kB / 0.4947 GB, free: 11.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.4054, allocations: 41.69 kB / 0.4948 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.334e-05/0.4055, allocations: 124.7 kB / 0.4949 GB, free: 11.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001655/0.4057, allocations: 111 kB / 0.495 GB, free: 11.1 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003268/0.406, allocations: 165.6 kB / 0.4952 GB, free: 10.93 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.4062, allocations: 330.8 kB / 0.4955 GB, free: 10.6 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007003/0.4069, allocations: 339.6 kB / 0.4958 GB, free: 10.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007635/0.4076, allocations: 399.5 kB / 0.4962 GB, free: 9.852 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001375/0.409, allocations: 0.7153 MB / 0.4969 GB, free: 9.109 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.409, allocations: 0 / 0.4969 GB, free: 9.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001864/0.4109, allocations: 0.8719 MB / 0.4977 GB, free: 8.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.4109, allocations: 7.938 kB / 0.4977 GB, free: 8.223 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.4109, allocations: 8.25 kB / 0.4977 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.4109, allocations: 4 kB / 0.4977 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006621/0.4116, allocations: 175.8 kB / 0.4979 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/0.4116, allocations: 7.938 kB / 0.4979 GB, free: 8.031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003428/0.4119, allocations: 31.83 kB / 0.498 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.4121, allocations: 59.94 kB / 0.498 GB, free: 7.941 MB / 414.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.0002416/0.4123, allocations: 137.8 kB / 0.4981 GB, free: 7.797 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.4124, allocations: 19.84 kB / 0.4982 GB, free: 7.777 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008983/0.4214, allocations: 8.509 MB / 0.5065 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.845e-05/0.4215, allocations: 27.95 kB / 0.5065 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.4215, allocations: 0 / 0.5065 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.165e-05/0.4215, allocations: 11.92 kB / 0.5065 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003684/0.4252, allocations: 3.771 MB / 0.5102 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.4252, allocations: 7.984 kB / 0.5102 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006793/0.4259, allocations: 103.9 kB / 0.5103 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.248e-05/0.4259, allocations: 8.312 kB / 0.5103 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.277e-05/0.4259, allocations: 15.98 kB / 0.5103 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.4259, allocations: 3.938 kB / 0.5103 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4259, allocations: 0 / 0.5103 GB, free: 11.05 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002856/0.4288, allocations: 1.882 MB / 0.5122 GB, free: 9.145 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.221e-05/0.4289, allocations: 67.34 kB / 0.5122 GB, free: 9.078 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.956e-05/0.4289, allocations: 11.94 kB / 0.5122 GB, free: 9.066 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003037/0.4292, allocations: 12 kB / 0.5123 GB, free: 9.055 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000105/0.4293, allocations: 31.94 kB / 0.5123 GB, free: 9.023 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.4294, allocations: 15.98 kB / 0.5123 GB, free: 9.008 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.157e-05/0.4295, allocations: 91.27 kB / 0.5124 GB, free: 8.918 MB / 430.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4295, allocations: 4 kB / 0.5124 GB, free: 8.914 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0029/0.4324, allocations: 1.006 MB / 0.5134 GB, free: 7.906 MB / 430.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.008209/0.4406, allocations: 3.474 MB / 0.5168 GB, free: 4.402 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001771/0.4423, allocations: 0.8912 MB / 0.5176 GB, free: 3.512 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.4423, allocations: 0 / 0.5176 GB, free: 3.512 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008045/0.4431, allocations: 0.5283 MB / 0.5181 GB, free: 2.984 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006458/0.4438, allocations: 91.22 kB / 0.5182 GB, free: 2.898 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0084/0.4522, allocations: 4.71 MB / 0.5228 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.4527, allocations: 0.8575 MB / 0.5237 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002084/0.4548, allocations: 1.784 MB / 0.5254 GB, free: 11.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004672/0.4553, allocations: 219.2 kB / 0.5256 GB, free: 11.18 MB / 446.1 MB Notification: Performance of SimCode: time 8.51e-07/0.4553, allocations: 0 / 0.5256 GB, free: 11.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2809/0.7362, allocations: 46.85 MB / 0.5714 GB, free: 77.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/14.2, allocations: 11.8 kB / 0.5714 GB, free: 77.2 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.868028383003548]