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.005462/0.005462, allocations: 114.5 kB / 21.97 MB, free: 5.227 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.001597/0.001597, allocations: 216.2 kB / 25.28 MB, free: 3.246 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.296/1.296, allocations: 207.6 MB / 236 MB, free: 9.996 MB / 190.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",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.001681/0.001681, allocations: 55.92 kB / 348.8 MB, free: 9.195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2197, allocations: 49.16 MB / 398 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01258/0.2323, allocations: 13.45 MB / 411.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01869/0.251, allocations: 15.65 MB / 427.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.2511, allocations: 1.125 kB / 427.1 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003384/0.2515, allocations: 72.75 kB / 427.1 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003911/0.2519, allocations: 115.3 kB / 427.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0162/0.2681, allocations: 5.965 MB / 433.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005022/0.2686, allocations: 341.9 kB / 433.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.197e-05/0.2686, allocations: 12.3 kB / 433.6 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004782/0.2691, allocations: 230.8 kB / 433.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.2693, allocations: 112.4 kB / 433.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.754e-05/0.2693, allocations: 13.34 kB / 433.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01322/0.2825, allocations: 6.762 MB / 440.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.296e-05/0.2826, allocations: 43.83 kB / 440.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001916/0.2828, allocations: 107.6 kB / 440.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008388/0.2912, allocations: 3.902 MB / 444.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.2912, allocations: 4 kB / 444.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.2912, allocations: 0 / 444.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.742e-06/0.2912, allocations: 0 / 444.7 MB, free: 4.156 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.002561/0.2938, allocations: 0.9351 MB / 445.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.997e-05/0.2938, allocations: 15.98 kB / 445.7 MB, free: 3.172 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.48e-05/0.2938, allocations: 4.625 kB / 445.7 MB, free: 3.168 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.003e-05/0.2939, allocations: 58.73 kB / 445.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/0.2953, allocations: 180.6 kB / 445.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.2956, allocations: 190.3 kB / 446.1 MB, free: 2.715 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.63e-05/0.2957, allocations: 20.56 kB / 446.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.764e-05/0.2957, allocations: 27.89 kB / 446.2 MB, free: 2.668 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003122/0.2988, allocations: 0.9089 MB / 447.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.2988, allocations: 0 / 447.1 MB, free: 1.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.2989, allocations: 12 kB / 447.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.2989, allocations: 4 kB / 447.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003205/0.3021, allocations: 0.9695 MB / 448 MB, free: 0.75 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.001685/0.3038, allocations: 1.326 MB / 449.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.3063, allocations: 0.7244 MB / 450.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00028/0.3066, allocations: 148.8 kB / 450.2 MB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06837/0.375, allocations: 19.64 MB / 469.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.937e-05/0.375, allocations: 34.56 kB / 469.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=33): time 1.784e-06/0.375, allocations: 0 / 469.9 MB, free: 10.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.005139/0.3802, allocations: 1.372 MB / 471.3 MB, free: 9.328 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.91e-05/0.3802, allocations: 55.41 kB / 471.3 MB, free: 9.262 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001128/0.3803, allocations: 117.8 kB / 471.5 MB, free: 9.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.737e-05/0.3804, allocations: 33.7 kB / 471.5 MB, free: 9.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.304e-05/0.3805, allocations: 112.9 kB / 471.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000148/0.3806, allocations: 119 kB / 471.7 MB, free: 8.867 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003024/0.3809, allocations: 165.6 kB / 471.9 MB, free: 8.699 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.3811, allocations: 330.8 kB / 472.2 MB, free: 8.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006488/0.3817, allocations: 335.8 kB / 472.5 MB, free: 8.039 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007316/0.3825, allocations: 411.2 kB / 472.9 MB, free: 7.609 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001389/0.3838, allocations: 0.7076 MB / 473.6 MB, free: 6.875 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.3839, allocations: 0 / 473.6 MB, free: 6.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001893/0.3857, allocations: 0.876 MB / 474.5 MB, free: 5.992 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.3858, allocations: 7.938 kB / 474.5 MB, free: 5.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.3858, allocations: 4.375 kB / 474.5 MB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.3858, allocations: 4 kB / 474.5 MB, free: 5.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000638/0.3864, allocations: 175.8 kB / 474.7 MB, free: 5.805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/0.3864, allocations: 7.938 kB / 474.7 MB, free: 5.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003321/0.3868, allocations: 39.7 kB / 474.7 MB, free: 5.758 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.3869, allocations: 59.94 kB / 474.8 MB, free: 5.699 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.0002364/0.3871, allocations: 145.8 kB / 475 MB, free: 5.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001719/0.3873, allocations: 19.84 kB / 475 MB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00833/0.3956, allocations: 8.497 MB / 483.5 MB, free: 13.01 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.478e-05/0.3957, allocations: 31.94 kB / 483.5 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3957, allocations: 4 kB / 483.5 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.3957, allocations: 7.984 kB / 483.5 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003404/0.3991, allocations: 3.767 MB / 487.3 MB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/0.3991, allocations: 0 / 487.3 MB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006263/0.3997, allocations: 107.8 kB / 487.4 MB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.947e-06/0.3997, allocations: 7.938 kB / 487.4 MB, free: 8.832 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.308e-05/0.3998, allocations: 11.98 kB / 487.4 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.3998, allocations: 0 / 487.4 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3998, allocations: 0 / 487.4 MB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002525/0.4023, allocations: 1.878 MB / 489.3 MB, free: 6.922 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.942e-05/0.4024, allocations: 79.25 kB / 489.4 MB, free: 6.844 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.4024, allocations: 7.938 kB / 489.4 MB, free: 6.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002775/0.4027, allocations: 16 kB / 489.4 MB, free: 6.82 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.482e-05/0.4028, allocations: 31.94 kB / 489.4 MB, free: 6.789 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.954e-05/0.4029, allocations: 11.98 kB / 489.4 MB, free: 6.777 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.081e-05/0.4029, allocations: 95.33 kB / 489.5 MB, free: 6.684 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4029, allocations: 288 / 489.5 MB, free: 6.684 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002526/0.4055, allocations: 0.9902 MB / 490.5 MB, free: 5.691 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.006837/0.4123, allocations: 3.471 MB / 494 MB, free: 2.191 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.4139, allocations: 0.9028 MB / 494.9 MB, free: 1.289 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4139, allocations: 0 / 494.9 MB, free: 1.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007498/0.4147, allocations: 0.5205 MB / 495.4 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006616/0.4154, allocations: 88.34 kB / 495.5 MB, free: 0.6836 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007772/0.4231, allocations: 4.679 MB / 0.4884 GB, free: 11.87 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004482/0.4236, allocations: 0.8575 MB / 0.4893 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002021/0.4256, allocations: 1.78 MB / 0.491 GB, free: 9.203 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004879/0.4261, allocations: 215.3 kB / 0.4912 GB, free: 8.992 MB / 414.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4261, allocations: 0 / 0.4912 GB, free: 8.992 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08216/0.5083, allocations: 46.68 MB / 0.5368 GB, free: 10.14 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.79, allocations: 8.062 kB / 0.5368 GB, free: 10.13 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.543495353020262]