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.001257/0.001257, allocations: 108.1 kB / 16.62 MB, free: 6.809 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.00127/0.00127, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.298/1.298, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 47.56 kB / 300.1 MB, free: 6.223 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08932/0.09034, allocations: 49.45 MB / 349.6 MB, free: 4.77 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01458/0.105, allocations: 13.45 MB / 363 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1634/0.2684, allocations: 15.59 MB / 378.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.2686, allocations: 0 / 378.6 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003122/0.269, allocations: 72.33 kB / 378.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000289/0.2693, allocations: 111.7 kB / 378.8 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01546/0.2847, allocations: 5.245 MB / 384 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003951/0.2852, allocations: 347.1 kB / 384.4 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.586e-05/0.2852, allocations: 18.3 kB / 384.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.2856, allocations: 217.3 kB / 384.6 MB, free: 8.277 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001355/0.2858, allocations: 106.1 kB / 384.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.893e-05/0.2858, allocations: 13.72 kB / 384.7 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0121/0.2979, allocations: 6.676 MB / 391.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.007e-05/0.298, allocations: 41.22 kB / 391.4 MB, free: 6.406 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.2982, allocations: 108.5 kB / 391.5 MB, free: 6.348 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007777/0.306, allocations: 3.92 MB / 395.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.306, allocations: 0 / 395.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.306, allocations: 0 / 395.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.306, allocations: 2.875 kB / 395.5 MB, free: 4.074 MB / 302.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.002225/0.3083, allocations: 0.9842 MB / 396.5 MB, free: 3.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.3083, allocations: 8.344 kB / 396.5 MB, free: 3.324 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/0.3097, allocations: 176 kB / 396.6 MB, free: 3.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.3099, allocations: 268.8 kB / 396.9 MB, free: 2.961 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.724e-05/0.31, allocations: 18.59 kB / 396.9 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.938e-05/0.31, allocations: 18.38 kB / 396.9 MB, free: 2.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003021/0.313, allocations: 0.9064 MB / 397.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.3131, allocations: 0 / 397.8 MB, free: 2.379 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.083e-05/0.3131, allocations: 19.81 kB / 397.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.3131, allocations: 5.906 kB / 397.9 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00309/0.3162, allocations: 0.9653 MB / 398.8 MB, free: 1.832 MB / 302.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.001167/0.3174, allocations: 1.339 MB / 400.2 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002581/0.32, allocations: 0.7373 MB / 400.9 MB, free: 132 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.3202, allocations: 156 kB / 401.1 MB, free: 48 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07339/0.3936, allocations: 37.41 MB / 438.5 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/0.3937, allocations: 34.56 kB / 438.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.134e-06/0.3937, allocations: 0 / 438.5 MB, free: 6.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005543/0.3993, allocations: 1.365 MB / 439.9 MB, free: 5.055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.82e-05/0.3993, allocations: 63.34 kB / 439.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.3994, allocations: 121.8 kB / 440 MB, free: 4.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.024e-05/0.3995, allocations: 33.7 kB / 440.1 MB, free: 4.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.09e-05/0.3996, allocations: 118.5 kB / 440.2 MB, free: 4.695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001464/0.3998, allocations: 117.8 kB / 440.3 MB, free: 4.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/0.4001, allocations: 165.5 kB / 440.5 MB, free: 4.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.4002, allocations: 322.8 kB / 440.8 MB, free: 4.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006692/0.4009, allocations: 339.8 kB / 441.1 MB, free: 3.758 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007249/0.4016, allocations: 411.5 kB / 441.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/0.4029, allocations: 0.6998 MB / 442.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.403, allocations: 0 / 442.2 MB, free: 2.602 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001904/0.4049, allocations: 0.8735 MB / 443.1 MB, free: 1.723 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.4049, allocations: 4 kB / 443.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.4049, allocations: 4 kB / 443.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.4049, allocations: 7.938 kB / 443.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007299/0.4057, allocations: 180 kB / 443.3 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.4057, allocations: 8 kB / 443.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004467/0.4062, allocations: 35.73 kB / 443.3 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.4063, allocations: 67.92 kB / 443.4 MB, free: 1.422 MB / 350.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.0002448/0.4065, allocations: 129.8 kB / 443.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.4067, allocations: 19.81 kB / 443.5 MB, free: 1.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007163/0.4139, allocations: 7.976 MB / 451.5 MB, free: 9.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.782e-05/0.4139, allocations: 31.91 kB / 451.5 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.913e-06/0.4139, allocations: 3.984 kB / 451.5 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.414, allocations: 0 / 451.5 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00284/0.4168, allocations: 3.601 MB / 455.1 MB, free: 5.395 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.805e-06/0.4168, allocations: 8.312 kB / 455.2 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007238/0.4176, allocations: 107.8 kB / 455.3 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.835e-06/0.4176, allocations: 0 / 455.3 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.259e-05/0.4176, allocations: 19.92 kB / 455.3 MB, free: 5.266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.4177, allocations: 7.875 kB / 455.3 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4177, allocations: 4 kB / 455.3 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/0.42, allocations: 1.835 MB / 457.1 MB, free: 3.398 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.448e-05/0.4201, allocations: 140.2 kB / 457.3 MB, free: 3.242 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.196e-05/0.4202, allocations: 12 kB / 457.3 MB, free: 3.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.4205, allocations: 23.86 kB / 457.3 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.622e-05/0.4206, allocations: 31.95 kB / 457.3 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.104e-05/0.4207, allocations: 12 kB / 457.3 MB, free: 3.164 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.406e-05/0.4208, allocations: 95.33 kB / 457.4 MB, free: 3.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4208, allocations: 4 kB / 457.4 MB, free: 3.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003006/0.4238, allocations: 0.9838 MB / 458.4 MB, free: 2.082 MB / 366.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.005337/0.4291, allocations: 1.14 MB / 459.6 MB, free: 1.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001889/0.431, allocations: 0.9184 MB / 460.5 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.431, allocations: 0 / 460.5 MB, free: 104 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007529/0.4318, allocations: 0.589 MB / 461.1 MB, free: 15.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006367/0.4324, allocations: 90.58 kB / 461.2 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001924/0.4344, allocations: 1.58 MB / 462.7 MB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003585/0.4348, allocations: 0.8614 MB / 463.6 MB, free: 12.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001884/0.4366, allocations: 1.779 MB / 465.4 MB, free: 11.16 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003695/0.437, allocations: 91.34 kB / 465.5 MB, free: 11.07 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.437, allocations: 4 kB / 465.5 MB, free: 11.06 MB / 382.1 MB Notification: Performance of Templates: time 0.05379/0.4908, allocations: 41.11 MB / 0.4947 GB, free: 1.945 MB / 414.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