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.001014/0.001014, allocations: 79.69 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.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.0009235/0.0009235, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8925/0.8925, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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 1.643e-06/1.643e-06, allocations: 0 / 327.3 MB, free: 13.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.555e-05, allocations: 12.89 kB / 327.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01197/0.012, allocations: 12.33 MB / 339.7 MB, free: 0.793 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01095/0.02295, allocations: 13.62 MB / 353.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001447/0.0231, allocations: 0 / 353.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003296/0.02343, allocations: 75.53 kB / 353.3 MB, free: 3.043 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003201/0.02375, allocations: 123.1 kB / 353.5 MB, free: 2.922 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01129/0.03503, allocations: 5.995 MB / 359.5 MB, free: 12.93 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.03543, allocations: 358.3 kB / 359.8 MB, free: 12.58 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.181e-05/0.03549, allocations: 13.81 kB / 359.8 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004082/0.03589, allocations: 255.1 kB / 360.1 MB, free: 12.32 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.03603, allocations: 95.77 kB / 360.2 MB, free: 12.22 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.03605, allocations: 12 kB / 360.2 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008977/0.04503, allocations: 6.489 MB / 366.7 MB, free: 5.715 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.583e-05/0.04512, allocations: 47.81 kB / 366.7 MB, free: 5.668 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.04525, allocations: 79.84 kB / 366.8 MB, free: 5.59 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0094/0.05465, allocations: 4.985 MB / 371.8 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.05465, allocations: 0 / 371.8 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.05466, allocations: 3.938 kB / 371.8 MB, free: 0.5898 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.05466, allocations: 0 / 371.8 MB, free: 0.5898 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.002212/0.05687, allocations: 0.95 MB / 372.7 MB, free: 15.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.05692, allocations: 8.031 kB / 372.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.182e-05/0.05697, allocations: 54.73 kB / 372.8 MB, free: 15.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007643/0.05773, allocations: 176.6 kB / 373 MB, free: 15.37 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.05804, allocations: 205.4 kB / 373.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.05807, allocations: 16.88 kB / 373.2 MB, free: 15.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.424e-05/0.05811, allocations: 20.38 kB / 373.2 MB, free: 15.11 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001727/0.05983, allocations: 0.9643 MB / 374.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.05984, allocations: 0 / 374.2 MB, free: 14.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.387e-05/0.05987, allocations: 12 kB / 374.2 MB, free: 14.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.05987, allocations: 4 kB / 374.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001728/0.0616, allocations: 0.9619 MB / 375.1 MB, free: 13.13 MB / 346.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.001379/0.06298, allocations: 0.9591 MB / 376.1 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.06432, allocations: 0.7246 MB / 376.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.06448, allocations: 149.6 kB / 377 MB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03626/0.1007, allocations: 20.61 MB / 397.6 MB, free: 6.598 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.1008, allocations: 34.56 kB / 397.6 MB, free: 6.555 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.324e-06/0.1008, allocations: 0 / 397.6 MB, free: 6.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002767/0.1035, allocations: 1.356 MB / 399 MB, free: 5.191 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.1036, allocations: 63.33 kB / 399 MB, free: 5.117 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.639e-05/0.1037, allocations: 117.8 kB / 399.2 MB, free: 4.992 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.329e-05/0.1037, allocations: 37.7 kB / 399.2 MB, free: 4.949 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.271e-05/0.1038, allocations: 112.9 kB / 399.3 MB, free: 4.832 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.853e-05/0.1039, allocations: 119 kB / 399.4 MB, free: 4.715 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.104, allocations: 165.5 kB / 399.6 MB, free: 4.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.829e-05/0.1041, allocations: 327.2 kB / 399.9 MB, free: 4.219 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/0.1045, allocations: 339.8 kB / 400.2 MB, free: 3.887 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000417/0.1049, allocations: 403.5 kB / 400.6 MB, free: 3.465 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007984/0.1057, allocations: 0.7153 MB / 401.3 MB, free: 2.723 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.1057, allocations: 4 kB / 401.3 MB, free: 2.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001109/0.1068, allocations: 0.8681 MB / 402.2 MB, free: 1.844 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.1068, allocations: 8 kB / 402.2 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1068, allocations: 0 / 402.2 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.1068, allocations: 4 kB / 402.2 MB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.1072, allocations: 187.6 kB / 402.4 MB, free: 1.648 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.1072, allocations: 4.25 kB / 402.4 MB, free: 1.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/0.1073, allocations: 39.78 kB / 402.4 MB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.368e-05/0.1074, allocations: 63.94 kB / 402.5 MB, free: 1.543 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.0001719/0.1076, allocations: 145.7 kB / 402.7 MB, free: 1.391 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.872e-05/0.1076, allocations: 15.89 kB / 402.7 MB, free: 1.375 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005166/0.1128, allocations: 8.507 MB / 411.2 MB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.101e-05/0.1128, allocations: 23.97 kB / 411.2 MB, free: 8.836 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.1128, allocations: 3.938 kB / 411.2 MB, free: 8.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.1128, allocations: 3.984 kB / 411.2 MB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.1152, allocations: 3.722 MB / 414.9 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.1152, allocations: 0 / 414.9 MB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002932/0.1155, allocations: 111.8 kB / 415 MB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1155, allocations: 0 / 415 MB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.1155, allocations: 11.98 kB / 415 MB, free: 4.727 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.91e-06/0.1155, allocations: 4 kB / 415.1 MB, free: 4.723 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1155, allocations: 7.938 kB / 415.1 MB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001613/0.1171, allocations: 1.893 MB / 417 MB, free: 2.805 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.552e-05/0.1172, allocations: 75.28 kB / 417 MB, free: 2.73 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.562e-05/0.1172, allocations: 4 kB / 417 MB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.1173, allocations: 16 kB / 417 MB, free: 2.711 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.161e-05/0.1174, allocations: 31.88 kB / 417.1 MB, free: 2.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.318e-05/0.1174, allocations: 15.98 kB / 417.1 MB, free: 2.664 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.121e-05/0.1175, allocations: 95.27 kB / 417.2 MB, free: 2.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1175, allocations: 4 kB / 417.2 MB, free: 2.566 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00233/0.1198, allocations: 1.002 MB / 418.2 MB, free: 1.562 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.005526/0.1254, allocations: 3.619 MB / 421.8 MB, free: 13.91 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001069/0.1264, allocations: 0.8958 MB / 422.7 MB, free: 13.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.1264, allocations: 4.125 kB / 422.7 MB, free: 13.01 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004575/0.1269, allocations: 0.5322 MB / 423.2 MB, free: 12.48 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004238/0.1273, allocations: 84.06 kB / 423.3 MB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006164/0.1335, allocations: 4.643 MB / 428 MB, free: 7.625 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.1336, allocations: 255.2 kB / 428.2 MB, free: 7.352 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00122/0.1349, allocations: 1.777 MB / 430 MB, free: 5.57 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003408/0.1352, allocations: 224.4 kB / 430.2 MB, free: 5.352 MB / 394.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1352, allocations: 0 / 430.2 MB, free: 5.352 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1976/0.3328, allocations: 47.22 MB / 477.4 MB, free: 92.37 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.916/9.249, allocations: 17.75 kB / 477.4 MB, free: 92.36 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins/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: 11.218527434393764]