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.001799/0.001799, allocations: 116.6 kB / 18.49 MB, free: 4.566 MB / 14.72 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.001347/0.001347, allocations: 189 kB / 21.43 MB, free: 1.641 MB / 14.72 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 1.37/1.37, allocations: 225.6 MB / 249.8 MB, free: 3.613 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001655/0.001655, allocations: 43.92 kB / 367.2 MB, free: 4 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08809/0.08974, allocations: 52.15 MB / 419.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01657/0.1063, allocations: 13.38 MB / 432.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1948/0.3011, allocations: 15.6 MB / 448.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002805/0.3014, allocations: 3.391 kB / 448.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004644/0.3018, allocations: 81.31 kB / 448.4 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003603/0.3022, allocations: 111 kB / 448.5 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01452/0.3167, allocations: 5.965 MB / 454.4 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004817/0.3172, allocations: 341.2 kB / 454.8 MB, free: 6.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.576e-05/0.3173, allocations: 9.062 kB / 454.8 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004238/0.3177, allocations: 227.9 kB / 455 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.3178, allocations: 109.7 kB / 455.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.773e-05/0.3179, allocations: 18.34 kB / 455.1 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01397/0.3318, allocations: 6.767 MB / 461.9 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.429e-05/0.3319, allocations: 45.69 kB / 461.9 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002115/0.3321, allocations: 104.7 kB / 462 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009183/0.3413, allocations: 3.909 MB / 466 MB, free: 6.055 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3413, allocations: 0 / 466 MB, free: 6.055 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.3413, allocations: 2.438 kB / 466 MB, free: 6.055 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.543e-05/0.3413, allocations: 0 / 466 MB, free: 6.055 MB / 366.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.003168/0.3445, allocations: 1.014 MB / 467 MB, free: 5.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.3445, allocations: 13.59 kB / 467 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.858e-05/0.3446, allocations: 5.75 kB / 467 MB, free: 5.316 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.627e-05/0.3446, allocations: 57.48 kB / 467 MB, free: 5.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001404/0.346, allocations: 176.7 kB / 467.2 MB, free: 5.215 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.3464, allocations: 263.6 kB / 467.5 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.301e-05/0.3464, allocations: 17.19 kB / 467.5 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.453e-05/0.3464, allocations: 27.25 kB / 467.5 MB, free: 4.973 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003055/0.3495, allocations: 0.9033 MB / 468.4 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.3495, allocations: 1.156 kB / 468.4 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.28e-05/0.3495, allocations: 9.359 kB / 468.4 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.705e-06/0.3495, allocations: 5.344 kB / 468.4 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003041/0.3526, allocations: 0.9747 MB / 469.4 MB, free: 4.441 MB / 366.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.001329/0.3539, allocations: 1.347 MB / 470.8 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002476/0.3564, allocations: 0.7281 MB / 471.5 MB, free: 3.164 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002931/0.3567, allocations: 148.6 kB / 471.6 MB, free: 3.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07851/0.4352, allocations: 37.56 MB / 0.4973 GB, free: 15.91 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.4352, allocations: 42.12 kB / 0.4973 GB, free: 15.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.755e-06/0.4352, allocations: 3.844 kB / 0.4973 GB, free: 15.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005451/0.4407, allocations: 1.357 MB / 0.4986 GB, free: 14.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.4407, allocations: 59.39 kB / 0.4987 GB, free: 14.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.4409, allocations: 117.8 kB / 0.4988 GB, free: 14.3 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.169e-05/0.4409, allocations: 29.7 kB / 0.4988 GB, free: 14.27 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.955e-05/0.441, allocations: 128.8 kB / 0.4989 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001541/0.4412, allocations: 114.4 kB / 0.4991 GB, free: 14.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003213/0.4415, allocations: 179.3 kB / 0.4992 GB, free: 13.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.4416, allocations: 322.8 kB / 0.4995 GB, free: 13.53 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006774/0.4423, allocations: 339.8 kB / 0.4999 GB, free: 13.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007729/0.4431, allocations: 407.3 kB / 0.5002 GB, free: 12.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001413/0.4445, allocations: 0.7089 MB / 0.5009 GB, free: 12.04 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.4445, allocations: 0 / 0.5009 GB, free: 12.04 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001976/0.4465, allocations: 0.8759 MB / 0.5018 GB, free: 11.17 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.4465, allocations: 7.938 kB / 0.5018 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4465, allocations: 4 kB / 0.5018 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.789e-05/0.4465, allocations: 7 kB / 0.5018 GB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006637/0.4472, allocations: 178.9 kB / 0.502 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.4472, allocations: 4 kB / 0.502 GB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003439/0.4475, allocations: 28.09 kB / 0.502 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000118/0.4476, allocations: 67.92 kB / 0.5021 GB, free: 10.89 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.0002299/0.4479, allocations: 135.9 kB / 0.5022 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.448, allocations: 19.84 kB / 0.5022 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008048/0.4561, allocations: 7.973 MB / 0.51 GB, free: 2.754 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.228e-05/0.4561, allocations: 27.95 kB / 0.51 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4561, allocations: 0 / 0.51 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.4561, allocations: 4 kB / 0.51 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003328/0.4595, allocations: 3.603 MB / 0.5136 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.4595, allocations: 0 / 0.5136 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006287/0.4601, allocations: 107.5 kB / 0.5137 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.4601, allocations: 7.938 kB / 0.5137 GB, free: 14.76 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.4601, allocations: 11.94 kB / 0.5137 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.4601, allocations: 0 / 0.5137 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.4602, allocations: 6.812 kB / 0.5137 GB, free: 14.74 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002583/0.4627, allocations: 1.847 MB / 0.5155 GB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.4629, allocations: 140.5 kB / 0.5156 GB, free: 12.72 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.532e-05/0.4629, allocations: 11.94 kB / 0.5156 GB, free: 12.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.4632, allocations: 16.55 kB / 0.5157 GB, free: 12.69 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.4633, allocations: 36.02 kB / 0.5157 GB, free: 12.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.845e-05/0.4633, allocations: 8 kB / 0.5157 GB, free: 12.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.94e-05/0.4634, allocations: 96.98 kB / 0.5158 GB, free: 12.56 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4634, allocations: 4 kB / 0.5158 GB, free: 12.55 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003317/0.4667, allocations: 0.9941 MB / 0.5168 GB, free: 11.56 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.00852/0.4752, allocations: 3.434 MB / 0.5201 GB, free: 8.203 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001698/0.4769, allocations: 0.8787 MB / 0.521 GB, free: 7.332 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.4769, allocations: 0 / 0.521 GB, free: 7.332 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007573/0.4777, allocations: 0.5141 MB / 0.5215 GB, free: 6.828 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.4784, allocations: 95.19 kB / 0.5216 GB, free: 6.742 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008913/0.4873, allocations: 4.672 MB / 0.5261 GB, free: 1.977 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004638/0.4877, allocations: 0.8536 MB / 0.527 GB, free: 1.094 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002025/0.4898, allocations: 1.788 MB / 0.5287 GB, free: 15.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005077/0.4903, allocations: 219.3 kB / 0.5289 GB, free: 15.12 MB / 446.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4903, allocations: 0 / 0.5289 GB, free: 15.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08759/0.5779, allocations: 45.66 MB / 0.5735 GB, free: 1.547 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.3, allocations: 10.64 kB / 0.5735 GB, free: 1.539 MB / 478.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/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: 14.126703265996184]