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.001923/0.001923, allocations: 96.25 kB / 20.96 MB, free: 3.469 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.002341/0.002341, allocations: 156.9 kB / 24.27 MB, free: 172 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 1.486/1.486, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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 4.599e-06/4.599e-06, allocations: 3.984 kB / 275 MB, free: 15.03 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.346e-05/2.806e-05, allocations: 2.312 kB / 275 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01841/0.01844, allocations: 12.3 MB / 287.3 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1252/0.1436, allocations: 13.63 MB / 300.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001398/0.1437, allocations: 1.094 kB / 300.9 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003243/0.1441, allocations: 75.78 kB / 301 MB, free: 12.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003098/0.1444, allocations: 118.5 kB / 301.1 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01424/0.1586, allocations: 5.991 MB / 307.1 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004003/0.159, allocations: 351.6 kB / 307.4 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.213e-05/0.1591, allocations: 15.83 kB / 307.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004342/0.1595, allocations: 258.3 kB / 307.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.1596, allocations: 90.23 kB / 307.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.848e-05/0.1597, allocations: 12.91 kB / 307.8 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01049/0.1702, allocations: 6.488 MB / 314.3 MB, free: 7.25 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.197e-05/0.1702, allocations: 43.83 kB / 314.3 MB, free: 7.207 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.1704, allocations: 83.81 kB / 314.4 MB, free: 7.125 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006356/0.1767, allocations: 4.985 MB / 319.4 MB, free: 2.129 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1767, allocations: 4 kB / 319.4 MB, free: 2.125 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1767, allocations: 0 / 319.4 MB, free: 2.125 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1767, allocations: 0 / 319.4 MB, free: 2.125 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.001901/0.1786, allocations: 0.9356 MB / 320.3 MB, free: 1.152 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.231e-05/0.1787, allocations: 15.98 kB / 320.3 MB, free: 1.137 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001375/0.18, allocations: 292 kB / 320.6 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002697/0.1803, allocations: 201.5 kB / 320.8 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.289e-05/0.1803, allocations: 16.88 kB / 320.8 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.1804, allocations: 28.27 kB / 320.9 MB, free: 0.5898 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003161/0.1835, allocations: 0.9569 MB / 321.8 MB, free: 15.61 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.265e-05/0.1836, allocations: 3.938 kB / 321.8 MB, free: 15.6 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.923e-05/0.1836, allocations: 15.94 kB / 321.8 MB, free: 15.59 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-06/0.1836, allocations: 10 kB / 321.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003643/0.1873, allocations: 0.9658 MB / 322.8 MB, free: 14.61 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.001646/0.1889, allocations: 0.9026 MB / 323.7 MB, free: 13.67 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002933/0.1918, allocations: 0.7253 MB / 324.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003162/0.1921, allocations: 148.8 kB / 324.6 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07559/0.2677, allocations: 20.62 MB / 345.2 MB, free: 8.148 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.2678, allocations: 34.56 kB / 345.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of pre-optimization done (n=33): time 1.794e-06/0.2678, allocations: 0 / 345.2 MB, free: 8.105 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.006055/0.2738, allocations: 1.438 MB / 346.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.2739, allocations: 55.41 kB / 346.7 MB, free: 6.594 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001459/0.274, allocations: 123.2 kB / 346.9 MB, free: 6.465 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.555e-05/0.2741, allocations: 41.64 kB / 346.9 MB, free: 6.418 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.175e-05/0.2742, allocations: 116.9 kB / 347 MB, free: 6.301 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.2744, allocations: 119 kB / 347.1 MB, free: 6.184 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003276/0.2747, allocations: 165.5 kB / 347.3 MB, free: 6.016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.2749, allocations: 330.8 kB / 347.6 MB, free: 5.684 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007357/0.2756, allocations: 335.8 kB / 347.9 MB, free: 5.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008371/0.2765, allocations: 407.5 kB / 348.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.278, allocations: 0.7075 MB / 349 MB, free: 4.195 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.521e-06/0.278, allocations: 4 kB / 349.1 MB, free: 4.191 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002174/0.2802, allocations: 0.8876 MB / 349.9 MB, free: 3.297 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.2802, allocations: 8 kB / 349.9 MB, free: 3.289 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.516e-05/0.2802, allocations: 0 / 349.9 MB, free: 3.289 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.2803, allocations: 4 kB / 350 MB, free: 3.285 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001002/0.2813, allocations: 175.7 kB / 350.1 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.2813, allocations: 7.984 kB / 350.1 MB, free: 3.105 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003832/0.2817, allocations: 36.03 kB / 350.2 MB, free: 3.07 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.2818, allocations: 67.92 kB / 350.2 MB, free: 3.004 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.0002649/0.2821, allocations: 141.7 kB / 350.4 MB, free: 2.855 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002269/0.2823, allocations: 24.78 kB / 350.4 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01043/0.2927, allocations: 8.508 MB / 358.9 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.741e-05/0.2928, allocations: 35.84 kB / 358.9 MB, free: 10.28 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.2928, allocations: 4 kB / 358.9 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.2928, allocations: 0 / 358.9 MB, free: 10.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004101/0.2969, allocations: 3.644 MB / 362.6 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.2969, allocations: 0 / 362.6 MB, free: 6.387 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007223/0.2976, allocations: 110.7 kB / 362.7 MB, free: 6.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.237e-06/0.2976, allocations: 4 kB / 362.7 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.5e-05/0.2977, allocations: 11.98 kB / 362.7 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.2977, allocations: 0 / 362.7 MB, free: 6.266 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2977, allocations: 7.938 kB / 362.7 MB, free: 6.258 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003263/0.3009, allocations: 1.912 MB / 364.6 MB, free: 4.328 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.982e-05/0.301, allocations: 67.33 kB / 364.7 MB, free: 4.262 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/0.3011, allocations: 8 kB / 364.7 MB, free: 4.254 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003413/0.3014, allocations: 19.98 kB / 364.7 MB, free: 4.234 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.3015, allocations: 23.94 kB / 364.7 MB, free: 4.211 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.313e-05/0.3016, allocations: 16 kB / 364.8 MB, free: 4.195 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.244e-05/0.3016, allocations: 91.27 kB / 364.9 MB, free: 4.105 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3016, allocations: 4.062 kB / 364.9 MB, free: 4.102 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002788/0.3044, allocations: 1.002 MB / 365.9 MB, free: 3.098 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.004247/0.3087, allocations: 1.297 MB / 367.2 MB, free: 1.801 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001863/0.3105, allocations: 0.8912 MB / 368 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3105, allocations: 0 / 368 MB, free: 0.9102 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008654/0.3114, allocations: 0.521 MB / 368.6 MB, free: 400 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000705/0.3121, allocations: 100.8 kB / 368.7 MB, free: 304 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.3143, allocations: 1.305 MB / 370 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002825/0.3146, allocations: 255.2 kB / 370.2 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.002577/0.3172, allocations: 1.782 MB / 372 MB, free: 12.93 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003813/0.3175, allocations: 88.42 kB / 372.1 MB, free: 12.85 MB / 330.7 MB Notification: Performance of SimCode: time 1.143e-06/0.3175, allocations: 0 / 372.1 MB, free: 12.85 MB / 330.7 MB Notification: Performance of Templates: time 0.06659/0.3841, allocations: 41.74 MB / 413.8 MB, free: 3.062 MB / 362.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] 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","/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: 7.354860792984255]