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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_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.001238/0.001238, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.001185/0.001185, allocations: 192 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 43.92 kB / 353.1 MB, free: 1.418 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2115/0.2129, allocations: 49.45 MB / 402.5 MB, free: 7.816 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01597/0.2289, allocations: 13.33 MB / 415.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01793/0.2469, allocations: 15.56 MB / 431.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.247, allocations: 0 / 431.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003199/0.2474, allocations: 79.56 kB / 431.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003144/0.2477, allocations: 115.2 kB / 431.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01421/0.262, allocations: 5.956 MB / 437.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004639/0.2624, allocations: 350.5 kB / 437.9 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.382e-05/0.2625, allocations: 17.62 kB / 437.9 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004484/0.263, allocations: 219 kB / 438.2 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001631/0.2631, allocations: 107.6 kB / 438.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.137e-05/0.2632, allocations: 16 kB / 438.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0122/0.2754, allocations: 6.763 MB / 445 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.478e-05/0.2755, allocations: 39.84 kB / 445.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001614/0.2757, allocations: 107.6 kB / 445.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007094/0.2828, allocations: 3.901 MB / 449.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2828, allocations: 7.938 kB / 449.1 MB, free: 9.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2828, allocations: 0 / 449.1 MB, free: 9.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.2828, allocations: 4 kB / 449.1 MB, free: 9.156 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.002355/0.2852, allocations: 1.018 MB / 450.1 MB, free: 8.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.2852, allocations: 8.031 kB / 450.1 MB, free: 8.078 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.117e-05/0.2853, allocations: 54.73 kB / 450.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001368/0.2867, allocations: 176.6 kB / 450.3 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000324/0.287, allocations: 260 kB / 450.6 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.287, allocations: 16.81 kB / 450.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.2871, allocations: 27.94 kB / 450.6 MB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.2901, allocations: 0.905 MB / 451.5 MB, free: 6.582 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2901, allocations: 4 kB / 451.6 MB, free: 6.578 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.2902, allocations: 8 kB / 451.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.2902, allocations: 8 kB / 451.6 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003173/0.2934, allocations: 0.9656 MB / 452.5 MB, free: 5.594 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.001634/0.295, allocations: 1.351 MB / 453.9 MB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002494/0.2975, allocations: 0.7364 MB / 454.6 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.2978, allocations: 156.8 kB / 454.8 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07778/0.3756, allocations: 37.55 MB / 492.3 MB, free: 9.211 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/0.3757, allocations: 38.56 kB / 492.4 MB, free: 9.164 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.184e-06/0.3757, allocations: 0 / 492.4 MB, free: 9.164 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005124/0.3808, allocations: 1.357 MB / 493.7 MB, free: 7.801 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.3809, allocations: 63.39 kB / 493.8 MB, free: 7.727 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001135/0.381, allocations: 125.7 kB / 493.9 MB, free: 7.594 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.458e-05/0.3811, allocations: 29.7 kB / 493.9 MB, free: 7.559 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.237e-05/0.3811, allocations: 116.8 kB / 494 MB, free: 7.441 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001336/0.3813, allocations: 123 kB / 494.2 MB, free: 7.32 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.3816, allocations: 169.7 kB / 494.3 MB, free: 7.148 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3817, allocations: 322.8 kB / 494.6 MB, free: 6.824 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006679/0.3824, allocations: 343.8 kB / 495 MB, free: 6.488 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007429/0.3832, allocations: 415.2 kB / 495.4 MB, free: 6.055 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001396/0.3846, allocations: 0.7153 MB / 496.1 MB, free: 5.312 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3846, allocations: 0 / 496.1 MB, free: 5.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001898/0.3865, allocations: 0.868 MB / 497 MB, free: 4.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.3865, allocations: 11.94 kB / 497 MB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3865, allocations: 0 / 497 MB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.3866, allocations: 8.25 kB / 497 MB, free: 4.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006623/0.3872, allocations: 179.8 kB / 497.2 MB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.3872, allocations: 4 kB / 497.2 MB, free: 4.238 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003207/0.3876, allocations: 31.78 kB / 497.2 MB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.3877, allocations: 67.91 kB / 497.3 MB, free: 4.141 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.0002286/0.3879, allocations: 137.8 kB / 497.4 MB, free: 3.996 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.3881, allocations: 19.84 kB / 497.4 MB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008239/0.3963, allocations: 7.962 MB / 0.4935 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.131e-05/0.3964, allocations: 27.95 kB / 0.4936 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.3964, allocations: 4 kB / 0.4936 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3964, allocations: 0 / 0.4936 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003357/0.3998, allocations: 3.604 MB / 0.4971 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.3998, allocations: 0 / 0.4971 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006257/0.4004, allocations: 119.8 kB / 0.4972 GB, free: 7.984 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.4004, allocations: 3.938 kB / 0.4972 GB, free: 7.98 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.927e-05/0.4005, allocations: 8 kB / 0.4972 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.476e-06/0.4005, allocations: 4 kB / 0.4972 GB, free: 7.969 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.4005, allocations: 0 / 0.4972 GB, free: 7.969 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002545/0.403, allocations: 1.847 MB / 0.499 GB, free: 6.102 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000112/0.4032, allocations: 152.4 kB / 0.4992 GB, free: 5.934 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.127e-05/0.4032, allocations: 7.938 kB / 0.4992 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002809/0.4035, allocations: 19.98 kB / 0.4992 GB, free: 5.906 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.764e-05/0.4036, allocations: 23.95 kB / 0.4992 GB, free: 5.883 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.039e-05/0.4037, allocations: 16 kB / 0.4992 GB, free: 5.867 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.42e-05/0.4037, allocations: 95.2 kB / 0.4993 GB, free: 5.773 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4037, allocations: 0 / 0.4993 GB, free: 5.773 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002535/0.4063, allocations: 0.9902 MB / 0.5003 GB, free: 4.781 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.006865/0.4132, allocations: 3.439 MB / 0.5036 GB, free: 1.312 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.4149, allocations: 0.9032 MB / 0.5045 GB, free: 416 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.4149, allocations: 4 kB / 0.5045 GB, free: 412 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008134/0.4157, allocations: 0.5841 MB / 0.5051 GB, free: 15.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006621/0.4164, allocations: 84.25 kB / 0.5052 GB, free: 15.74 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007608/0.424, allocations: 4.668 MB / 0.5097 GB, free: 10.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.4245, allocations: 0.8536 MB / 0.5106 GB, free: 10.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002017/0.4265, allocations: 1.78 MB / 0.5123 GB, free: 8.273 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004592/0.427, allocations: 215.3 kB / 0.5125 GB, free: 8.062 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.427, allocations: 7.938 kB / 0.5125 GB, free: 8.055 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.246/0.673, allocations: 45.57 MB / 0.557 GB, free: 114 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/11.07, allocations: 5.859 kB / 0.557 GB, free: 114 MB / 462.1 MB (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 --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) 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) Reference file matches