Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001569/0.001569, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001935/0.001935, allocations: 205.8 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 51.92 kB / 378.5 MB, free: 2.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2479, allocations: 53.37 MB / 431.9 MB, free: 6.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0169/0.2648, allocations: 12.31 MB / 444.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01868/0.2835, allocations: 13.63 MB / 457.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001551/0.2836, allocations: 3.938 kB / 457.9 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003489/0.284, allocations: 71.56 kB / 457.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003908/0.2844, allocations: 111.2 kB / 458 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01564/0.3, allocations: 5.929 MB / 464 MB, free: 6.23 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004949/0.3005, allocations: 346.5 kB / 464.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.764e-05/0.3006, allocations: 13.8 kB / 464.3 MB, free: 5.875 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004796/0.301, allocations: 223.1 kB / 464.5 MB, free: 5.656 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001698/0.3012, allocations: 103.6 kB / 464.6 MB, free: 5.555 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.659e-05/0.3013, allocations: 16 kB / 464.7 MB, free: 5.539 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01247/0.3137, allocations: 6.74 MB / 471.4 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001274/0.3138, allocations: 47.77 kB / 471.4 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.314, allocations: 91.64 kB / 471.5 MB, free: 14.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009467/0.3235, allocations: 3.909 MB / 475.4 MB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.3235, allocations: 0 / 475.4 MB, free: 10.74 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3235, allocations: 0 / 475.4 MB, free: 10.74 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.3235, allocations: 0 / 475.4 MB, free: 10.74 MB / 382.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.002736/0.3262, allocations: 0.9467 MB / 476.4 MB, free: 9.758 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001016/0.3263, allocations: 12.03 kB / 476.4 MB, free: 9.746 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.29e-05/0.3264, allocations: 62.73 kB / 476.5 MB, free: 9.676 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/0.3278, allocations: 172.6 kB / 476.6 MB, free: 9.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.3282, allocations: 206.2 kB / 476.8 MB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.938e-05/0.3282, allocations: 16.81 kB / 476.8 MB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.596e-05/0.3282, allocations: 27.94 kB / 476.9 MB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003122/0.3314, allocations: 0.9552 MB / 477.8 MB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.3314, allocations: 0 / 477.8 MB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.3314, allocations: 8 kB / 477.8 MB, free: 8.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.072e-05/0.3314, allocations: 8 kB / 477.8 MB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003133/0.3346, allocations: 0.9617 MB / 478.8 MB, free: 7.273 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.00161/0.3362, allocations: 0.9472 MB / 479.8 MB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002472/0.3386, allocations: 0.7246 MB / 480.5 MB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002835/0.3389, allocations: 156.8 kB / 480.6 MB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07378/0.4127, allocations: 20.64 MB / 0.4895 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.4127, allocations: 34.56 kB / 0.4896 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.574e-06/0.4127, allocations: 0 / 0.4896 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005164/0.4179, allocations: 1.361 MB / 0.4909 GB, free: 15.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.18e-05/0.418, allocations: 55.41 kB / 0.4909 GB, free: 15.24 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.4181, allocations: 125.7 kB / 0.4911 GB, free: 15.11 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.126e-05/0.4182, allocations: 33.7 kB / 0.4911 GB, free: 15.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.828e-05/0.4183, allocations: 120.8 kB / 0.4912 GB, free: 14.95 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.4184, allocations: 126.9 kB / 0.4913 GB, free: 14.82 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002804/0.4187, allocations: 157.6 kB / 0.4915 GB, free: 14.66 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.4188, allocations: 326.8 kB / 0.4918 GB, free: 14.34 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006588/0.4195, allocations: 339.8 kB / 0.4921 GB, free: 14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007325/0.4202, allocations: 403.5 kB / 0.4925 GB, free: 13.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.4216, allocations: 0.7075 MB / 0.4932 GB, free: 12.85 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.4216, allocations: 4 kB / 0.4932 GB, free: 12.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001908/0.4235, allocations: 0.8719 MB / 0.494 GB, free: 11.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.4235, allocations: 15.92 kB / 0.4941 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.4235, allocations: 0 / 0.4941 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.005e-05/0.4235, allocations: 4 kB / 0.4941 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000655/0.4242, allocations: 175.7 kB / 0.4942 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.4242, allocations: 4 kB / 0.4942 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003442/0.4246, allocations: 36.08 kB / 0.4943 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001163/0.4247, allocations: 63.94 kB / 0.4943 GB, free: 11.67 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.0002508/0.4249, allocations: 141.7 kB / 0.4945 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.4251, allocations: 23.83 kB / 0.4945 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00891/0.434, allocations: 8.49 MB / 0.5028 GB, free: 2.992 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-05/0.434, allocations: 31.95 kB / 0.5028 GB, free: 2.961 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.954e-06/0.434, allocations: 4 kB / 0.5028 GB, free: 2.957 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.434, allocations: 3.984 kB / 0.5028 GB, free: 2.953 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003646/0.4377, allocations: 3.728 MB / 0.5065 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.692e-06/0.4377, allocations: 384 / 0.5065 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006259/0.4383, allocations: 111.8 kB / 0.5066 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.4383, allocations: 3.938 kB / 0.5066 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.247e-05/0.4384, allocations: 11.98 kB / 0.5066 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.249e-06/0.4384, allocations: 7.938 kB / 0.5066 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.4384, allocations: 0 / 0.5066 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002737/0.4411, allocations: 1.882 MB / 0.5084 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.419e-05/0.4412, allocations: 71.38 kB / 0.5085 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.171e-05/0.4412, allocations: 7.938 kB / 0.5085 GB, free: 12.86 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002813/0.4415, allocations: 16 kB / 0.5085 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.796e-05/0.4416, allocations: 31.94 kB / 0.5085 GB, free: 12.81 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.836e-05/0.4417, allocations: 11.98 kB / 0.5086 GB, free: 12.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.247e-05/0.4417, allocations: 95.2 kB / 0.5086 GB, free: 12.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4417, allocations: 0 / 0.5086 GB, free: 12.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002683/0.4444, allocations: 1.006 MB / 0.5096 GB, free: 11.7 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.007051/0.4515, allocations: 3.49 MB / 0.513 GB, free: 8.176 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00171/0.4532, allocations: 0.8876 MB / 0.5139 GB, free: 7.289 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.4532, allocations: 0.5 kB / 0.5139 GB, free: 7.289 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007661/0.4539, allocations: 0.5322 MB / 0.5144 GB, free: 6.758 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006975/0.4546, allocations: 84.08 kB / 0.5145 GB, free: 6.676 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008881/0.4635, allocations: 4.708 MB / 0.5191 GB, free: 1.836 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00026/0.4638, allocations: 255.2 kB / 0.5193 GB, free: 1.562 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002147/0.4659, allocations: 1.78 MB / 0.5211 GB, free: 15.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004806/0.4664, allocations: 219.2 kB / 0.5213 GB, free: 15.57 MB / 446.1 MB Notification: Performance of SimCode: time 9.91e-07/0.4664, allocations: 0 / 0.5213 GB, free: 15.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2711/0.7375, allocations: 47.32 MB / 0.5675 GB, free: 79.96 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.29, allocations: 10.72 kB / 0.5675 GB, free: 79.95 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 17.08083428099053]