Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009523/0.0009523, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.004062/0.004062, allocations: 160.5 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8361/0.8361, allocations: 177.1 MB / 205 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.673e-06/1.673e-06, allocations: 3.938 kB / 328.6 MB, free: 12.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.304e-05, allocations: 8.531 kB / 328.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.009568/0.009591, allocations: 12.33 MB / 340.9 MB, free: 268 kB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009696/0.01929, allocations: 13.62 MB / 354.5 MB, free: 2.586 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.754e-05/0.01937, allocations: 0 / 354.5 MB, free: 2.586 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002928/0.01967, allocations: 79.52 kB / 354.6 MB, free: 2.508 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002797/0.01995, allocations: 119.1 kB / 354.7 MB, free: 2.391 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.009809/0.02976, allocations: 6.003 MB / 360.7 MB, free: 12.39 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003368/0.03009, allocations: 358.3 kB / 361.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.864e-05/0.03014, allocations: 9.812 kB / 361.1 MB, free: 12.03 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003794/0.03052, allocations: 255.1 kB / 361.3 MB, free: 11.78 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001183/0.03064, allocations: 95.7 kB / 361.4 MB, free: 11.69 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.207e-05/0.03066, allocations: 12 kB / 361.4 MB, free: 11.68 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007468/0.03813, allocations: 6.507 MB / 368 MB, free: 5.164 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.399e-05/0.03819, allocations: 47.81 kB / 368 MB, free: 5.117 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.988e-05/0.03826, allocations: 71.91 kB / 368.1 MB, free: 5.047 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005272/0.04354, allocations: 4.977 MB / 373 MB, free: 60 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.04354, allocations: 3.938 kB / 373.1 MB, free: 56 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.04354, allocations: 0 / 373.1 MB, free: 56 kB / 330.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.04354, allocations: 0 / 373.1 MB, free: 56 kB / 330.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.001528/0.04507, allocations: 0.9537 MB / 374 MB, free: 15.07 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.04511, allocations: 8.031 kB / 374 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006912/0.0458, allocations: 176.6 kB / 374.2 MB, free: 14.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.04609, allocations: 197.4 kB / 374.4 MB, free: 14.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.699e-05/0.04612, allocations: 20.88 kB / 374.4 MB, free: 14.65 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.262e-05/0.04615, allocations: 20.38 kB / 374.4 MB, free: 14.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/0.04774, allocations: 0.9568 MB / 375.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.04775, allocations: 3.938 kB / 375.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.04777, allocations: 8 kB / 375.4 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.04778, allocations: 4 kB / 375.4 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001581/0.04936, allocations: 0.9658 MB / 376.4 MB, free: 12.66 MB / 346.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.001002/0.05036, allocations: 0.9091 MB / 377.3 MB, free: 11.71 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001256/0.05162, allocations: 0.7208 MB / 378 MB, free: 10.98 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.05178, allocations: 149.4 kB / 378.1 MB, free: 10.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03195/0.08373, allocations: 20.62 MB / 398.8 MB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.08376, allocations: 38.5 kB / 398.8 MB, free: 6.133 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.08376, allocations: 0 / 398.8 MB, free: 6.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002711/0.08647, allocations: 1.352 MB / 400.1 MB, free: 4.773 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.08651, allocations: 55.41 kB / 400.2 MB, free: 4.707 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.97e-05/0.08659, allocations: 133.7 kB / 400.3 MB, free: 4.566 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.088e-05/0.08663, allocations: 30.08 kB / 400.4 MB, free: 4.531 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.762e-05/0.08668, allocations: 116.9 kB / 400.5 MB, free: 4.41 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.063e-05/0.08676, allocations: 123 kB / 400.6 MB, free: 4.289 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/0.08692, allocations: 161.6 kB / 400.8 MB, free: 4.125 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.08702, allocations: 326.8 kB / 401.1 MB, free: 3.797 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003685/0.08739, allocations: 339.8 kB / 401.4 MB, free: 3.465 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/0.0878, allocations: 407.5 kB / 401.8 MB, free: 3.039 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007786/0.08857, allocations: 0.7114 MB / 402.5 MB, free: 2.301 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.08858, allocations: 4 kB / 402.5 MB, free: 2.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001137/0.08971, allocations: 0.8719 MB / 403.4 MB, free: 1.418 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.08973, allocations: 8 kB / 403.4 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.08974, allocations: 0 / 403.4 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.08975, allocations: 4 kB / 403.4 MB, free: 1.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002991/0.09005, allocations: 179.8 kB / 403.6 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.09006, allocations: 4.25 kB / 403.6 MB, free: 1.227 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001466/0.0902, allocations: 35.72 kB / 403.6 MB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.082e-05/0.09026, allocations: 67.92 kB / 403.7 MB, free: 1.125 MB / 362.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.000136/0.0904, allocations: 145.7 kB / 403.8 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.573e-05/0.09048, allocations: 15.91 kB / 403.8 MB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005238/0.09571, allocations: 8.511 MB / 412.3 MB, free: 8.438 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.451e-05/0.09575, allocations: 27.95 kB / 412.4 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.09575, allocations: 0 / 412.4 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.09576, allocations: 3.938 kB / 412.4 MB, free: 8.406 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002464/0.09823, allocations: 3.637 MB / 416 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.09823, allocations: 0 / 416 MB, free: 4.523 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002817/0.09851, allocations: 111.8 kB / 416.1 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.75e-06/0.09852, allocations: 3.984 kB / 416.1 MB, free: 4.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.555e-05/0.09855, allocations: 12 kB / 416.1 MB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/0.09855, allocations: 0 / 416.1 MB, free: 4.398 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.09855, allocations: 4 kB / 416.1 MB, free: 4.395 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001615/0.1002, allocations: 1.897 MB / 418 MB, free: 2.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.584e-05/0.1002, allocations: 71.25 kB / 418.1 MB, free: 2.41 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.742e-05/0.1003, allocations: 8 kB / 418.1 MB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001241/0.1004, allocations: 15.98 kB / 418.1 MB, free: 2.387 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.604e-05/0.1005, allocations: 35.88 kB / 418.2 MB, free: 2.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.1005, allocations: 12 kB / 418.2 MB, free: 2.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.537e-05/0.1005, allocations: 95.33 kB / 418.3 MB, free: 2.246 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1005, allocations: 4 kB / 418.3 MB, free: 2.242 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002593/0.1031, allocations: 1.002 MB / 419.3 MB, free: 1.238 MB / 378.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.002487/0.1056, allocations: 1.293 MB / 420.6 MB, free: 15.93 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001036/0.1066, allocations: 0.8876 MB / 421.5 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1066, allocations: 0 / 421.5 MB, free: 15.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004195/0.1071, allocations: 0.5327 MB / 422 MB, free: 14.51 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003798/0.1074, allocations: 88.08 kB / 422.1 MB, free: 14.43 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.1086, allocations: 1.312 MB / 423.4 MB, free: 13.08 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001387/0.1088, allocations: 255.2 kB / 423.6 MB, free: 12.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002143/0.109, allocations: 96.41 kB / 423.7 MB, free: 12.71 MB / 394.7 MB Notification: Performance of SimCode: time 7.41e-07/0.109, allocations: 0 / 423.7 MB, free: 12.71 MB / 394.7 MB Notification: Performance of Templates: time 0.02002/0.129, allocations: 24.45 MB / 448.2 MB, free: 4.195 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & ./Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 5.865825771354139]