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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00179/0.00179, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002075/0.002075, allocations: 182.6 kB / 23.7 MB, free: 4.414 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 43.92 kB / 371.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2525, allocations: 52.17 MB / 423.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01755/0.2701, allocations: 12.21 MB / 435.6 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01889/0.289, allocations: 13.63 MB / 449.2 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001583/0.2891, allocations: 4 kB / 449.2 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003377/0.2895, allocations: 75.45 kB / 449.3 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003313/0.2898, allocations: 103.3 kB / 449.4 MB, free: 3.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01706/0.3069, allocations: 5.925 MB / 455.3 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005001/0.3074, allocations: 346.5 kB / 455.7 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.105e-05/0.3074, allocations: 13.75 kB / 455.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004604/0.3079, allocations: 215 kB / 455.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001672/0.308, allocations: 99.59 kB / 456 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.086e-05/0.3081, allocations: 12 kB / 456 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01288/0.321, allocations: 6.458 MB / 462.5 MB, free: 6.902 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001123/0.3211, allocations: 47.83 kB / 462.5 MB, free: 6.855 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.3212, allocations: 95.64 kB / 462.6 MB, free: 6.762 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00936/0.3306, allocations: 3.905 MB / 466.5 MB, free: 2.848 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3306, allocations: 3.938 kB / 466.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3306, allocations: 0 / 466.5 MB, free: 2.844 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.3306, allocations: 0 / 466.5 MB, free: 2.844 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.002537/0.3331, allocations: 0.9351 MB / 467.4 MB, free: 1.875 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3332, allocations: 12.03 kB / 467.5 MB, free: 1.863 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.732e-05/0.3333, allocations: 58.72 kB / 467.5 MB, free: 1.797 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001337/0.3346, allocations: 176.7 kB / 467.7 MB, free: 1.625 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.335, allocations: 206.1 kB / 467.9 MB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/0.335, allocations: 16.81 kB / 467.9 MB, free: 1.383 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.059e-05/0.335, allocations: 23.94 kB / 467.9 MB, free: 1.359 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003096/0.3381, allocations: 0.9592 MB / 468.9 MB, free: 376 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.41e-05/0.3382, allocations: 3.938 kB / 468.9 MB, free: 372 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.033e-05/0.3382, allocations: 8 kB / 468.9 MB, free: 364 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3382, allocations: 8 kB / 468.9 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003209/0.3414, allocations: 0.9618 MB / 469.9 MB, free: 15.38 MB / 382.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.001571/0.343, allocations: 0.9471 MB / 470.8 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.3455, allocations: 0.7247 MB / 471.5 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.3458, allocations: 157.6 kB / 471.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07094/0.4167, allocations: 19.72 MB / 491.4 MB, free: 9.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/0.4168, allocations: 42.56 kB / 491.5 MB, free: 9.699 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.325e-06/0.4168, allocations: 0 / 491.5 MB, free: 9.699 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005281/0.4221, allocations: 1.36 MB / 492.8 MB, free: 8.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.584e-05/0.4221, allocations: 55.41 kB / 492.9 MB, free: 8.266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.4223, allocations: 121.7 kB / 493 MB, free: 8.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.229e-05/0.4223, allocations: 37.64 kB / 493 MB, free: 8.094 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.782e-05/0.4224, allocations: 120.9 kB / 493.1 MB, free: 7.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.4226, allocations: 119 kB / 493.3 MB, free: 7.855 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/0.4229, allocations: 169.5 kB / 493.4 MB, free: 7.684 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001602/0.423, allocations: 326.8 kB / 493.7 MB, free: 7.355 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006616/0.4237, allocations: 335.8 kB / 494.1 MB, free: 7.027 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007285/0.4244, allocations: 403.5 kB / 494.5 MB, free: 6.605 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/0.4258, allocations: 0.7153 MB / 495.2 MB, free: 5.863 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.157e-06/0.4258, allocations: 0 / 495.2 MB, free: 5.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001937/0.4277, allocations: 0.8759 MB / 496.1 MB, free: 4.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.4278, allocations: 7.938 kB / 496.1 MB, free: 4.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.4278, allocations: 4 kB / 496.1 MB, free: 4.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.4278, allocations: 4 kB / 496.1 MB, free: 4.965 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006258/0.4284, allocations: 171.8 kB / 496.2 MB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.282e-05/0.4284, allocations: 7.938 kB / 496.3 MB, free: 4.789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003294/0.4288, allocations: 35.83 kB / 496.3 MB, free: 4.754 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001092/0.4289, allocations: 59.94 kB / 496.3 MB, free: 4.695 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.0002678/0.4291, allocations: 145.9 kB / 496.5 MB, free: 4.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.4293, allocations: 19.84 kB / 496.5 MB, free: 4.523 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008936/0.4382, allocations: 8.502 MB / 0.4932 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.613e-05/0.4382, allocations: 31.95 kB / 0.4932 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/0.4383, allocations: 0 / 0.4932 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.4383, allocations: 7.984 kB / 0.4932 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003826/0.4421, allocations: 3.72 MB / 0.4968 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.4421, allocations: 0 / 0.4968 GB, free: 7.984 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006482/0.4427, allocations: 103.8 kB / 0.4969 GB, free: 7.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.105e-06/0.4428, allocations: 7.938 kB / 0.4969 GB, free: 7.875 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/0.4428, allocations: 15.98 kB / 0.497 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.4428, allocations: 0 / 0.497 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.4428, allocations: 8 kB / 0.497 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002846/0.4457, allocations: 1.889 MB / 0.4988 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.408e-05/0.4458, allocations: 67.38 kB / 0.4989 GB, free: 5.875 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.597e-05/0.4458, allocations: 15.94 kB / 0.4989 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.4461, allocations: 12 kB / 0.4989 GB, free: 5.848 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.341e-05/0.4462, allocations: 27.94 kB / 0.4989 GB, free: 5.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.052e-05/0.4462, allocations: 19.98 kB / 0.499 GB, free: 5.801 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.691e-05/0.4463, allocations: 91.27 kB / 0.499 GB, free: 5.711 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4463, allocations: 0 / 0.499 GB, free: 5.711 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00322/0.4495, allocations: 0.9902 MB / 0.5 GB, free: 4.719 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.007691/0.4572, allocations: 3.475 MB / 0.5034 GB, free: 1.215 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00179/0.459, allocations: 0.8838 MB / 0.5043 GB, free: 340 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.459, allocations: 0 / 0.5043 GB, free: 340 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008441/0.4599, allocations: 0.5288 MB / 0.5048 GB, free: 15.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006542/0.4605, allocations: 92.12 kB / 0.5049 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008766/0.4693, allocations: 4.696 MB / 0.5095 GB, free: 10.89 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.4696, allocations: 259.2 kB / 0.5097 GB, free: 10.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002185/0.4717, allocations: 1.784 MB / 0.5114 GB, free: 8.828 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000486/0.4722, allocations: 219.3 kB / 0.5117 GB, free: 8.613 MB / 430.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4722, allocations: 0 / 0.5117 GB, free: 8.613 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2755/0.7478, allocations: 46.86 MB / 0.5574 GB, free: 88.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.33, allocations: 0 / 0.5574 GB, free: 88.81 MB / 446.1 MB " [Timeout remaining time 646] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.987429312895983]