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.0007982/0.0007982, allocations: 84 kB / 21.43 MB, free: 3.121 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.00338/0.00338, allocations: 148.5 kB / 24.68 MB, free: 8.91 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.8404/0.8404, allocations: 173.4 MB / 201.2 MB, free: 9.441 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.423e-06/1.423e-06, allocations: 0 / 322.4 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.119e-05/2.261e-05, allocations: 5.797 kB / 322.4 MB, free: 3.121 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.009605/0.009628, allocations: 12.2 MB / 334.6 MB, free: 6.875 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009928/0.01956, allocations: 13.63 MB / 348.3 MB, free: 9.184 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.883e-05/0.01965, allocations: 0 / 348.3 MB, free: 9.184 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003028/0.01996, allocations: 63.59 kB / 348.3 MB, free: 9.121 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002931/0.02025, allocations: 123.1 kB / 348.4 MB, free: 9 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01044/0.03069, allocations: 5.987 MB / 354.4 MB, free: 3.016 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003304/0.03102, allocations: 350.3 kB / 354.8 MB, free: 2.672 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.813e-05/0.03107, allocations: 9.812 kB / 354.8 MB, free: 2.664 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003847/0.03146, allocations: 271 kB / 355 MB, free: 2.398 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.03157, allocations: 83.78 kB / 355.1 MB, free: 2.316 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.088e-05/0.03159, allocations: 12 kB / 355.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007591/0.03918, allocations: 6.485 MB / 361.6 MB, free: 11.81 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.353e-05/0.03926, allocations: 39.88 kB / 361.7 MB, free: 11.77 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.029e-05/0.03934, allocations: 79.83 kB / 361.7 MB, free: 11.7 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005744/0.04508, allocations: 4.966 MB / 366.7 MB, free: 6.719 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.04509, allocations: 4 kB / 366.7 MB, free: 6.715 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.04509, allocations: 0 / 366.7 MB, free: 6.715 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.04509, allocations: 0 / 366.7 MB, free: 6.715 MB / 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.001508/0.0466, allocations: 0.9344 MB / 367.6 MB, free: 5.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.04664, allocations: 12.92 kB / 367.6 MB, free: 5.738 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006907/0.04733, allocations: 180.6 kB / 367.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000283/0.04761, allocations: 193.5 kB / 368 MB, free: 5.348 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.04764, allocations: 20.88 kB / 368 MB, free: 5.324 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.509e-05/0.04767, allocations: 24.38 kB / 368.1 MB, free: 5.301 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001574/0.04925, allocations: 0.9567 MB / 369 MB, free: 4.312 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.04926, allocations: 3.938 kB / 369 MB, free: 4.309 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.301e-05/0.04928, allocations: 15.94 kB / 369 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-06/0.04929, allocations: 4 kB / 369 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001578/0.05087, allocations: 0.9659 MB / 370 MB, free: 3.324 MB / 330.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.0009209/0.05179, allocations: 0.909 MB / 370.9 MB, free: 2.371 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001253/0.05304, allocations: 0.7255 MB / 371.6 MB, free: 1.637 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.0532, allocations: 160.8 kB / 371.8 MB, free: 1.477 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03101/0.0842, allocations: 19.71 MB / 391.5 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.767e-05/0.08424, allocations: 42.56 kB / 391.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=33): time 2.194e-06/0.08424, allocations: 0 / 391.5 MB, free: 13.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.002731/0.08698, allocations: 1.36 MB / 392.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.001e-05/0.08701, allocations: 55.41 kB / 393 MB, free: 12.26 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.58e-05/0.08709, allocations: 125.7 kB / 393.1 MB, free: 12.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.15e-05/0.08713, allocations: 33.7 kB / 393.1 MB, free: 12.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.359e-05/0.08719, allocations: 116.9 kB / 393.2 MB, free: 11.97 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.264e-05/0.08727, allocations: 119 kB / 393.3 MB, free: 11.85 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.08743, allocations: 165.5 kB / 393.5 MB, free: 11.68 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.091e-05/0.08751, allocations: 326.8 kB / 393.8 MB, free: 11.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/0.08789, allocations: 331.8 kB / 394.2 MB, free: 11.03 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004197/0.0883, allocations: 415.1 kB / 394.6 MB, free: 10.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007957/0.0891, allocations: 0.7153 MB / 395.3 MB, free: 9.855 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.0891, allocations: 0 / 395.3 MB, free: 9.855 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001078/0.09018, allocations: 0.8797 MB / 396.2 MB, free: 8.969 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.0902, allocations: 4 kB / 396.2 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.09021, allocations: 4 kB / 396.2 MB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.09022, allocations: 4 kB / 396.2 MB, free: 8.957 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002994/0.09052, allocations: 179.7 kB / 396.3 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.09053, allocations: 8.359 kB / 396.3 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001499/0.09068, allocations: 39.97 kB / 396.4 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.276e-05/0.09074, allocations: 67.91 kB / 396.5 MB, free: 8.668 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.0001458/0.09089, allocations: 141.7 kB / 396.6 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.507e-05/0.09096, allocations: 15.91 kB / 396.6 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004761/0.09572, allocations: 8.511 MB / 405.1 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.72e-05/0.09574, allocations: 31.95 kB / 405.1 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.09574, allocations: 0 / 405.1 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.09575, allocations: 3.938 kB / 405.2 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001895/0.09764, allocations: 3.637 MB / 408.8 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.09765, allocations: 0 / 408.8 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002669/0.09792, allocations: 103.8 kB / 408.9 MB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.749e-06/0.09792, allocations: 4 kB / 408.9 MB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.09794, allocations: 15.98 kB / 408.9 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.09795, allocations: 0 / 408.9 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.09795, allocations: 0 / 408.9 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001488/0.09944, allocations: 1.896 MB / 410.8 MB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.519e-05/0.09947, allocations: 67.33 kB / 410.9 MB, free: 9.965 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/0.0995, allocations: 11.94 kB / 410.9 MB, free: 9.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.09962, allocations: 15.98 kB / 410.9 MB, free: 9.938 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/0.09969, allocations: 31.94 kB / 410.9 MB, free: 9.906 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.09971, allocations: 12 kB / 410.9 MB, free: 9.895 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.601e-05/0.09975, allocations: 91.27 kB / 411 MB, free: 9.805 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09975, allocations: 64 / 411 MB, free: 9.805 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001902/0.1016, allocations: 1.002 MB / 412 MB, free: 8.801 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.002486/0.1041, allocations: 1.278 MB / 413.3 MB, free: 7.512 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009078/0.105, allocations: 0.8883 MB / 414.2 MB, free: 6.621 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.105, allocations: 4 kB / 414.2 MB, free: 6.617 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004316/0.1055, allocations: 0.5322 MB / 414.7 MB, free: 6.082 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003669/0.1058, allocations: 84.34 kB / 414.8 MB, free: 6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.1071, allocations: 1.301 MB / 416.1 MB, free: 4.668 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.1072, allocations: 263 kB / 416.4 MB, free: 4.387 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000221/0.1075, allocations: 96.41 kB / 416.5 MB, free: 4.293 MB / 378.7 MB Notification: Performance of SimCode: time 9.91e-07/0.1075, allocations: 0 / 416.5 MB, free: 4.293 MB / 378.7 MB Notification: Performance of Templates: time 0.02011/0.1276, allocations: 24.27 MB / 440.7 MB, free: 11.96 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 6.1990400440990925]