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.00111/0.00111, allocations: 118.2 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001283/0.001283, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 59.89 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2299, allocations: 50.54 MB / 411.6 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01552/0.2454, allocations: 13.45 MB / 425 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01661/0.2621, allocations: 15.56 MB / 440.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.2623, allocations: 0 / 440.6 MB, free: 3.523 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003167/0.2626, allocations: 87.48 kB / 440.7 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003367/0.263, allocations: 107.3 kB / 440.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01385/0.2768, allocations: 5.974 MB / 446.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004418/0.2773, allocations: 346.5 kB / 447.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.985e-05/0.2774, allocations: 17.67 kB / 447.1 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004473/0.2778, allocations: 231 kB / 447.3 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001582/0.278, allocations: 103.6 kB / 447.4 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.906e-05/0.278, allocations: 16 kB / 447.4 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01168/0.2897, allocations: 6.763 MB / 454.2 MB, free: 5.895 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.025e-05/0.2898, allocations: 47.83 kB / 454.2 MB, free: 5.848 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001384/0.2899, allocations: 103.6 kB / 454.3 MB, free: 5.746 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006874/0.2968, allocations: 3.914 MB / 458.3 MB, free: 1.824 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.2969, allocations: 4 kB / 458.3 MB, free: 1.82 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2969, allocations: 4 kB / 458.3 MB, free: 1.816 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.2969, allocations: 0 / 458.3 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.002477/0.2994, allocations: 0.9869 MB / 459.3 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2994, allocations: 16.02 kB / 459.3 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001408/0.3008, allocations: 168.6 kB / 459.4 MB, free: 0.6016 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003439/0.3012, allocations: 260 kB / 459.7 MB, free: 316 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.25e-05/0.3012, allocations: 24.75 kB / 459.7 MB, free: 292 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.199e-05/0.3013, allocations: 32.11 kB / 459.7 MB, free: 260 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003088/0.3044, allocations: 0.9012 MB / 460.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.237e-05/0.3044, allocations: 0 / 460.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.22e-05/0.3044, allocations: 12 kB / 460.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.3045, allocations: 4 kB / 460.7 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003194/0.3077, allocations: 0.9773 MB / 461.6 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.001543/0.3092, allocations: 1.343 MB / 463 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00256/0.3118, allocations: 0.7247 MB / 463.7 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/0.3121, allocations: 164.8 kB / 463.9 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07582/0.3879, allocations: 42.17 MB / 0.4942 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.388, allocations: 38.56 kB / 0.4942 GB, free: 12.38 MB / 430.1 MB Notification: Performance of pre-optimization done (n=33): time 2.505e-06/0.388, allocations: 0 / 0.4942 GB, free: 12.38 MB / 430.1 MB Notification: Performance of matching and sorting (n=33): time 0.00516/0.3931, allocations: 1.366 MB / 0.4956 GB, free: 11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.427e-05/0.3932, allocations: 55.41 kB / 0.4956 GB, free: 10.94 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.3933, allocations: 117.8 kB / 0.4957 GB, free: 10.81 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.834e-05/0.3934, allocations: 33.7 kB / 0.4958 GB, free: 10.77 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.763e-05/0.3935, allocations: 112.7 kB / 0.4959 GB, free: 10.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001269/0.3936, allocations: 114.3 kB / 0.496 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/0.3939, allocations: 169.5 kB / 0.4961 GB, free: 10.38 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001083/0.394, allocations: 326.8 kB / 0.4964 GB, free: 10.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006349/0.3947, allocations: 343.6 kB / 0.4968 GB, free: 9.711 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007083/0.3954, allocations: 407.5 kB / 0.4972 GB, free: 9.285 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001331/0.3967, allocations: 0.7064 MB / 0.4978 GB, free: 8.551 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.3967, allocations: 4 kB / 0.4979 GB, free: 8.547 MB / 430.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001838/0.3986, allocations: 0.8722 MB / 0.4987 GB, free: 7.668 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3986, allocations: 8 kB / 0.4987 GB, free: 7.66 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.3986, allocations: 3.938 kB / 0.4987 GB, free: 7.656 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.3986, allocations: 4 kB / 0.4987 GB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006851/0.3993, allocations: 175.7 kB / 0.4989 GB, free: 7.48 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.176e-05/0.3994, allocations: 7.984 kB / 0.4989 GB, free: 7.473 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.3997, allocations: 27.78 kB / 0.4989 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.3998, allocations: 68.3 kB / 0.499 GB, free: 7.379 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.0002118/0.4, allocations: 145.8 kB / 0.4991 GB, free: 7.227 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.4002, allocations: 23.8 kB / 0.4991 GB, free: 7.203 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007225/0.4074, allocations: 7.974 MB / 0.5069 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.798e-05/0.4075, allocations: 27.95 kB / 0.507 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4075, allocations: 0 / 0.507 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4075, allocations: 4 kB / 0.507 GB, free: 15.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002868/0.4104, allocations: 3.596 MB / 0.5105 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.4104, allocations: 0 / 0.5105 GB, free: 11.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006555/0.411, allocations: 115.8 kB / 0.5106 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.4111, allocations: 0 / 0.5106 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.819e-05/0.4111, allocations: 11.94 kB / 0.5106 GB, free: 11.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.391e-06/0.4111, allocations: 4 kB / 0.5106 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.4111, allocations: 0 / 0.5106 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002295/0.4134, allocations: 1.842 MB / 0.5124 GB, free: 9.328 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.528e-05/0.4136, allocations: 140.2 kB / 0.5125 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.586e-05/0.4136, allocations: 11.94 kB / 0.5125 GB, free: 9.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002946/0.4139, allocations: 15.98 kB / 0.5126 GB, free: 9.145 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.798e-05/0.414, allocations: 27.95 kB / 0.5126 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.044e-05/0.4141, allocations: 16 kB / 0.5126 GB, free: 9.102 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.635e-05/0.4141, allocations: 95.33 kB / 0.5127 GB, free: 9.008 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.4141, allocations: 0 / 0.5127 GB, free: 9.008 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002487/0.4166, allocations: 0.9955 MB / 0.5137 GB, free: 8.012 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.004221/0.4208, allocations: 1.139 MB / 0.5148 GB, free: 6.863 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001591/0.4225, allocations: 0.9029 MB / 0.5157 GB, free: 5.961 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.4225, allocations: 0.7812 kB / 0.5157 GB, free: 5.961 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007849/0.4233, allocations: 0.5954 MB / 0.5162 GB, free: 5.367 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006083/0.4239, allocations: 83.8 kB / 0.5163 GB, free: 5.285 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.4257, allocations: 1.306 MB / 0.5176 GB, free: 3.945 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.4261, allocations: 0.8575 MB / 0.5184 GB, free: 3.059 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001891/0.428, allocations: 1.787 MB / 0.5202 GB, free: 1.266 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.4283, allocations: 87.36 kB / 0.5203 GB, free: 1.184 MB / 446.1 MB Notification: Performance of SimCode: time 3.5e-07/0.4283, allocations: 0 / 0.5203 GB, free: 1.184 MB / 446.1 MB Notification: Performance of Templates: time 0.2248/0.6531, allocations: 41.01 MB / 0.5603 GB, free: 116.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/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_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches