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.00134/0.00134, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001299/0.001299, allocations: 139.7 kB / 24.97 MB, free: 8.367 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.8923/0.8923, allocations: 173.4 MB / 201.5 MB, free: 9.32 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.293e-06/1.293e-06, allocations: 0 / 271 MB, free: 3.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.02e-05/2.149e-05, allocations: 6.312 kB / 271 MB, free: 3.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01068/0.01071, allocations: 13.34 MB / 284.3 MB, free: 6.422 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1235/0.1342, allocations: 15.17 MB / 299.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001114/0.1343, allocations: 1.188 kB / 299.5 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002898/0.1346, allocations: 74.25 kB / 299.5 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002916/0.1349, allocations: 110.4 kB / 299.6 MB, free: 14.31 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01067/0.1456, allocations: 5.989 MB / 305.6 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004219/0.146, allocations: 351.5 kB / 306 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.869e-05/0.146, allocations: 12.97 kB / 306 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003945/0.1464, allocations: 262 kB / 306.3 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001279/0.1466, allocations: 94.09 kB / 306.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/0.1466, allocations: 12.62 kB / 306.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006837/0.1534, allocations: 6.478 MB / 312.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.654e-05/0.1535, allocations: 38.98 kB / 312.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.718e-05/0.1536, allocations: 84.22 kB / 313 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003994/0.1575, allocations: 4.905 MB / 317.9 MB, free: 7.398 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1575, allocations: 11.94 kB / 317.9 MB, free: 7.387 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1576, allocations: 0 / 317.9 MB, free: 7.387 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1576, allocations: 0 / 317.9 MB, free: 7.387 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.001378/0.1589, allocations: 1.038 MB / 318.9 MB, free: 6.312 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.159, allocations: 8.922 kB / 318.9 MB, free: 6.305 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009009/0.1599, allocations: 280 kB / 319.2 MB, free: 6.031 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.16, allocations: 204.3 kB / 319.4 MB, free: 5.805 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.1601, allocations: 16.88 kB / 319.4 MB, free: 5.789 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.43e-05/0.1601, allocations: 28.38 kB / 319.4 MB, free: 5.762 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00166/0.1618, allocations: 1.109 MB / 320.5 MB, free: 4.617 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.1618, allocations: 0 / 320.5 MB, free: 4.617 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.185e-05/0.1618, allocations: 15.94 kB / 320.6 MB, free: 4.602 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.1618, allocations: 7.938 kB / 320.6 MB, free: 4.594 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.1633, 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.0008165/0.1642, allocations: 1.054 MB / 322.6 MB, free: 2.551 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001391/0.1655, allocations: 0.8738 MB / 323.4 MB, free: 1.668 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001091/0.1657, allocations: 103.6 kB / 323.5 MB, free: 1.562 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03319/0.1988, allocations: 19.7 MB / 343.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.1989, allocations: 40.83 kB / 343.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.713e-06/0.1989, allocations: 4 kB / 343.3 MB, free: 13.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002987/0.2019, allocations: 1.514 MB / 344.8 MB, free: 12.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.32e-05/0.2019, allocations: 59.41 kB / 344.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.873e-05/0.202, allocations: 185.8 kB / 345 MB, free: 12.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.955e-05/0.202, allocations: 33.7 kB / 345.1 MB, free: 11.97 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.047e-05/0.2021, allocations: 166.5 kB / 345.2 MB, free: 11.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.446e-05/0.2022, allocations: 119 kB / 345.4 MB, free: 11.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001767/0.2024, allocations: 171 kB / 345.5 MB, free: 11.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.2025, allocations: 0.5 MB / 346 MB, free: 11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004017/0.2029, allocations: 407 kB / 346.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004496/0.2033, allocations: 0.4889 MB / 346.9 MB, free: 10.08 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008632/0.2042, allocations: 0.8594 MB / 347.8 MB, free: 9.191 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.2042, allocations: 4 kB / 347.8 MB, free: 9.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001217/0.2054, allocations: 1.006 MB / 348.8 MB, free: 8.176 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.2054, allocations: 4 kB / 348.8 MB, free: 8.172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2054, allocations: 4 kB / 348.8 MB, free: 8.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.2055, allocations: 6.766 kB / 348.8 MB, free: 8.164 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000333/0.2058, allocations: 175.8 kB / 349 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.396e-06/0.2058, allocations: 7.938 kB / 349 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.206, allocations: 27.83 kB / 349 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.754e-05/0.206, allocations: 72.12 kB / 349.1 MB, free: 7.887 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.000151/0.2062, allocations: 176.5 kB / 349.2 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001215/0.2063, allocations: 31.89 kB / 349.3 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003715/0.21, allocations: 5.286 MB / 354.6 MB, free: 2.375 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.21, allocations: 31.95 kB / 354.6 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.21, allocations: 0 / 354.6 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.21, allocations: 3.984 kB / 354.6 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001253/0.2113, allocations: 1.922 MB / 356.5 MB, free: 184 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.2113, allocations: 3.938 kB / 356.5 MB, free: 180 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003107/0.2116, allocations: 99.86 kB / 356.6 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.2116, allocations: 0 / 356.6 MB, free: 80 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.2116, allocations: 15.98 kB / 356.6 MB, free: 64 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.2116, allocations: 0 / 356.6 MB, free: 64 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2116, allocations: 3.938 kB / 356.6 MB, free: 60 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.2128, allocations: 1.319 MB / 358 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.979e-05/0.2129, allocations: 71.34 kB / 358 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.2129, allocations: 8 kB / 358 MB, free: 14.64 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001277/0.213, allocations: 8.875 kB / 358 MB, free: 14.63 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.066e-05/0.2131, allocations: 31.94 kB / 358.1 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.2131, allocations: 19.98 kB / 358.1 MB, free: 14.58 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.831e-05/0.2132, allocations: 127.2 kB / 358.2 MB, free: 14.46 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2132, allocations: 0 / 358.2 MB, free: 14.46 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00178/0.2149, allocations: 0.9941 MB / 359.2 MB, free: 13.46 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.002459/0.2174, allocations: 1.282 MB / 360.5 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008262/0.2182, allocations: 0.8242 MB / 361.3 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.2182, allocations: 0 / 361.3 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003477/0.2186, allocations: 371.3 kB / 361.7 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.219, allocations: 94.69 kB / 361.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001644/0.2206, allocations: 1.169 MB / 362.9 MB, free: 9.789 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.196e-05/0.2207, allocations: 144.6 kB / 363.1 MB, free: 9.625 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001179/0.2219, allocations: 1.778 MB / 364.9 MB, free: 7.848 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002248/0.2221, allocations: 92.41 kB / 364.9 MB, free: 7.758 MB / 314.7 MB Notification: Performance of SimCode: time 7.41e-07/0.2221, allocations: 4 kB / 365 MB, free: 7.754 MB / 314.7 MB Notification: Performance of Templates: time 0.03697/0.2591, allocations: 42.28 MB / 407.2 MB, free: 13.46 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: 4.1786235040053725]