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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=4400,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=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001309/0.001309, allocations: 112 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 194.9 kB / 18.01 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000955/0.000955, allocations: 47.92 kB / 353.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2296/0.2305, allocations: 49.43 MB / 403 MB, free: 7.895 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01395/0.2445, allocations: 13.32 MB / 416.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01611/0.2607, allocations: 15.57 MB / 431.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.2608, allocations: 0 / 431.9 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003538/0.2612, allocations: 83.47 kB / 432 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003075/0.2616, allocations: 111.2 kB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01388/0.2755, allocations: 5.967 MB / 438.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004254/0.2759, allocations: 330.6 kB / 438.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.533e-05/0.276, allocations: 13.69 kB / 438.4 MB, free: 4.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004258/0.2764, allocations: 235 kB / 438.6 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001539/0.2766, allocations: 103.5 kB / 438.8 MB, free: 4.074 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.082e-05/0.2766, allocations: 16 kB / 438.8 MB, free: 4.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01153/0.2881, allocations: 6.759 MB / 445.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.76e-05/0.2882, allocations: 43.89 kB / 445.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.2884, allocations: 111.5 kB / 445.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007691/0.2961, allocations: 3.905 MB / 449.6 MB, free: 9.227 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.2961, allocations: 0 / 449.6 MB, free: 9.227 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2961, allocations: 0 / 449.6 MB, free: 9.227 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.2961, allocations: 0 / 449.6 MB, free: 9.227 MB / 366.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.002192/0.2983, allocations: 1.014 MB / 450.6 MB, free: 8.16 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.2984, allocations: 8.031 kB / 450.6 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001433/0.2998, allocations: 180.6 kB / 450.8 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003312/0.3002, allocations: 263.9 kB / 451 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.3002, allocations: 16.81 kB / 451.1 MB, free: 7.664 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.807e-05/0.3003, allocations: 28.12 kB / 451.1 MB, free: 7.637 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003029/0.3033, allocations: 0.9051 MB / 452 MB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.3033, allocations: 3.938 kB / 452 MB, free: 6.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.041e-05/0.3034, allocations: 4 kB / 452 MB, free: 6.703 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/0.3034, allocations: 8 kB / 452 MB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003174/0.3065, allocations: 0.9657 MB / 453 MB, free: 5.727 MB / 366.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.001482/0.308, allocations: 1.347 MB / 454.3 MB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002539/0.3106, allocations: 0.7325 MB / 455 MB, free: 3.504 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002731/0.3109, allocations: 156.8 kB / 455.2 MB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07289/0.3838, allocations: 37.56 MB / 492.8 MB, free: 9.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.3839, allocations: 34.56 kB / 492.8 MB, free: 9.297 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 3.045e-06/0.3839, allocations: 0 / 492.8 MB, free: 9.297 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.005158/0.389, allocations: 1.365 MB / 494.2 MB, free: 7.926 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.3891, allocations: 55.41 kB / 494.2 MB, free: 7.859 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.3892, allocations: 125.7 kB / 494.3 MB, free: 7.727 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.914e-05/0.3893, allocations: 29.7 kB / 494.4 MB, free: 7.691 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.9e-05/0.3893, allocations: 116.9 kB / 494.5 MB, free: 7.574 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000124/0.3895, allocations: 122.9 kB / 494.6 MB, free: 7.453 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002919/0.3898, allocations: 169.3 kB / 494.8 MB, free: 7.281 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.3899, allocations: 330.8 kB / 495.1 MB, free: 6.949 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006165/0.3905, allocations: 343.8 kB / 495.4 MB, free: 6.613 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00069/0.3912, allocations: 403.3 kB / 495.8 MB, free: 6.191 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.3926, allocations: 0.7192 MB / 496.5 MB, free: 5.445 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3926, allocations: 0 / 496.5 MB, free: 5.445 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001789/0.3944, allocations: 0.868 MB / 497.4 MB, free: 4.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3944, allocations: 8.25 kB / 497.4 MB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.3944, allocations: 7.938 kB / 497.4 MB, free: 4.555 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.3944, allocations: 4 kB / 497.4 MB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006412/0.3951, allocations: 179.8 kB / 497.6 MB, free: 4.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/0.3951, allocations: 4 kB / 497.6 MB, free: 4.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.3954, allocations: 31.72 kB / 497.6 MB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/0.3956, allocations: 67.92 kB / 497.7 MB, free: 4.273 MB / 414.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.0002016/0.3958, allocations: 137.8 kB / 497.8 MB, free: 4.129 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001347/0.3959, allocations: 19.91 kB / 497.9 MB, free: 4.109 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007216/0.4031, allocations: 7.962 MB / 0.494 GB, free: 12.13 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.864e-05/0.4032, allocations: 27.95 kB / 0.494 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.4032, allocations: 0 / 0.494 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4032, allocations: 384 / 0.494 GB, free: 12.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.4062, allocations: 3.6 MB / 0.4975 GB, free: 8.242 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.703e-06/0.4063, allocations: 4 kB / 0.4975 GB, free: 8.238 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006107/0.4069, allocations: 115.8 kB / 0.4976 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.725e-06/0.4069, allocations: 3.938 kB / 0.4976 GB, free: 8.121 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.155e-05/0.407, allocations: 15.88 kB / 0.4976 GB, free: 8.105 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.407, allocations: 4 kB / 0.4976 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.407, allocations: 0 / 0.4976 GB, free: 8.102 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002373/0.4093, allocations: 1.85 MB / 0.4994 GB, free: 6.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.632e-05/0.4095, allocations: 148.4 kB / 0.4996 GB, free: 6.066 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.348e-05/0.4095, allocations: 7.938 kB / 0.4996 GB, free: 6.059 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.4098, allocations: 15.98 kB / 0.4996 GB, free: 6.043 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.4099, allocations: 31.94 kB / 0.4996 GB, free: 6.012 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.131e-05/0.41, allocations: 16 kB / 0.4997 GB, free: 5.996 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.861e-05/0.41, allocations: 91.27 kB / 0.4997 GB, free: 5.906 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.41, allocations: 4.062 kB / 0.4997 GB, free: 5.902 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002717/0.4128, allocations: 0.9902 MB / 0.5007 GB, free: 4.91 MB / 430.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.003827/0.4166, allocations: 1.146 MB / 0.5018 GB, free: 3.754 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.4182, allocations: 0.899 MB / 0.5027 GB, free: 2.852 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.4182, allocations: 0 / 0.5027 GB, free: 2.852 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007199/0.4189, allocations: 0.5881 MB / 0.5033 GB, free: 2.266 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006263/0.4196, allocations: 92.12 kB / 0.5034 GB, free: 2.176 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.4213, allocations: 1.321 MB / 0.5047 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.4217, allocations: 0.8575 MB / 0.5055 GB, free: 15.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001829/0.4235, allocations: 1.78 MB / 0.5072 GB, free: 14.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003365/0.4239, allocations: 95.34 kB / 0.5073 GB, free: 14.06 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4239, allocations: 0 / 0.5073 GB, free: 14.06 MB / 446.1 MB Notification: Performance of Templates: time 0.2214/0.6452, allocations: 40.88 MB / 0.5473 GB, free: 136.7 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (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) 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) Reference file matches