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.001277/0.001277, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.001335/0.001335, allocations: 183.1 kB / 23.72 MB, free: 4.699 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.373/1.373, allocations: 225.6 MB / 252.5 MB, free: 13 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.001474/0.001474, allocations: 43.94 kB / 371.3 MB, free: 9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2392/0.2407, allocations: 52.19 MB / 423.5 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01676/0.2574, allocations: 13.44 MB / 436.9 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01881/0.2763, allocations: 15.66 MB / 452.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.2764, allocations: 4 kB / 452.6 MB, free: 1.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003699/0.2768, allocations: 79.48 kB / 452.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003603/0.2771, allocations: 107.2 kB / 452.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01547/0.2926, allocations: 5.977 MB / 458.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005238/0.2931, allocations: 350.5 kB / 459.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.969e-05/0.2932, allocations: 9.75 kB / 459.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004818/0.2937, allocations: 227 kB / 459.3 MB, free: 10.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.2939, allocations: 111.6 kB / 459.4 MB, free: 10.22 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.2939, allocations: 12 kB / 459.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01282/0.3067, allocations: 6.778 MB / 466.2 MB, free: 3.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.154e-05/0.3068, allocations: 43.78 kB / 466.2 MB, free: 3.387 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001612/0.3069, allocations: 111.6 kB / 466.3 MB, free: 3.277 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007834/0.3148, allocations: 3.905 MB / 470.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.3148, allocations: 4 kB / 470.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3148, allocations: 4 kB / 470.3 MB, free: 15.36 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.3148, allocations: 0 / 470.3 MB, free: 15.36 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.002492/0.3173, allocations: 0.9429 MB / 471.2 MB, free: 14.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/0.3173, allocations: 12.03 kB / 471.2 MB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.394e-05/0.3174, allocations: 54.72 kB / 471.3 MB, free: 14.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001308/0.3187, allocations: 176.7 kB / 471.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003927/0.3191, allocations: 206.2 kB / 471.6 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.991e-05/0.3191, allocations: 12.81 kB / 471.7 MB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.113e-05/0.3192, allocations: 23.94 kB / 471.7 MB, free: 13.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003101/0.3223, allocations: 0.905 MB / 472.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.315e-05/0.3223, allocations: 0 / 472.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.402e-05/0.3223, allocations: 16 kB / 472.6 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.3223, allocations: 7.984 kB / 472.6 MB, free: 12.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003174/0.3255, allocations: 0.9695 MB / 473.6 MB, free: 11.95 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.001729/0.3273, allocations: 1.303 MB / 474.9 MB, free: 10.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002579/0.3298, allocations: 0.7325 MB / 475.6 MB, free: 9.777 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002827/0.3301, allocations: 157.6 kB / 475.8 MB, free: 9.621 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06895/0.3991, allocations: 19.65 MB / 495.4 MB, free: 5.953 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.657e-05/0.3991, allocations: 38.56 kB / 495.5 MB, free: 5.906 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.254e-06/0.3991, allocations: 0 / 495.5 MB, free: 5.906 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.00537/0.4045, allocations: 1.364 MB / 496.8 MB, free: 4.535 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.4045, allocations: 55.41 kB / 496.9 MB, free: 4.469 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.4047, allocations: 129.7 kB / 497 MB, free: 4.332 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.604e-05/0.4047, allocations: 29.7 kB / 497 MB, free: 4.297 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.378e-05/0.4048, allocations: 120.8 kB / 497.1 MB, free: 4.176 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.4049, allocations: 119 kB / 497.3 MB, free: 4.059 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002724/0.4052, allocations: 169.3 kB / 497.4 MB, free: 3.887 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.4054, allocations: 326.8 kB / 497.7 MB, free: 3.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006387/0.406, allocations: 339.8 kB / 498.1 MB, free: 3.227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000724/0.4067, allocations: 403.5 kB / 498.5 MB, free: 2.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001359/0.4081, allocations: 0.7114 MB / 499.2 MB, free: 2.066 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.4081, allocations: 4 kB / 499.2 MB, free: 2.062 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001837/0.4099, allocations: 0.8719 MB / 0.4883 GB, free: 1.184 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.41, allocations: 11.92 kB / 0.4883 GB, free: 1.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.41, allocations: 4 kB / 0.4884 GB, free: 1.168 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.41, allocations: 4.25 kB / 0.4884 GB, free: 1.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006652/0.4106, allocations: 179.7 kB / 0.4885 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.4107, allocations: 4 kB / 0.4885 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.411, allocations: 31.83 kB / 0.4886 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.4111, allocations: 59.94 kB / 0.4886 GB, free: 0.8945 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.0002241/0.4113, allocations: 141.7 kB / 0.4888 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.4115, allocations: 23.83 kB / 0.4888 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008754/0.4202, allocations: 8.498 MB / 0.4971 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.022e-05/0.4202, allocations: 27.95 kB / 0.4971 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.4202, allocations: 384 / 0.4971 GB, free: 8.176 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.258e-06/0.4203, allocations: 3.984 kB / 0.4971 GB, free: 8.172 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003546/0.4238, allocations: 3.763 MB / 0.5008 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.4238, allocations: 0 / 0.5008 GB, free: 4.152 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006559/0.4245, allocations: 119.7 kB / 0.5009 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.184e-06/0.4245, allocations: 7.938 kB / 0.5009 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.907e-05/0.4245, allocations: 11.98 kB / 0.5009 GB, free: 4.016 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.4245, allocations: 4 kB / 0.5009 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.4245, allocations: 0 / 0.5009 GB, free: 4.012 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.427, allocations: 1.882 MB / 0.5028 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.212e-05/0.4271, allocations: 75.44 kB / 0.5028 GB, free: 2.035 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.177e-05/0.4272, allocations: 7.938 kB / 0.5028 GB, free: 2.027 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.4275, allocations: 16 kB / 0.5028 GB, free: 2.012 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/0.4276, allocations: 31.94 kB / 0.5029 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.735e-05/0.4276, allocations: 11.98 kB / 0.5029 GB, free: 1.969 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.766e-05/0.4277, allocations: 95.2 kB / 0.503 GB, free: 1.875 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4277, allocations: 0 / 0.503 GB, free: 1.875 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002551/0.4302, allocations: 0.9863 MB / 0.5039 GB, free: 0.8867 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.007067/0.4373, allocations: 3.483 MB / 0.5073 GB, free: 13.38 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001663/0.4389, allocations: 0.8959 MB / 0.5082 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.4389, allocations: 0 / 0.5082 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007731/0.4397, allocations: 0.5322 MB / 0.5087 GB, free: 11.95 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006447/0.4404, allocations: 84.19 kB / 0.5088 GB, free: 11.87 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007756/0.4481, allocations: 4.704 MB / 0.5134 GB, free: 7.039 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004564/0.4486, allocations: 0.8536 MB / 0.5142 GB, free: 6.16 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002009/0.4506, allocations: 1.78 MB / 0.516 GB, free: 4.379 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004788/0.4511, allocations: 223.3 kB / 0.5162 GB, free: 4.16 MB / 430.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4511, allocations: 4 kB / 0.5162 GB, free: 4.156 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2775/0.7285, allocations: 46.7 MB / 0.5618 GB, free: 89.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/14.85, allocations: 2.578 kB / 0.5618 GB, free: 89.55 MB / 446.1 MB " [Timeout remaining time 645] (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: 17.417385452998133]