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.0008081/0.0008081, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007674/0.0007674, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 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 0.848/0.848, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] 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 2.835e-06/2.835e-06, allocations: 4 kB / 321.2 MB, free: 3.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.461e-05/1.744e-05, allocations: 5.516 kB / 321.2 MB, free: 3.598 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.0124/0.01241, allocations: 12.19 MB / 333.4 MB, free: 7.363 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.02266, allocations: 13.63 MB / 347 MB, free: 9.676 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.748e-05/0.02276, allocations: 0 / 347 MB, free: 9.676 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.02306, allocations: 75.45 kB / 347.1 MB, free: 9.602 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002776/0.02334, allocations: 127.1 kB / 347.2 MB, free: 9.477 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01058/0.03392, allocations: 5.982 MB / 353.2 MB, free: 3.496 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003691/0.03429, allocations: 350.3 kB / 353.5 MB, free: 3.152 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.93e-05/0.03434, allocations: 5.812 kB / 353.5 MB, free: 3.148 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003898/0.03472, allocations: 267.1 kB / 353.8 MB, free: 2.887 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.03484, allocations: 91.75 kB / 353.9 MB, free: 2.797 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.03486, allocations: 16 kB / 353.9 MB, free: 2.781 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007687/0.04255, allocations: 6.481 MB / 360.4 MB, free: 12.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.058e-05/0.04262, allocations: 43.83 kB / 360.4 MB, free: 12.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.428e-05/0.04269, allocations: 79.89 kB / 360.5 MB, free: 12.17 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005091/0.04778, allocations: 4.954 MB / 365.4 MB, free: 7.207 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.04779, allocations: 0 / 365.4 MB, free: 7.207 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.04779, allocations: 0 / 365.4 MB, free: 7.207 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.04779, allocations: 4 kB / 365.4 MB, free: 7.203 MB / 330.7 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.00165/0.04944, allocations: 0.9351 MB / 366.4 MB, free: 6.234 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.71e-05/0.04948, allocations: 8.922 kB / 366.4 MB, free: 6.227 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.444e-05/0.04952, allocations: 62.72 kB / 366.4 MB, free: 6.156 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006891/0.05021, allocations: 180.6 kB / 366.6 MB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002564/0.05047, allocations: 201.4 kB / 366.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.791e-05/0.0505, allocations: 16.88 kB / 366.8 MB, free: 5.738 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.189e-05/0.05053, allocations: 24.38 kB / 366.9 MB, free: 5.715 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001626/0.05216, allocations: 0.9604 MB / 367.8 MB, free: 4.723 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.698e-06/0.05217, allocations: 3.984 kB / 367.8 MB, free: 4.719 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.186e-05/0.05219, allocations: 8 kB / 367.8 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.05219, allocations: 8 kB / 367.8 MB, free: 4.703 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001635/0.05383, allocations: 0.9658 MB / 368.8 MB, free: 3.738 MB / 330.7 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.0009494/0.05478, allocations: 0.9436 MB / 369.7 MB, free: 2.738 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.05609, allocations: 0.7286 MB / 370.5 MB, free: 2 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001612/0.05625, allocations: 149.6 kB / 370.6 MB, free: 1.852 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03203/0.08828, allocations: 19.71 MB / 390.3 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.08831, allocations: 42.5 kB / 390.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.424e-06/0.08831, allocations: 0 / 390.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.00274/0.09105, allocations: 1.356 MB / 391.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.967e-05/0.09108, allocations: 59.34 kB / 391.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.245e-05/0.09116, allocations: 129.7 kB / 391.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.038e-05/0.0912, allocations: 29.7 kB / 391.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.178e-05/0.09125, allocations: 124.8 kB / 392.1 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.53e-05/0.09134, allocations: 111 kB / 392.2 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.0915, allocations: 169.5 kB / 392.3 MB, free: 12.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.084e-05/0.09157, allocations: 322.8 kB / 392.7 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003751/0.09195, allocations: 339.8 kB / 393 MB, free: 11.39 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004218/0.09237, allocations: 411 kB / 393.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007933/0.09316, allocations: 0.7153 MB / 394.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.09316, allocations: 4 kB / 394.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00115/0.09431, allocations: 0.8719 MB / 395 MB, free: 9.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.09433, allocations: 4 kB / 395 MB, free: 9.336 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.09434, allocations: 4 kB / 395 MB, free: 9.332 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.09436, allocations: 4.625 kB / 395 MB, free: 9.328 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003047/0.09466, allocations: 183.7 kB / 395.2 MB, free: 9.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.676e-06/0.09467, allocations: 4 kB / 395.2 MB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001653/0.09484, allocations: 35.83 kB / 395.2 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.234e-05/0.0949, allocations: 67.86 kB / 395.3 MB, free: 9.043 MB / 362.7 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.0001453/0.09504, allocations: 141.7 kB / 395.4 MB, free: 8.895 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.843e-05/0.09512, allocations: 15.91 kB / 395.4 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004765/0.09989, allocations: 8.515 MB / 403.9 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.0999, allocations: 23.97 kB / 404 MB, free: 340 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.09991, allocations: 11.91 kB / 404 MB, free: 328 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.09992, allocations: 4 kB / 404 MB, free: 324 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001955/0.1019, allocations: 3.722 MB / 407.7 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.1019, allocations: 0 / 407.7 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002716/0.1021, allocations: 107.7 kB / 407.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.1022, allocations: 4 kB / 407.8 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/0.1022, allocations: 19.98 kB / 407.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.1022, allocations: 0 / 407.8 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1022, allocations: 3.938 kB / 407.8 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001558/0.1037, allocations: 1.892 MB / 409.7 MB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.616e-05/0.1038, allocations: 63.39 kB / 409.8 MB, free: 10.23 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.471e-05/0.1038, allocations: 12 kB / 409.8 MB, free: 10.22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001222/0.1039, allocations: 8 kB / 409.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.598e-05/0.104, allocations: 39.94 kB / 409.9 MB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.104, allocations: 19.98 kB / 409.9 MB, free: 10.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.468e-05/0.1041, allocations: 91.27 kB / 410 MB, free: 10.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1041, allocations: 0 / 410 MB, free: 10.06 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002168/0.1062, allocations: 0.9943 MB / 411 MB, free: 9.066 MB / 378.7 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.004575/0.1108, allocations: 3.606 MB / 414.6 MB, free: 5.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009238/0.1117, allocations: 0.8916 MB / 415.5 MB, free: 4.535 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1117, allocations: 7.938 kB / 415.5 MB, free: 4.527 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004289/0.1122, allocations: 0.5205 MB / 416 MB, free: 4.004 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003818/0.1125, allocations: 92.22 kB / 416.1 MB, free: 3.914 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004759/0.1173, allocations: 4.647 MB / 420.7 MB, free: 15.14 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001668/0.1175, allocations: 255.2 kB / 421 MB, free: 14.86 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001221/0.1187, allocations: 1.78 MB / 422.7 MB, free: 13.08 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003096/0.119, allocations: 224.4 kB / 423 MB, free: 12.86 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.119, allocations: 0 / 423 MB, free: 12.86 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1712/0.2902, allocations: 47.06 MB / 470 MB, free: 98.22 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.467/8.757, allocations: 16.7 kB / 470 MB, free: 98.21 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/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: 10.692654138430953]