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.0007912/0.0007953, allocations: 91.75 kB / 16.65 MB, free: 6.59 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.0008482/0.0008483, allocations: 181.3 kB / 17.56 MB, free: 6.203 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.333/1.333, allocations: 223.3 MB / 241.6 MB, free: 14.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002395/0.0002395, allocations: 11.94 kB / 301.4 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08339/0.08365, allocations: 50.42 MB / 351.8 MB, free: 3.465 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01455/0.09823, allocations: 13.64 MB / 365.5 MB, free: 5.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1737/0.272, allocations: 16.32 MB / 381.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.2722, allocations: 5.438 kB / 381.8 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003032/0.2725, allocations: 70.78 kB / 381.9 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002892/0.2728, allocations: 106.7 kB / 382 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01464/0.2874, allocations: 4.73 MB / 386.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005222/0.288, allocations: 362.8 kB / 387.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.379e-05/0.288, allocations: 10.84 kB / 387.1 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004541/0.2885, allocations: 221.5 kB / 387.3 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001469/0.2887, allocations: 106.7 kB / 387.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.32e-05/0.2887, allocations: 7.688 kB / 387.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01336/0.3021, allocations: 6.684 MB / 394.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.671e-05/0.3022, allocations: 37.5 kB / 394.1 MB, free: 6.531 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001629/0.3023, allocations: 126.4 kB / 394.2 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008052/0.3104, allocations: 3.896 MB / 398.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3104, allocations: 0 / 398.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3105, allocations: 3.156 kB / 398.1 MB, free: 4.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.3105, allocations: 0 / 398.1 MB, free: 4.199 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.002533/0.313, allocations: 0.9427 MB / 399.1 MB, free: 3.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.313, allocations: 11.84 kB / 399.1 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001364/0.3144, allocations: 181.5 kB / 399.3 MB, free: 3.391 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.3146, allocations: 256.3 kB / 399.5 MB, free: 3.117 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.3147, allocations: 15.62 kB / 399.5 MB, free: 3.113 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.3147, allocations: 25.03 kB / 399.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002872/0.3176, allocations: 0.919 MB / 400.5 MB, free: 2.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.3176, allocations: 0 / 400.5 MB, free: 2.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.057e-05/0.3177, allocations: 18.69 kB / 400.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.3177, allocations: 5.781 kB / 400.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003021/0.3207, allocations: 0.9853 MB / 401.5 MB, free: 1.973 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.001265/0.322, allocations: 1.343 MB / 402.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002406/0.3244, allocations: 0.7318 MB / 403.6 MB, free: 284 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002426/0.3247, allocations: 168.5 kB / 403.7 MB, free: 192 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07853/0.4032, allocations: 37.76 MB / 441.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.281e-05/0.4033, allocations: 38.56 kB / 441.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.424e-06/0.4033, allocations: 0 / 441.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.00525/0.4085, allocations: 1.372 MB / 442.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.4086, allocations: 59.34 kB / 443 MB, free: 4.684 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.4087, allocations: 121.8 kB / 443.1 MB, free: 4.555 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.781e-05/0.4088, allocations: 37.69 kB / 443.1 MB, free: 4.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.526e-05/0.4089, allocations: 115.6 kB / 443.2 MB, free: 4.398 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.409, allocations: 110.4 kB / 443.3 MB, free: 4.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.4091, allocations: 33.7 kB / 443.4 MB, free: 4.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.691e-05/0.4092, allocations: 326.8 kB / 443.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006405/0.4099, allocations: 339.8 kB / 444 MB, free: 3.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006764/0.4106, allocations: 411.5 kB / 444.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001303/0.4119, allocations: 0.7153 MB / 445.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.4119, allocations: 0 / 445.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001772/0.4137, allocations: 0.8836 MB / 446 MB, free: 1.527 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.4137, allocations: 4 kB / 446 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.4137, allocations: 7.938 kB / 446 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.4138, allocations: 7.938 kB / 446 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006477/0.4144, allocations: 184.1 kB / 446.2 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.4144, allocations: 4 kB / 446.2 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003821/0.4148, allocations: 39.92 kB / 446.3 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001036/0.4149, allocations: 63.94 kB / 446.3 MB, free: 1.223 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.0002169/0.4152, allocations: 145.6 kB / 446.5 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.43e-05/0.4153, allocations: 15.81 kB / 446.5 MB, free: 1.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007376/0.4226, allocations: 7.982 MB / 454.5 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-05/0.4227, allocations: 27.91 kB / 454.5 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.4227, allocations: 0 / 454.5 MB, free: 9.039 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.4227, allocations: 7.984 kB / 454.5 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003005/0.4257, allocations: 3.601 MB / 458.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.4257, allocations: 0 / 458.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006687/0.4264, allocations: 111.8 kB / 458.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/0.4264, allocations: 0 / 458.2 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.264e-05/0.4265, allocations: 15.98 kB / 458.2 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.882e-06/0.4265, allocations: 7.938 kB / 458.2 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4265, allocations: 0 / 458.2 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002407/0.4289, allocations: 1.85 MB / 460.1 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.429, allocations: 144.1 kB / 460.2 MB, free: 3.016 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.242e-05/0.4291, allocations: 17.44 kB / 460.2 MB, free: 3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003316/0.4294, allocations: 27.98 kB / 460.3 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.35e-05/0.4295, allocations: 27.95 kB / 460.3 MB, free: 2.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.751e-05/0.4296, allocations: 19.94 kB / 460.3 MB, free: 2.926 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.119e-05/0.4297, allocations: 91.27 kB / 460.4 MB, free: 2.836 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4297, allocations: 0 / 460.4 MB, free: 2.836 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003116/0.4328, allocations: 0.9761 MB / 461.4 MB, free: 1.859 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.004425/0.4372, allocations: 1.14 MB / 462.5 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001551/0.4388, allocations: 0.9107 MB / 463.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.4388, allocations: 0 / 463.4 MB, free: 15.88 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007415/0.4396, allocations: 0.5993 MB / 464 MB, free: 15.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006856/0.4403, allocations: 80.42 kB / 464.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/0.4422, allocations: 1.631 MB / 465.7 MB, free: 13.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.4426, allocations: 0.8614 MB / 466.6 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00192/0.4445, allocations: 1.787 MB / 468.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003472/0.4449, allocations: 87.36 kB / 468.5 MB, free: 10.78 MB / 382.1 MB Notification: Performance of SimCode: time 5.72e-07/0.4449, allocations: 0 / 468.5 MB, free: 10.78 MB / 382.1 MB Notification: Performance of Templates: time 0.05153/0.4964, allocations: 40.49 MB / 0.497 GB, free: 2.277 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