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.001715/0.001715, allocations: 84.95 kB / 20.68 MB, free: 1.035 MB / 14.72 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.00204/0.00204, allocations: 158.2 kB / 23.95 MB, free: 4.168 MB / 14.72 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.46/1.46, allocations: 177 MB / 204.1 MB, free: 9.195 MB / 190.1 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 1.132e-06/1.132e-06, allocations: 0 / 327.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.389e-05/2.502e-05, allocations: 2.281 kB / 327.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01704/0.01706, allocations: 12.31 MB / 340.1 MB, free: 5.445 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01934/0.0364, allocations: 13.63 MB / 353.7 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002029/0.0366, allocations: 0 / 353.7 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004117/0.03701, allocations: 75.53 kB / 353.8 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004568/0.03747, allocations: 123.1 kB / 353.9 MB, free: 8.109 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01953/0.057, allocations: 6.006 MB / 359.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006354/0.05763, allocations: 350.3 kB / 360.3 MB, free: 1.766 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.949e-05/0.0577, allocations: 13.81 kB / 360.3 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007031/0.05841, allocations: 263 kB / 360.5 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001838/0.05859, allocations: 91.75 kB / 360.6 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.682e-05/0.05863, allocations: 16 kB / 360.6 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01463/0.07326, allocations: 6.493 MB / 367.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.07336, allocations: 43.81 kB / 367.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000168/0.07353, allocations: 79.89 kB / 367.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.08474, allocations: 4.981 MB / 372.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.08475, allocations: 0 / 372.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.08475, allocations: 0 / 372.2 MB, free: 5.777 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.08476, allocations: 0 / 372.2 MB, free: 5.777 MB / 334.1 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.002871/0.08763, allocations: 0.9459 MB / 373.2 MB, free: 4.801 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.08767, allocations: 11.98 kB / 373.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001513/0.08919, allocations: 176.6 kB / 373.4 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004103/0.0896, allocations: 197.4 kB / 373.5 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.35e-05/0.08963, allocations: 20.88 kB / 373.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.154e-05/0.08969, allocations: 20.38 kB / 373.6 MB, free: 4.359 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003445/0.09314, allocations: 0.9606 MB / 374.5 MB, free: 3.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.582e-05/0.09315, allocations: 7.938 kB / 374.6 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.849e-05/0.09319, allocations: 12 kB / 374.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.0932, allocations: 4 kB / 374.6 MB, free: 3.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003483/0.09668, allocations: 0.9619 MB / 375.5 MB, free: 2.379 MB / 334.1 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.001606/0.09829, allocations: 0.9091 MB / 376.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002918/0.1012, allocations: 0.7252 MB / 377.2 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003003/0.1015, allocations: 152.8 kB / 377.3 MB, free: 0.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08081/0.1823, allocations: 20.62 MB / 397.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/0.1824, allocations: 34.56 kB / 398 MB, free: 11.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.515e-06/0.1824, allocations: 0 / 398 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.006231/0.1886, allocations: 1.352 MB / 399.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.098e-05/0.1886, allocations: 59.34 kB / 399.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001411/0.1888, allocations: 129.7 kB / 399.5 MB, free: 10.29 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.723e-05/0.1889, allocations: 33.7 kB / 399.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.422e-05/0.189, allocations: 120.8 kB / 399.7 MB, free: 10.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.1891, allocations: 119 kB / 399.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000334/0.1895, allocations: 161.6 kB / 399.9 MB, free: 9.844 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001758/0.1897, allocations: 322.8 kB / 400.2 MB, free: 9.52 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007722/0.1904, allocations: 339.8 kB / 400.6 MB, free: 9.188 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008295/0.1913, allocations: 403.5 kB / 401 MB, free: 8.766 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001561/0.1928, allocations: 0.7114 MB / 401.7 MB, free: 8.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.1928, allocations: 4 kB / 401.7 MB, free: 8.023 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.002275/0.1951, allocations: 0.8681 MB / 402.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.1951, allocations: 11.98 kB / 402.6 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.1951, allocations: 0 / 402.6 MB, free: 7.137 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.035e-05/0.1951, allocations: 4 kB / 402.6 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000701/0.1958, allocations: 179.7 kB / 402.7 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1959, allocations: 7.984 kB / 402.8 MB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003768/0.1962, allocations: 43.95 kB / 402.8 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001276/0.1964, allocations: 59.94 kB / 402.9 MB, free: 6.848 MB / 366.1 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.0002583/0.1966, allocations: 137.8 kB / 403 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.1968, allocations: 19.89 kB / 403 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009653/0.2064, allocations: 8.504 MB / 411.5 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.014e-05/0.2065, allocations: 31.95 kB / 411.5 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.2065, allocations: 7.875 kB / 411.6 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.2065, allocations: 7.922 kB / 411.6 MB, free: 14.13 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003705/0.2102, allocations: 3.632 MB / 415.2 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.2102, allocations: 0 / 415.2 MB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007047/0.2109, allocations: 115.8 kB / 415.3 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.2109, allocations: 0 / 415.3 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.062e-05/0.211, allocations: 15.92 kB / 415.3 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.951e-06/0.211, allocations: 4 kB / 415.3 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.211, allocations: 0 / 415.3 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002983/0.214, allocations: 1.892 MB / 417.2 MB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.312e-05/0.2141, allocations: 79.27 kB / 417.3 MB, free: 8.129 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.968e-05/0.2141, allocations: 7.984 kB / 417.3 MB, free: 8.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003145/0.2144, allocations: 12 kB / 417.3 MB, free: 8.109 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/0.2146, allocations: 31.94 kB / 417.3 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-05/0.2146, allocations: 15.98 kB / 417.4 MB, free: 8.062 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.179e-05/0.2147, allocations: 91.27 kB / 417.5 MB, free: 7.973 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2147, allocations: 4.062 kB / 417.5 MB, free: 7.969 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002762/0.2174, allocations: 0.998 MB / 418.5 MB, free: 6.969 MB / 382.1 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.005292/0.2227, allocations: 1.285 MB / 419.7 MB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001811/0.2245, allocations: 0.8912 MB / 420.6 MB, free: 4.773 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.686e-06/0.2245, allocations: 0 / 420.6 MB, free: 4.773 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008273/0.2254, allocations: 0.5283 MB / 421.2 MB, free: 4.246 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006962/0.2261, allocations: 88.56 kB / 421.2 MB, free: 4.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.2281, allocations: 1.28 MB / 422.5 MB, free: 2.855 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00025/0.2283, allocations: 255.2 kB / 422.8 MB, free: 2.582 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002181/0.2305, allocations: 1.787 MB / 424.6 MB, free: 0.7891 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003992/0.2309, allocations: 92.41 kB / 424.7 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2309, allocations: 4 kB / 424.7 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of Templates: time 0.06387/0.2948, allocations: 41.56 MB / 466.2 MB, free: 7.086 MB / 430.1 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.465854700654745]