Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001038/0.001038, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001503/0.001503, allocations: 164.6 kB / 25.33 MB, free: 8.715 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.827/0.827, allocations: 158.6 MB / 187.2 MB, free: 2.934 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 253.9 MB, free: 4.602 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.312e-05/2.457e-05, allocations: 2.312 kB / 253.9 MB, free: 4.598 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01086/0.01088, allocations: 13.35 MB / 267.3 MB, free: 7.18 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.02291, allocations: 15.21 MB / 282.5 MB, free: 7.922 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.562e-05/0.023, allocations: 4 kB / 282.5 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003042/0.0233, allocations: 67.53 kB / 282.6 MB, free: 7.852 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.02358, allocations: 119.1 kB / 282.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009948/0.03353, allocations: 5.968 MB / 288.7 MB, free: 1.742 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003125/0.03384, allocations: 350.3 kB / 289 MB, free: 1.398 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.207e-05/0.03388, allocations: 9.812 kB / 289 MB, free: 1.391 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003816/0.03426, allocations: 271 kB / 289.3 MB, free: 1.125 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.03437, allocations: 83.78 kB / 289.3 MB, free: 1.043 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.231e-05/0.03439, allocations: 16 kB / 289.4 MB, free: 1.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007702/0.0421, allocations: 6.48 MB / 295.8 MB, free: 10.54 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.528e-05/0.04216, allocations: 39.89 kB / 295.9 MB, free: 10.5 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.224e-05/0.04223, allocations: 79.81 kB / 296 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004975/0.04721, allocations: 4.896 MB / 300.9 MB, free: 5.516 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.04721, allocations: 0 / 300.9 MB, free: 5.516 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.04721, allocations: 0 / 300.9 MB, free: 5.516 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.04722, allocations: 4 kB / 300.9 MB, free: 5.512 MB / 282.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.001348/0.04857, allocations: 1.031 MB / 301.9 MB, free: 4.441 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.04861, allocations: 11.98 kB / 301.9 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001129/0.04973, allocations: 288 kB / 302.2 MB, free: 4.148 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002601/0.05, allocations: 204.3 kB / 302.4 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.73e-05/0.05002, allocations: 24.81 kB / 302.4 MB, free: 3.898 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-05/0.05007, allocations: 16.38 kB / 302.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002415/0.05249, allocations: 1.113 MB / 303.5 MB, free: 2.73 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.0525, allocations: 7.938 kB / 303.5 MB, free: 2.723 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.579e-05/0.05252, allocations: 4 kB / 303.5 MB, free: 2.719 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.05254, allocations: 8 kB / 303.6 MB, free: 2.711 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002347/0.05488, allocations: 0.9585 MB / 304.5 MB, free: 1.758 MB / 282.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.001131/0.05601, allocations: 1.053 MB / 305.6 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/0.05791, allocations: 0.8689 MB / 306.4 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.05806, allocations: 107.6 kB / 306.5 MB, free: 15.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04385/0.1019, allocations: 19.7 MB / 326.2 MB, free: 11.94 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.092e-05/0.1019, allocations: 41.39 kB / 326.3 MB, free: 11.89 MB / 314.7 MB Notification: Performance of pre-optimization done (n=33): time 2.004e-06/0.1019, allocations: 0 / 326.3 MB, free: 11.89 MB / 314.7 MB Notification: Performance of matching and sorting (n=33): time 0.00379/0.1057, allocations: 1.523 MB / 327.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.192e-05/0.1058, allocations: 55.41 kB / 327.9 MB, free: 10.29 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.1059, allocations: 181.9 kB / 328 MB, free: 10.1 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.212e-05/0.1059, allocations: 33.7 kB / 328.1 MB, free: 10.06 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.817e-05/0.106, allocations: 163.5 kB / 328.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.1061, allocations: 119 kB / 328.3 MB, free: 9.777 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002333/0.1063, allocations: 171.2 kB / 328.5 MB, free: 9.602 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1065, allocations: 0.5 MB / 329 MB, free: 9.09 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005059/0.107, allocations: 407.6 kB / 329.4 MB, free: 8.691 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000576/0.1075, allocations: 0.4887 MB / 329.9 MB, free: 8.164 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.1086, allocations: 0.8531 MB / 330.8 MB, free: 7.273 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.1086, allocations: 4 kB / 330.8 MB, free: 7.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001515/0.1101, allocations: 1.007 MB / 331.8 MB, free: 6.258 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.1102, allocations: 4 kB / 331.8 MB, free: 6.254 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.1102, allocations: 4 kB / 331.8 MB, free: 6.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.952e-05/0.1102, allocations: 4 kB / 331.8 MB, free: 6.246 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004512/0.1106, allocations: 175.8 kB / 331.9 MB, free: 6.074 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.1107, allocations: 3.938 kB / 332 MB, free: 6.07 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002035/0.1109, allocations: 39.72 kB / 332 MB, free: 6.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.256e-05/0.111, allocations: 59.94 kB / 332.1 MB, free: 5.973 MB / 314.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.0001627/0.1111, allocations: 180.7 kB / 332.2 MB, free: 5.785 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.1113, allocations: 27.94 kB / 332.3 MB, free: 5.758 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003696/0.115, allocations: 5.287 MB / 337.5 MB, free: 476 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.031e-05/0.115, allocations: 27.95 kB / 337.6 MB, free: 448 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.115, allocations: 4 kB / 337.6 MB, free: 444 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.115, allocations: 7.984 kB / 337.6 MB, free: 436 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.1161, allocations: 1.922 MB / 339.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.1161, allocations: 0 / 339.5 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002977/0.1164, allocations: 107.8 kB / 339.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/0.1164, allocations: 4 kB / 339.6 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.1165, allocations: 11.98 kB / 339.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.1165, allocations: 0 / 339.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1165, allocations: 0 / 339.6 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.1176, allocations: 1.319 MB / 340.9 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.9e-05/0.1177, allocations: 79.28 kB / 341 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.452e-05/0.1177, allocations: 7.984 kB / 341 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.1178, allocations: 12 kB / 341 MB, free: 12.7 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.138e-05/0.1179, allocations: 31.94 kB / 341.1 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.1179, allocations: 15.98 kB / 341.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.599e-05/0.118, allocations: 131.6 kB / 341.2 MB, free: 12.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.118, allocations: 0 / 341.2 MB, free: 12.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001741/0.1197, allocations: 0.9863 MB / 342.2 MB, free: 11.53 MB / 330.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.00264/0.1223, allocations: 1.274 MB / 343.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008521/0.1232, allocations: 0.813 MB / 344.3 MB, free: 9.426 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.1232, allocations: 4 kB / 344.3 MB, free: 9.422 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003451/0.1235, allocations: 367.3 kB / 344.6 MB, free: 9.059 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004008/0.1239, allocations: 96.25 kB / 344.7 MB, free: 8.965 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.1254, allocations: 1.137 MB / 345.9 MB, free: 7.789 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.15e-05/0.1255, allocations: 144.6 kB / 346 MB, free: 7.629 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001235/0.1267, allocations: 1.79 MB / 347.8 MB, free: 5.836 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.127, allocations: 92.41 kB / 347.9 MB, free: 5.742 MB / 330.7 MB Notification: Performance of SimCode: time 7.82e-07/0.127, allocations: 0 / 347.9 MB, free: 5.742 MB / 330.7 MB Notification: Performance of Templates: time 0.13/0.257, allocations: 42.22 MB / 390.1 MB, free: 53.82 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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: 4.475303105078638]