Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000854/0.000854, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000823/0.000823, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9149/0.9149, allocations: 177 MB / 204.1 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 327.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2e-05/2.143e-05, allocations: 3.266 kB / 327.3 MB, free: 13.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01069/0.01071, allocations: 12.33 MB / 339.6 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.02096, allocations: 13.61 MB / 353.2 MB, free: 3.078 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.697e-05/0.02105, allocations: 3.938 kB / 353.2 MB, free: 3.074 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002804/0.02133, allocations: 75.5 kB / 353.3 MB, free: 3 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002637/0.02159, allocations: 119.1 kB / 353.4 MB, free: 2.883 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009863/0.03146, allocations: 6.008 MB / 359.4 MB, free: 12.88 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003312/0.03179, allocations: 350.4 kB / 359.8 MB, free: 12.54 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.706e-05/0.03184, allocations: 13.8 kB / 359.8 MB, free: 12.52 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000379/0.03222, allocations: 271 kB / 360 MB, free: 12.26 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001074/0.03232, allocations: 83.78 kB / 360.1 MB, free: 12.18 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.211e-05/0.03235, allocations: 16 kB / 360.1 MB, free: 12.16 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007566/0.03991, allocations: 6.489 MB / 366.6 MB, free: 5.664 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.616e-05/0.03998, allocations: 47.83 kB / 366.7 MB, free: 5.617 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 7.063e-05/0.04005, allocations: 79.81 kB / 366.7 MB, free: 5.539 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00517/0.04522, allocations: 4.981 MB / 371.7 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.04522, allocations: 0 / 371.7 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.04522, allocations: 0 / 371.7 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.04523, allocations: 0 / 371.7 MB, free: 0.5469 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.001404/0.04663, allocations: 0.9352 MB / 372.7 MB, free: 15.57 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.04667, allocations: 19.98 kB / 372.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.6e-05/0.04672, allocations: 62.72 kB / 372.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000706/0.04742, allocations: 172.6 kB / 372.9 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002728/0.0477, allocations: 201.5 kB / 373.1 MB, free: 15.09 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.65e-05/0.04772, allocations: 16.88 kB / 373.1 MB, free: 15.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.04776, allocations: 24.38 kB / 373.1 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001625/0.04938, allocations: 0.9604 MB / 374.1 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.04939, allocations: 4 kB / 374.1 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.021e-05/0.04941, allocations: 4 kB / 374.1 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.04942, allocations: 8 kB / 374.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.05106, allocations: 0.9658 MB / 375.1 MB, free: 13.08 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.0009541/0.05201, allocations: 0.9513 MB / 376 MB, free: 12.08 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.05331, allocations: 0.7324 MB / 376.8 MB, free: 11.34 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.05347, allocations: 149.4 kB / 376.9 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03428/0.08775, allocations: 20.61 MB / 397.5 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.08779, allocations: 38.56 kB / 397.6 MB, free: 6.508 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.344e-06/0.08779, allocations: 0 / 397.6 MB, free: 6.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002855/0.09065, allocations: 1.365 MB / 398.9 MB, free: 5.137 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.09068, allocations: 59.34 kB / 399 MB, free: 5.066 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003582/0.09104, allocations: 125.7 kB / 399.1 MB, free: 4.934 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.442e-05/0.09108, allocations: 37.7 kB / 399.1 MB, free: 4.891 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.401e-05/0.09114, allocations: 112.9 kB / 399.3 MB, free: 4.773 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.775e-05/0.09123, allocations: 119 kB / 399.4 MB, free: 4.656 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001625/0.09139, allocations: 165.5 kB / 399.5 MB, free: 4.488 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.127e-05/0.09147, allocations: 322.8 kB / 399.8 MB, free: 4.164 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003913/0.09186, allocations: 339.8 kB / 400.2 MB, free: 3.832 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004298/0.09229, allocations: 411.5 kB / 400.6 MB, free: 3.402 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008195/0.09311, allocations: 0.7075 MB / 401.3 MB, free: 2.668 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.09311, allocations: 0 / 401.3 MB, free: 2.668 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001117/0.09423, allocations: 0.872 MB / 402.2 MB, free: 1.789 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.09425, allocations: 4 kB / 402.2 MB, free: 1.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.09425, allocations: 4 kB / 402.2 MB, free: 1.781 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.09427, allocations: 4 kB / 402.2 MB, free: 1.777 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003133/0.09458, allocations: 183.7 kB / 402.4 MB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.09459, allocations: 7.984 kB / 402.4 MB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.09475, allocations: 36.05 kB / 402.4 MB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/0.09481, allocations: 67.92 kB / 402.5 MB, free: 1.488 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.0001483/0.09496, allocations: 137.7 kB / 402.6 MB, free: 1.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.124e-05/0.09504, allocations: 11.95 kB / 402.6 MB, free: 1.332 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005133/0.1002, allocations: 8.507 MB / 411.1 MB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/0.1002, allocations: 31.95 kB / 411.1 MB, free: 8.789 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1002, allocations: 7.938 kB / 411.2 MB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1002, allocations: 3.984 kB / 411.2 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.1024, allocations: 3.714 MB / 414.9 MB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.1024, allocations: 0 / 414.9 MB, free: 4.805 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/0.1027, allocations: 111.8 kB / 415 MB, free: 4.695 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.1027, allocations: 4 kB / 415 MB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.394e-05/0.1027, allocations: 8 kB / 415 MB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/0.1028, allocations: 4.359 kB / 415 MB, free: 4.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1028, allocations: 3.938 kB / 415 MB, free: 4.676 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.1043, allocations: 1.892 MB / 416.9 MB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.1043, allocations: 71.28 kB / 417 MB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.1044, allocations: 19.88 kB / 417 MB, free: 2.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.1045, allocations: 11.98 kB / 417 MB, free: 2.664 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.656e-05/0.1046, allocations: 39.81 kB / 417 MB, free: 2.625 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.1046, allocations: 19.98 kB / 417.1 MB, free: 2.605 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.676e-05/0.1046, allocations: 87.28 kB / 417.1 MB, free: 2.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1046, allocations: 4.062 kB / 417.1 MB, free: 2.516 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002093/0.1067, allocations: 0.998 MB / 418.1 MB, free: 1.516 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.004942/0.1117, allocations: 3.613 MB / 421.8 MB, free: 13.87 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009675/0.1126, allocations: 0.8877 MB / 422.6 MB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.1126, allocations: 8.125 kB / 422.6 MB, free: 12.97 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000454/0.1131, allocations: 0.5283 MB / 423.2 MB, free: 12.44 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.1135, allocations: 95.95 kB / 423.3 MB, free: 12.35 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005025/0.1185, allocations: 4.635 MB / 427.9 MB, free: 7.582 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.1187, allocations: 259.1 kB / 428.2 MB, free: 7.305 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001155/0.1198, allocations: 1.783 MB / 429.9 MB, free: 5.52 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003088/0.1201, allocations: 220.4 kB / 430.2 MB, free: 5.305 MB / 394.7 MB Notification: Performance of SimCode: time 7.51e-07/0.1201, allocations: 0 / 430.2 MB, free: 5.305 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1767/0.2968, allocations: 47.22 MB / 477.4 MB, free: 92.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.529/8.826, allocations: 4 kB / 477.4 MB, free: 92.34 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.872603447176516]