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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=4400,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=4400,variableFilter="time|medium.h|medium.p",fileNamePrefix="Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001574/0.001574, allocations: 113.8 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001853/0.001853, allocations: 206.8 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.976/1.976, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 59.89 kB / 361.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2811/0.283, allocations: 50.53 MB / 412.3 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01519/0.2982, allocations: 13.43 MB / 425.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01792/0.3162, allocations: 15.56 MB / 441.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002105/0.3165, allocations: 0 / 441.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004166/0.3169, allocations: 91.47 kB / 441.3 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000482/0.3175, allocations: 111.2 kB / 441.4 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01796/0.3354, allocations: 5.963 MB / 447.4 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005642/0.336, allocations: 350.5 kB / 447.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.781e-05/0.3361, allocations: 21.67 kB / 447.8 MB, free: 13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005855/0.3367, allocations: 227 kB / 448 MB, free: 12.77 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.337, allocations: 107.6 kB / 448.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.337, allocations: 12 kB / 448.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01341/0.3504, allocations: 6.762 MB / 454.9 MB, free: 5.891 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.3506, allocations: 43.83 kB / 454.9 MB, free: 5.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.3508, allocations: 107.6 kB / 455 MB, free: 5.742 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009908/0.3607, allocations: 3.914 MB / 458.9 MB, free: 1.82 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.3608, allocations: 0 / 458.9 MB, free: 1.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3608, allocations: 0 / 458.9 MB, free: 1.82 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.3608, allocations: 3.938 kB / 458.9 MB, free: 1.816 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.003157/0.364, allocations: 1.002 MB / 459.9 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.364, allocations: 8.031 kB / 460 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001438/0.3655, allocations: 176.5 kB / 460.1 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003655/0.3659, allocations: 256 kB / 460.4 MB, free: 304 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.975e-05/0.3659, allocations: 16.81 kB / 460.4 MB, free: 288 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.572e-05/0.366, allocations: 28.12 kB / 460.4 MB, free: 260 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003078/0.3691, allocations: 0.905 MB / 461.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.3691, allocations: 4 kB / 461.3 MB, free: 15.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.3692, allocations: 7.984 kB / 461.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.17e-05/0.3692, allocations: 8 kB / 461.3 MB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003184/0.3724, allocations: 0.9695 MB / 462.3 MB, free: 14.34 MB / 382.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.001881/0.3743, allocations: 1.343 MB / 463.7 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002531/0.3768, allocations: 0.7247 MB / 464.4 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002872/0.3771, allocations: 160.7 kB / 464.5 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08396/0.4611, allocations: 42.18 MB / 0.4948 GB, free: 12.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.113e-05/0.4612, allocations: 34.56 kB / 0.4949 GB, free: 12.37 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 3.617e-06/0.4612, allocations: 0 / 0.4949 GB, free: 12.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.005339/0.4666, allocations: 1.362 MB / 0.4962 GB, free: 11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.831e-05/0.4666, allocations: 55.41 kB / 0.4963 GB, free: 10.94 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001405/0.4668, allocations: 125.8 kB / 0.4964 GB, free: 10.8 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.657e-05/0.4669, allocations: 29.7 kB / 0.4964 GB, free: 10.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.767e-05/0.467, allocations: 112.7 kB / 0.4965 GB, free: 10.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/0.4671, allocations: 118.3 kB / 0.4966 GB, free: 10.54 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.4674, allocations: 161.5 kB / 0.4968 GB, free: 10.38 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4676, allocations: 330.8 kB / 0.4971 GB, free: 10.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006445/0.4682, allocations: 343.6 kB / 0.4974 GB, free: 9.707 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007282/0.469, allocations: 403.9 kB / 0.4978 GB, free: 9.285 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001366/0.4704, allocations: 0.7103 MB / 0.4985 GB, free: 8.547 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4704, allocations: 0 / 0.4985 GB, free: 8.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001961/0.4723, allocations: 0.876 MB / 0.4994 GB, free: 7.664 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.625e-05/0.4724, allocations: 15.38 kB / 0.4994 GB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.4724, allocations: 3.938 kB / 0.4994 GB, free: 7.648 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.4724, allocations: 4 kB / 0.4994 GB, free: 7.645 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006604/0.4731, allocations: 179.7 kB / 0.4996 GB, free: 7.469 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.883e-05/0.4731, allocations: 11.92 kB / 0.4996 GB, free: 7.457 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003429/0.4735, allocations: 23.78 kB / 0.4996 GB, free: 7.434 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001342/0.4736, allocations: 67.92 kB / 0.4997 GB, free: 7.367 MB / 430.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.0002534/0.4739, allocations: 141.7 kB / 0.4998 GB, free: 7.219 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.474, allocations: 19.81 kB / 0.4998 GB, free: 7.199 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00792/0.482, allocations: 7.97 MB / 0.5076 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.875e-05/0.4821, allocations: 27.95 kB / 0.5076 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.165e-05/0.4821, allocations: 0 / 0.5076 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.013e-05/0.4821, allocations: 3.938 kB / 0.5076 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00308/0.4852, allocations: 3.6 MB / 0.5111 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.4852, allocations: 0 / 0.5111 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006443/0.4859, allocations: 107.9 kB / 0.5112 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.446e-06/0.4859, allocations: 0 / 0.5112 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-05/0.486, allocations: 15.92 kB / 0.5113 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.486, allocations: 7.938 kB / 0.5113 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.486, allocations: 0 / 0.5113 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002443/0.4884, allocations: 1.838 MB / 0.5131 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.4886, allocations: 144.2 kB / 0.5132 GB, free: 9.168 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.251e-05/0.4886, allocations: 7.938 kB / 0.5132 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002971/0.4889, allocations: 15.98 kB / 0.5132 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.489, allocations: 27.95 kB / 0.5132 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.4891, allocations: 16 kB / 0.5133 GB, free: 9.102 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.237e-05/0.4892, allocations: 95.2 kB / 0.5134 GB, free: 9.008 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.493e-06/0.4892, allocations: 4.062 kB / 0.5134 GB, free: 9.004 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002901/0.4921, allocations: 0.9955 MB / 0.5143 GB, free: 8.008 MB / 446.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.005118/0.4972, allocations: 1.143 MB / 0.5154 GB, free: 6.855 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.4991, allocations: 0.8951 MB / 0.5163 GB, free: 5.961 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.4991, allocations: 4 kB / 0.5163 GB, free: 5.957 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008629/0.5, allocations: 0.5881 MB / 0.5169 GB, free: 5.371 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007343/0.5007, allocations: 98.3 kB / 0.517 GB, free: 5.277 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.5027, allocations: 1.327 MB / 0.5183 GB, free: 3.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.5031, allocations: 0.8614 MB / 0.5191 GB, free: 3.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.5035, allocations: 91.36 kB / 0.5192 GB, free: 2.934 MB / 446.1 MB Notification: Performance of SimCode: time 5.81e-07/0.5035, allocations: 0 / 0.5192 GB, free: 2.934 MB / 446.1 MB Notification: Performance of Templates: time 0.2901/0.7936, allocations: 24.18 MB / 0.5428 GB, free: 122.7 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches