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.0009252/0.0009252, allocations: 87.89 kB / 21.19 MB, free: 3.375 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.0008812/0.0008812, allocations: 145.1 kB / 24.54 MB, free: 24 kB / 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.9183/0.9183, allocations: 173.4 MB / 201.1 MB, free: 9.316 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: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.032e-06/1.032e-06, allocations: 0 / 270.9 MB, free: 3.512 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.347e-05/1.45e-05, allocations: 6.312 kB / 270.9 MB, free: 3.504 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01032/0.01033, allocations: 13.35 MB / 284.2 MB, free: 6.105 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1092/0.1195, allocations: 15.2 MB / 299.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.115e-05/0.1196, allocations: 2.25 kB / 299.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002975/0.1199, allocations: 78.34 kB / 299.5 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002702/0.1202, allocations: 121.3 kB / 299.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009585/0.1298, allocations: 5.991 MB / 305.6 MB, free: 13.49 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002991/0.13, allocations: 345.8 kB / 306 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.824e-05/0.1301, allocations: 7.656 kB / 306 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003342/0.1304, allocations: 268.7 kB / 306.2 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.1305, allocations: 86.19 kB / 306.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.1306, allocations: 17.75 kB / 306.3 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006215/0.1368, allocations: 6.484 MB / 312.8 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.393e-05/0.1368, allocations: 44.38 kB / 312.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.431e-05/0.1369, allocations: 81.5 kB / 312.9 MB, free: 11.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003798/0.1407, allocations: 4.916 MB / 317.8 MB, free: 7.383 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1407, allocations: 3.984 kB / 317.9 MB, free: 7.379 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.1407, allocations: 0 / 317.9 MB, free: 7.379 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1407, allocations: 0 / 317.9 MB, free: 7.379 MB / 266.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.001268/0.142, allocations: 1.032 MB / 318.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.496e-05/0.142, allocations: 8.922 kB / 318.9 MB, free: 6.305 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007394/0.1427, allocations: 288 kB / 319.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001701/0.1429, allocations: 196.3 kB / 319.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.865e-05/0.1429, allocations: 20.88 kB / 319.4 MB, free: 5.785 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.939e-05/0.143, allocations: 20.38 kB / 319.4 MB, free: 5.766 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00154/0.1445, allocations: 1.115 MB / 320.5 MB, free: 4.617 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1445, allocations: 7.938 kB / 320.5 MB, free: 4.609 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.1445, allocations: 7.938 kB / 320.5 MB, free: 4.602 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.999e-06/0.1445, allocations: 8 kB / 320.5 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.1459, allocations: 0.9508 MB / 321.5 MB, free: 3.648 MB / 266.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.0007748/0.1467, allocations: 1.067 MB / 322.6 MB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001268/0.148, allocations: 0.8623 MB / 323.4 MB, free: 1.664 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001011/0.1481, allocations: 107.6 kB / 323.5 MB, free: 1.555 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03202/0.1801, allocations: 19.7 MB / 343.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.749e-05/0.1801, allocations: 46.08 kB / 343.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.803e-06/0.1801, allocations: 0 / 343.3 MB, free: 13.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002781/0.1829, allocations: 1.511 MB / 344.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/0.183, allocations: 59.39 kB / 344.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.237e-05/0.183, allocations: 189.8 kB / 345 MB, free: 12 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.016e-05/0.1831, allocations: 29.7 kB / 345.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.71e-05/0.1831, allocations: 166.4 kB / 345.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.701e-05/0.1832, allocations: 117.9 kB / 345.3 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001787/0.1834, allocations: 175 kB / 345.5 MB, free: 11.51 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.1835, allocations: 0.5 MB / 346 MB, free: 11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004069/0.1839, allocations: 402 kB / 346.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004704/0.1844, allocations: 0.4978 MB / 346.9 MB, free: 10.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008691/0.1853, allocations: 0.8549 MB / 347.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1853, allocations: 0 / 347.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001131/0.1864, allocations: 1.007 MB / 348.8 MB, free: 8.176 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1864, allocations: 11.98 kB / 348.8 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.1864, allocations: 7.375 kB / 348.8 MB, free: 8.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1865, allocations: 6.156 kB / 348.8 MB, free: 8.156 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000331/0.1868, allocations: 179.7 kB / 349 MB, free: 7.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.1868, allocations: 4 kB / 349 MB, free: 7.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.1869, allocations: 24.09 kB / 349 MB, free: 7.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.809e-05/0.187, allocations: 75.86 kB / 349.1 MB, free: 7.879 MB / 298.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.0001495/0.1872, allocations: 180.4 kB / 349.2 MB, free: 7.691 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001204/0.1873, allocations: 27.91 kB / 349.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003743/0.191, allocations: 5.295 MB / 354.6 MB, free: 2.355 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.191, allocations: 27.95 kB / 354.6 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.191, allocations: 0 / 354.6 MB, free: 2.328 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.191, allocations: 4 kB / 354.6 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.1921, allocations: 1.908 MB / 356.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.1921, allocations: 0 / 356.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002904/0.1924, allocations: 111.8 kB / 356.6 MB, free: 68 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.1924, allocations: 4 kB / 356.6 MB, free: 64 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.443e-05/0.1924, allocations: 8 kB / 356.6 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1924, allocations: 0 / 356.6 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1924, allocations: 0 / 356.6 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.1936, allocations: 1.327 MB / 357.9 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.488e-05/0.1936, allocations: 67.3 kB / 358 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.582e-05/0.1937, allocations: 8 kB / 358 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.1938, allocations: 12 kB / 358 MB, free: 14.62 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.994e-05/0.1939, allocations: 31.94 kB / 358.1 MB, free: 14.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.1939, allocations: 11.98 kB / 358.1 MB, free: 14.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.908e-05/0.1939, allocations: 139.1 kB / 358.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1939, allocations: 0 / 358.2 MB, free: 14.44 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001515/0.1954, allocations: 0.9863 MB / 359.2 MB, free: 13.45 MB / 314.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.002696/0.1981, allocations: 1.292 MB / 360.5 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008223/0.1989, allocations: 0.8101 MB / 361.3 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1989, allocations: 0 / 361.3 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.1993, allocations: 371.3 kB / 361.7 MB, free: 11.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.1997, allocations: 98.55 kB / 361.8 MB, free: 10.97 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.2012, allocations: 1.164 MB / 362.9 MB, free: 9.785 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.839e-05/0.2012, allocations: 144.6 kB / 363.1 MB, free: 9.621 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001183/0.2024, allocations: 1.781 MB / 364.8 MB, free: 7.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002354/0.2027, allocations: 88.42 kB / 364.9 MB, free: 7.754 MB / 314.7 MB Notification: Performance of SimCode: time 6.01e-07/0.2027, allocations: 0 / 364.9 MB, free: 7.754 MB / 314.7 MB Notification: Performance of Templates: time 0.04363/0.2463, allocations: 51.14 MB / 416.1 MB, free: 4.625 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.135446552652866]