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.001642/0.001642, allocations: 112.4 kB / 17.05 MB, free: 6.086 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.001966/0.001967, allocations: 192 kB / 17.99 MB, free: 5.184 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.311/1.311, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009654/0.0009654, allocations: 51.92 kB / 353.1 MB, free: 1.422 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2656, allocations: 49.43 MB / 402.5 MB, free: 7.836 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01595/0.2816, allocations: 13.33 MB / 415.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0171/0.2987, allocations: 15.56 MB / 431.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.2989, allocations: 0 / 431.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003577/0.2993, allocations: 79.5 kB / 431.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003727/0.2997, allocations: 115.2 kB / 431.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01586/0.3156, allocations: 5.961 MB / 437.6 MB, free: 4.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005367/0.3161, allocations: 350.5 kB / 437.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.286e-05/0.3162, allocations: 17.62 kB / 437.9 MB, free: 4.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005573/0.3168, allocations: 223.1 kB / 438.1 MB, free: 4.113 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002176/0.317, allocations: 107.5 kB / 438.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.252e-05/0.3171, allocations: 16 kB / 438.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01279/0.3299, allocations: 6.759 MB / 445 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001127/0.33, allocations: 39.89 kB / 445.1 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001864/0.3302, allocations: 115.5 kB / 445.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009405/0.3396, allocations: 3.898 MB / 449.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3396, allocations: 0 / 449.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3397, allocations: 3.938 kB / 449.1 MB, free: 9.168 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.3397, allocations: 4 kB / 449.1 MB, free: 9.164 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.002917/0.3426, allocations: 1.018 MB / 450.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.925e-05/0.3427, allocations: 8.031 kB / 450.1 MB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.919e-05/0.3427, allocations: 62.67 kB / 450.2 MB, free: 8.016 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001448/0.3442, allocations: 176.6 kB / 450.3 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003454/0.3445, allocations: 260 kB / 450.6 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.3446, allocations: 20.81 kB / 450.6 MB, free: 7.531 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.477e-05/0.3446, allocations: 27.94 kB / 450.6 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003233/0.3479, allocations: 0.9011 MB / 451.5 MB, free: 6.582 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.569e-05/0.3479, allocations: 0 / 451.5 MB, free: 6.582 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.236e-05/0.348, allocations: 8 kB / 451.6 MB, free: 6.574 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.355e-06/0.348, allocations: 8 kB / 451.6 MB, free: 6.566 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003281/0.3513, allocations: 0.9734 MB / 452.5 MB, free: 5.59 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.001702/0.353, allocations: 1.335 MB / 453.9 MB, free: 4.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002643/0.3556, allocations: 0.7364 MB / 454.6 MB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002747/0.3559, allocations: 160.8 kB / 454.8 MB, free: 3.215 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07582/0.4318, allocations: 37.56 MB / 492.3 MB, free: 9.207 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.655e-05/0.4318, allocations: 30.56 kB / 492.4 MB, free: 9.168 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 1.984e-06/0.4318, allocations: 0 / 492.4 MB, free: 9.168 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00532/0.4372, allocations: 1.365 MB / 493.7 MB, free: 7.797 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.4372, allocations: 55.41 kB / 493.8 MB, free: 7.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001155/0.4374, allocations: 125.7 kB / 493.9 MB, free: 7.598 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.639e-05/0.4375, allocations: 33.7 kB / 493.9 MB, free: 7.559 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.464e-05/0.4375, allocations: 120.8 kB / 494 MB, free: 7.438 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001542/0.4377, allocations: 123 kB / 494.2 MB, free: 7.316 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000276/0.438, allocations: 165.3 kB / 494.3 MB, free: 7.148 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/0.4381, allocations: 327.2 kB / 494.6 MB, free: 6.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006439/0.4387, allocations: 335.8 kB / 495 MB, free: 6.492 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007038/0.4395, allocations: 411.3 kB / 495.4 MB, free: 6.062 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00134/0.4408, allocations: 0.7113 MB / 496.1 MB, free: 5.324 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.524e-06/0.4408, allocations: 12 kB / 496.1 MB, free: 5.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001842/0.4427, allocations: 0.868 MB / 497 MB, free: 4.438 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.4427, allocations: 11.94 kB / 497 MB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.4427, allocations: 0 / 497 MB, free: 4.426 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/0.4428, allocations: 4 kB / 497 MB, free: 4.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006841/0.4434, allocations: 184 kB / 497.2 MB, free: 4.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.09e-05/0.4435, allocations: 7.938 kB / 497.2 MB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003536/0.4438, allocations: 27.84 kB / 497.2 MB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/0.4439, allocations: 67.92 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.0002504/0.4442, allocations: 137.8 kB / 497.4 MB, free: 3.996 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.4444, allocations: 19.84 kB / 497.4 MB, free: 3.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007265/0.4516, allocations: 7.962 MB / 0.4935 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.337e-05/0.4517, allocations: 27.95 kB / 0.4936 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.4517, allocations: 3.938 kB / 0.4936 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.4517, allocations: 3.984 kB / 0.4936 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003002/0.4547, allocations: 3.6 MB / 0.4971 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.4548, allocations: 3.938 kB / 0.4971 GB, free: 8.098 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006579/0.4554, allocations: 107.8 kB / 0.4972 GB, free: 7.992 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.074e-05/0.4555, allocations: 7.938 kB / 0.4972 GB, free: 7.984 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.868e-05/0.4555, allocations: 15.94 kB / 0.4972 GB, free: 7.969 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.4555, allocations: 4 kB / 0.4972 GB, free: 7.965 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.4555, allocations: 0 / 0.4972 GB, free: 7.965 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002617/0.4582, allocations: 1.839 MB / 0.499 GB, free: 6.105 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.4583, allocations: 148.6 kB / 0.4992 GB, free: 5.941 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.4584, allocations: 11.94 kB / 0.4992 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000314/0.4587, allocations: 15.98 kB / 0.4992 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.167e-05/0.4588, allocations: 27.95 kB / 0.4992 GB, free: 5.887 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.841e-05/0.4588, allocations: 16 kB / 0.4992 GB, free: 5.871 MB / 430.1 MB Notification: Performance of sorting global known variables: time 6.575e-05/0.4589, allocations: 95.2 kB / 0.4993 GB, free: 5.777 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4589, allocations: 0 / 0.4993 GB, free: 5.777 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002659/0.4616, allocations: 0.9902 MB / 0.5003 GB, free: 4.785 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.007086/0.4687, allocations: 3.443 MB / 0.5036 GB, free: 1.312 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.4703, allocations: 0.8955 MB / 0.5045 GB, free: 424 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.541e-06/0.4703, allocations: 4.125 kB / 0.5045 GB, free: 420 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007705/0.4711, allocations: 0.5918 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.0006688/0.4718, allocations: 88.06 kB / 0.5052 GB, free: 15.73 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007929/0.4797, allocations: 4.664 MB / 0.5097 GB, free: 10.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.4802, allocations: 0.8497 MB / 0.5106 GB, free: 10.06 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001894/0.4821, allocations: 1.787 MB / 0.5123 GB, free: 8.27 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004988/0.4826, allocations: 219.3 kB / 0.5125 GB, free: 8.055 MB / 446.1 MB Notification: Performance of SimCode: time 1.252e-06/0.4826, allocations: 0 / 0.5125 GB, free: 8.055 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.277/0.7596, allocations: 45.57 MB / 0.557 GB, free: 114 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/11.24, allocations: 5.547 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/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