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.001157/0.001157, allocations: 110.6 kB / 17.73 MB, free: 5.32 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.001228/0.001228, allocations: 190.9 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.407/1.407, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001451/0.001451, allocations: 51.94 kB / 330.3 MB, free: 1.461 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08848/0.08995, allocations: 46.62 MB / 377 MB, free: 2.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.2108/0.3008, allocations: 13.33 MB / 390.3 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01767/0.3185, allocations: 15.55 MB / 405.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002736/0.3189, allocations: 3.5 kB / 405.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004276/0.3194, allocations: 76.8 kB / 405.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004139/0.3198, allocations: 108.9 kB / 406 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02286/0.3427, allocations: 5.967 MB / 412 MB, free: 6.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006265/0.3433, allocations: 334.3 kB / 412.3 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.601e-05/0.3434, allocations: 20.23 kB / 412.3 MB, free: 6.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005583/0.344, allocations: 233.3 kB / 412.6 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001862/0.3442, allocations: 99.16 kB / 412.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.3442, allocations: 13.78 kB / 412.7 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01553/0.3597, allocations: 6.741 MB / 419.4 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001268/0.3599, allocations: 48.39 kB / 419.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002226/0.3601, allocations: 104.4 kB / 419.6 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01207/0.3722, allocations: 3.903 MB / 423.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3723, allocations: 0 / 423.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3723, allocations: 4 kB / 423.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.3723, allocations: 0 / 423.5 MB, free: 15.35 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.003378/0.3757, allocations: 1.014 MB / 424.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.3757, allocations: 8.031 kB / 424.5 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.314e-05/0.3758, allocations: 54.73 kB / 424.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001421/0.3772, allocations: 179.5 kB / 424.7 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003353/0.3776, allocations: 260.1 kB / 425 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.391e-05/0.3776, allocations: 12.81 kB / 425 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.3777, allocations: 31.89 kB / 425 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003139/0.3808, allocations: 0.9011 MB / 425.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3809, allocations: 0 / 425.9 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.015e-05/0.3809, allocations: 12.88 kB / 425.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.3809, allocations: 8 kB / 425.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003275/0.3842, allocations: 0.9772 MB / 426.9 MB, free: 11.79 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.001802/0.386, allocations: 1.346 MB / 428.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002587/0.3886, allocations: 0.7244 MB / 429 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000299/0.389, allocations: 160.8 kB / 429.1 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07954/0.4685, allocations: 37.55 MB / 466.7 MB, free: 15.41 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.4686, allocations: 34.56 kB / 466.7 MB, free: 15.37 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.725e-06/0.4686, allocations: 0 / 466.7 MB, free: 15.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005688/0.4743, allocations: 1.369 MB / 468.1 MB, free: 14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.4744, allocations: 55.41 kB / 468.1 MB, free: 13.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.4745, allocations: 121.8 kB / 468.3 MB, free: 13.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.4747, allocations: 33.7 kB / 468.3 MB, free: 13.76 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.598e-05/0.4747, allocations: 112.9 kB / 468.4 MB, free: 13.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.4749, allocations: 119 kB / 468.5 MB, free: 13.53 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003211/0.4753, allocations: 161.6 kB / 468.7 MB, free: 13.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4754, allocations: 330.8 kB / 469 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006425/0.4761, allocations: 335.8 kB / 469.3 MB, free: 12.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007332/0.4768, allocations: 410 kB / 469.7 MB, free: 12.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.4782, allocations: 0.7065 MB / 470.4 MB, free: 11.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.438e-06/0.4782, allocations: 0 / 470.4 MB, free: 11.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001892/0.4801, allocations: 0.8765 MB / 471.3 MB, free: 10.66 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.4801, allocations: 7.938 kB / 471.3 MB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.4801, allocations: 7.984 kB / 471.3 MB, free: 10.65 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.39e-05/0.4802, allocations: 7.938 kB / 471.3 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006543/0.4808, allocations: 179.9 kB / 471.5 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.568e-05/0.4809, allocations: 8 kB / 471.5 MB, free: 10.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000342/0.4812, allocations: 27.83 kB / 471.6 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.4813, allocations: 63.94 kB / 471.6 MB, free: 10.37 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.0002579/0.4816, allocations: 149.6 kB / 471.8 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.4818, allocations: 19.84 kB / 471.8 MB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007976/0.4898, allocations: 7.97 MB / 479.7 MB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.945e-05/0.4898, allocations: 27.95 kB / 479.8 MB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.987e-06/0.4899, allocations: 0 / 479.8 MB, free: 2.172 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.4899, allocations: 3.984 kB / 479.8 MB, free: 2.168 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003279/0.4932, allocations: 3.596 MB / 483.4 MB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/0.4932, allocations: 0 / 483.4 MB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006566/0.4939, allocations: 111.8 kB / 483.5 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.236e-05/0.4939, allocations: 3.938 kB / 483.5 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.499e-05/0.494, allocations: 15.98 kB / 483.5 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.494, allocations: 0 / 483.5 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.494, allocations: 4.875 kB / 483.5 MB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/0.4965, allocations: 1.831 MB / 485.3 MB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.4967, allocations: 148.4 kB / 485.5 MB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.255e-05/0.4968, allocations: 16 kB / 485.5 MB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003095/0.4971, allocations: 8 kB / 485.5 MB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.4972, allocations: 31.95 kB / 485.5 MB, free: 12.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.329e-05/0.4972, allocations: 15.98 kB / 485.6 MB, free: 12.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.185e-05/0.4973, allocations: 99.14 kB / 485.7 MB, free: 11.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.543e-06/0.4973, allocations: 0 / 485.7 MB, free: 11.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003474/0.5008, allocations: 0.9902 MB / 486.6 MB, free: 11 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.008619/0.5095, allocations: 3.435 MB / 490.1 MB, free: 7.539 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002023/0.5115, allocations: 0.8993 MB / 491 MB, free: 6.641 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.74e-06/0.5116, allocations: 0.5 kB / 491 MB, free: 6.641 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009273/0.5125, allocations: 0.5947 MB / 491.6 MB, free: 6.047 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008231/0.5133, allocations: 89.94 kB / 491.7 MB, free: 5.961 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009717/0.5231, allocations: 4.663 MB / 496.3 MB, free: 1.172 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005685/0.5237, allocations: 0.8536 MB / 497.2 MB, free: 300 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002032/0.5258, allocations: 1.791 MB / 499 MB, free: 14.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005207/0.5263, allocations: 219.2 kB / 499.2 MB, free: 14.29 MB / 430.1 MB Notification: Performance of SimCode: time 1.573e-06/0.5263, allocations: 0 / 499.2 MB, free: 14.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08972/0.616, allocations: 45.52 MB / 0.5319 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/11.09, allocations: 0 / 0.5319 GB, free: 0.6055 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 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.csv","/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