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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 114.5 kB / 17.73 MB, free: 5.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 187 kB / 18.67 MB, free: 4.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001646/0.001646, allocations: 51.92 kB / 330.3 MB, free: 1.445 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07874/0.08039, allocations: 46.61 MB / 377 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.161/0.2414, allocations: 13.33 MB / 390.3 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.2568, allocations: 15.55 MB / 405.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001749/0.2571, allocations: 0 / 405.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003374/0.2574, allocations: 80.42 kB / 405.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003159/0.2578, allocations: 111.5 kB / 406 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01659/0.2744, allocations: 5.963 MB / 412 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005227/0.2749, allocations: 337.4 kB / 412.3 MB, free: 6.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.873e-05/0.275, allocations: 15.7 kB / 412.3 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004325/0.2754, allocations: 232.5 kB / 412.6 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.2756, allocations: 99.38 kB / 412.7 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.863e-05/0.2756, allocations: 17.47 kB / 412.7 MB, free: 5.883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01316/0.2888, allocations: 6.74 MB / 419.4 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.2889, allocations: 43.89 kB / 419.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.2891, allocations: 105.7 kB / 419.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009128/0.2983, allocations: 3.903 MB / 423.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.2983, allocations: 0 / 423.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.2983, allocations: 0 / 423.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.2983, allocations: 0 / 423.5 MB, free: 15.32 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.003049/0.3014, allocations: 1.018 MB / 424.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.3014, allocations: 12.03 kB / 424.5 MB, free: 14.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.606e-05/0.3015, allocations: 58.73 kB / 424.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001402/0.3029, allocations: 176.6 kB / 424.7 MB, free: 14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004209/0.3034, allocations: 252.2 kB / 425 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.007e-05/0.3034, allocations: 21.62 kB / 425 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.3035, allocations: 27.89 kB / 425 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002986/0.3065, allocations: 0.9051 MB / 425.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3065, allocations: 0 / 425.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.062e-05/0.3065, allocations: 8 kB / 425.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.3065, allocations: 4 kB / 425.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003097/0.3096, allocations: 0.9695 MB / 426.9 MB, free: 11.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.001663/0.3113, allocations: 1.358 MB / 428.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00245/0.3138, allocations: 0.7245 MB / 429 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002825/0.3141, allocations: 156.8 kB / 429.1 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07843/0.3925, allocations: 37.55 MB / 466.7 MB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.345e-05/0.3926, allocations: 31.19 kB / 466.7 MB, free: 15.34 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.3926, allocations: 0 / 466.7 MB, free: 15.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005104/0.3977, allocations: 1.38 MB / 468.1 MB, free: 13.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.3978, allocations: 55.41 kB / 468.1 MB, free: 13.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.3979, allocations: 113.8 kB / 468.3 MB, free: 13.76 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.85e-05/0.398, allocations: 33.7 kB / 468.3 MB, free: 13.72 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.483e-05/0.3981, allocations: 112.9 kB / 468.4 MB, free: 13.61 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.3982, allocations: 122.9 kB / 468.5 MB, free: 13.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002899/0.3985, allocations: 161.6 kB / 468.7 MB, free: 13.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3986, allocations: 334.8 kB / 469 MB, free: 12.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000651/0.3993, allocations: 327.8 kB / 469.3 MB, free: 12.67 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007465/0.4001, allocations: 415.6 kB / 469.7 MB, free: 12.23 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.4015, allocations: 0.7026 MB / 470.4 MB, free: 11.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.4015, allocations: 0 / 470.4 MB, free: 11.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001882/0.4034, allocations: 0.8743 MB / 471.3 MB, free: 10.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.4034, allocations: 15.92 kB / 471.3 MB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.4034, allocations: 8.25 kB / 471.3 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.4035, allocations: 0 / 471.3 MB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006386/0.4041, allocations: 179.8 kB / 471.5 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.4041, allocations: 7.938 kB / 471.5 MB, free: 10.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003055/0.4044, allocations: 27.83 kB / 471.5 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.4046, allocations: 63.94 kB / 471.6 MB, free: 10.33 MB / 398.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.0002107/0.4048, allocations: 145.7 kB / 471.7 MB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.4049, allocations: 27.77 kB / 471.8 MB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008605/0.4136, allocations: 7.962 MB / 479.7 MB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.7e-05/0.4136, allocations: 27.95 kB / 479.8 MB, free: 2.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4137, allocations: 4 kB / 479.8 MB, free: 2.133 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.037e-05/0.4137, allocations: 3.984 kB / 479.8 MB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003487/0.4172, allocations: 3.592 MB / 483.4 MB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.231e-06/0.4172, allocations: 4 kB / 483.4 MB, free: 14.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006002/0.4178, allocations: 107.8 kB / 483.5 MB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.4178, allocations: 7.938 kB / 483.5 MB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.198e-05/0.4179, allocations: 15.98 kB / 483.5 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.4179, allocations: 0 / 483.5 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.4179, allocations: 0.75 kB / 483.5 MB, free: 14.14 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002628/0.4205, allocations: 1.839 MB / 485.3 MB, free: 12.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.4206, allocations: 148.4 kB / 485.5 MB, free: 12.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.374e-05/0.4207, allocations: 15.94 kB / 485.5 MB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.421, allocations: 8 kB / 485.5 MB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.305e-05/0.4211, allocations: 31.95 kB / 485.5 MB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.4211, allocations: 18.17 kB / 485.6 MB, free: 12.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000106/0.4212, allocations: 95.2 kB / 485.6 MB, free: 11.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4212, allocations: 0 / 485.6 MB, free: 11.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0028/0.4241, allocations: 0.9941 MB / 486.6 MB, free: 10.96 MB / 414.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.007389/0.4315, allocations: 3.425 MB / 490.1 MB, free: 7.504 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001623/0.4331, allocations: 0.911 MB / 491 MB, free: 6.594 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4331, allocations: 0 / 491 MB, free: 6.594 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007839/0.4339, allocations: 0.5908 MB / 491.6 MB, free: 6.004 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006134/0.4345, allocations: 84.88 kB / 491.7 MB, free: 5.926 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007945/0.4425, allocations: 4.665 MB / 496.3 MB, free: 1.137 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005196/0.443, allocations: 0.8536 MB / 497.2 MB, free: 264 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002045/0.4451, allocations: 1.784 MB / 499 MB, free: 14.47 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005121/0.4456, allocations: 219.2 kB / 499.2 MB, free: 14.26 MB / 430.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4456, allocations: 0 / 499.2 MB, free: 14.26 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08318/0.5288, allocations: 45.52 MB / 0.5319 GB, free: 0.5781 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/10.69, allocations: 8 kB / 0.5319 GB, free: 0.5703 MB / 462.1 MB (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 --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) 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) Reference file matches