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.00131/0.00131, allocations: 91.5 kB / 21.19 MB, free: 3.375 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.001365/0.001365, allocations: 160.5 kB / 24.56 MB, free: 16 kB / 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.9755/0.9755, allocations: 177 MB / 204.8 MB, free: 5.605 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: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2200,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 275.8 MB, free: 14.54 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.584e-05/2.747e-05, allocations: 2.312 kB / 275.8 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01412/0.01415, allocations: 13.47 MB / 289.3 MB, free: 1.012 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1225/0.1367, allocations: 15.2 MB / 304.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.1368, allocations: 5.125 kB / 304.5 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003219/0.1371, allocations: 69.72 kB / 304.6 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002964/0.1374, allocations: 123.9 kB / 304.7 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01225/0.1497, allocations: 5.99 MB / 310.7 MB, free: 8.988 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003651/0.1501, allocations: 357.5 kB / 311 MB, free: 8.852 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.523e-05/0.1501, allocations: 8.469 kB / 311 MB, free: 8.852 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003918/0.1505, allocations: 260.2 kB / 311.3 MB, free: 8.738 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.1506, allocations: 94.55 kB / 311.4 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.471e-05/0.1506, allocations: 14.59 kB / 311.4 MB, free: 8.703 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008982/0.1596, allocations: 6.497 MB / 317.9 MB, free: 4.727 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.049e-05/0.1597, allocations: 55.81 kB / 318 MB, free: 4.672 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001279/0.1598, allocations: 71.84 kB / 318 MB, free: 4.602 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006543/0.1664, allocations: 4.934 MB / 323 MB, free: 15.66 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1664, allocations: 0 / 323 MB, free: 15.66 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1664, allocations: 0 / 323 MB, free: 15.66 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.7e-06/0.1664, allocations: 0 / 323 MB, free: 15.66 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.001739/0.1681, allocations: 1.035 MB / 324 MB, free: 14.58 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.1682, allocations: 11.98 kB / 324 MB, free: 14.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008255/0.169, allocations: 288 kB / 324.3 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000219/0.1692, allocations: 204.3 kB / 324.5 MB, free: 14.06 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.917e-05/0.1692, allocations: 16.88 kB / 324.5 MB, free: 14.04 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.425e-05/0.1693, allocations: 24.33 kB / 324.5 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001705/0.171, allocations: 1.111 MB / 325.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.171, allocations: 0 / 325.6 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.171, allocations: 7.938 kB / 325.7 MB, free: 12.87 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.171, allocations: 8 kB / 325.7 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.1725, allocations: 0.9638 MB / 326.6 MB, free: 11.9 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.00092/0.1735, allocations: 1.061 MB / 327.7 MB, free: 10.79 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.1748, allocations: 0.8661 MB / 328.6 MB, free: 9.91 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.1749, allocations: 104.2 kB / 328.7 MB, free: 9.805 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03504/0.21, allocations: 20.61 MB / 349.3 MB, free: 5.184 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.339e-05/0.21, allocations: 42.45 kB / 349.3 MB, free: 5.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.643e-06/0.21, allocations: 0 / 349.3 MB, free: 5.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.002735/0.2127, allocations: 1.522 MB / 350.8 MB, free: 3.605 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.478e-05/0.2128, allocations: 59.41 kB / 350.9 MB, free: 3.535 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.562e-05/0.2129, allocations: 186.4 kB / 351.1 MB, free: 3.336 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.808e-05/0.2129, allocations: 29.7 kB / 351.1 MB, free: 3.301 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.885e-05/0.213, allocations: 163.5 kB / 351.3 MB, free: 3.137 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.922e-05/0.2131, allocations: 123 kB / 351.4 MB, free: 3.016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001718/0.2132, allocations: 167.2 kB / 351.5 MB, free: 2.844 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.2133, allocations: 0.5 MB / 352 MB, free: 2.332 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003735/0.2137, allocations: 404 kB / 352.4 MB, free: 1.941 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004252/0.2141, allocations: 496.8 kB / 352.9 MB, free: 1.414 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000777/0.2149, allocations: 0.8567 MB / 353.8 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.2149, allocations: 0 / 353.8 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001087/0.216, allocations: 1.017 MB / 354.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.216, allocations: 8.562 kB / 354.8 MB, free: 15.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.216, allocations: 4 kB / 354.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.606e-05/0.216, allocations: 4 kB / 354.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003166/0.2164, allocations: 171.8 kB / 355 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.044e-06/0.2164, allocations: 4.875 kB / 355 MB, free: 15.32 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.2165, allocations: 27.83 kB / 355 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.526e-05/0.2166, allocations: 67.88 kB / 355.1 MB, free: 15.22 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.0001405/0.2167, allocations: 185.3 kB / 355.3 MB, free: 15.03 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.2168, allocations: 31.89 kB / 355.3 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003705/0.2205, allocations: 5.291 MB / 360.6 MB, free: 9.695 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.897e-05/0.2205, allocations: 27.95 kB / 360.6 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.2205, allocations: 0 / 360.6 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.78e-06/0.2206, allocations: 7.984 kB / 360.6 MB, free: 9.66 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0011/0.2217, allocations: 1.917 MB / 362.5 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.2217, allocations: 0 / 362.5 MB, free: 7.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002796/0.2219, allocations: 103.8 kB / 362.6 MB, free: 7.398 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.2219, allocations: 4 kB / 362.6 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.894e-05/0.222, allocations: 15.98 kB / 362.6 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.222, allocations: 0 / 362.6 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.222, allocations: 0 / 362.6 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.2231, allocations: 1.311 MB / 364 MB, free: 6.047 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.886e-05/0.2231, allocations: 75.28 kB / 364 MB, free: 5.973 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.332e-05/0.2232, allocations: 12.03 kB / 364 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.2233, allocations: 12 kB / 364.1 MB, free: 5.949 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.039e-05/0.2234, allocations: 31.94 kB / 364.1 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.2234, allocations: 19.92 kB / 364.1 MB, free: 5.898 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.966e-05/0.2234, allocations: 128.9 kB / 364.2 MB, free: 5.773 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2234, allocations: 0 / 364.2 MB, free: 5.773 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001764/0.2252, allocations: 1.006 MB / 365.2 MB, free: 4.766 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.003305/0.2285, allocations: 1.286 MB / 366.5 MB, free: 3.473 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.2295, allocations: 0.812 MB / 367.3 MB, free: 2.66 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/0.2295, allocations: 4.125 kB / 367.3 MB, free: 2.656 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003582/0.2299, allocations: 371.3 kB / 367.7 MB, free: 2.289 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.2303, allocations: 87.67 kB / 367.8 MB, free: 2.207 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.2319, allocations: 1.165 MB / 369 MB, free: 1.012 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.592e-05/0.232, allocations: 144.6 kB / 369.1 MB, free: 0.8477 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.001344/0.2334, allocations: 1.779 MB / 370.9 MB, free: 15.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002427/0.2336, allocations: 96.34 kB / 371 MB, free: 15 MB / 330.7 MB Notification: Performance of SimCode: time 1.783e-06/0.2336, allocations: 7.938 kB / 371 MB, free: 15 MB / 330.7 MB Notification: Performance of Templates: time 0.04985/0.2835, allocations: 51.33 MB / 422.3 MB, free: 11.65 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.183238470926881]