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.00154/0.00154, allocations: 107.6 kB / 16.51 MB, free: 6.707 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.0017/0.0017, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.318/1.318, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 44.39 kB / 299.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08752/0.08914, allocations: 49.45 MB / 349.4 MB, free: 4.875 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01523/0.1044, allocations: 14.14 MB / 363.5 MB, free: 6.676 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1594/0.2639, allocations: 16.62 MB / 380.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000108/0.264, allocations: 0 / 380.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.2644, allocations: 71.2 kB / 380.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.2646, allocations: 102.9 kB / 380.3 MB, free: 9.438 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01254/0.2772, allocations: 4.729 MB / 385.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004337/0.2776, allocations: 362.8 kB / 385.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.408e-05/0.2777, allocations: 14.28 kB / 385.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004123/0.2781, allocations: 210.4 kB / 385.6 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000136/0.2783, allocations: 111.8 kB / 385.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.2783, allocations: 8.031 kB / 385.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01197/0.2903, allocations: 6.689 MB / 392.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.071e-05/0.2904, allocations: 31.97 kB / 392.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.2906, allocations: 100.7 kB / 392.6 MB, free: 6.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007114/0.2977, allocations: 3.91 MB / 396.5 MB, free: 4.223 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.2977, allocations: 4 kB / 396.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2977, allocations: 0 / 396.5 MB, free: 4.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.042e-05/0.2977, allocations: 1.531 kB / 396.5 MB, free: 4.219 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.002701/0.3004, allocations: 0.99 MB / 397.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.3005, allocations: 8.312 kB / 397.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001418/0.3019, allocations: 172.3 kB / 397.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000243/0.3022, allocations: 265.5 kB / 397.9 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.619e-05/0.3022, allocations: 17.03 kB / 397.9 MB, free: 3.098 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.37e-05/0.3023, allocations: 22.78 kB / 397.9 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003238/0.3055, allocations: 0.905 MB / 398.8 MB, free: 2.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.417e-05/0.3055, allocations: 4.5 kB / 398.9 MB, free: 2.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.206e-05/0.3056, allocations: 13.94 kB / 398.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.3056, allocations: 10.75 kB / 398.9 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003092/0.3087, allocations: 0.9614 MB / 399.8 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.001292/0.31, allocations: 1.345 MB / 401.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002466/0.3125, allocations: 0.7391 MB / 401.9 MB, free: 268 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002361/0.3127, allocations: 155.3 kB / 402.1 MB, free: 188 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07344/0.3862, allocations: 37.41 MB / 439.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.3862, allocations: 34.56 kB / 439.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 1.963e-06/0.3862, allocations: 0 / 439.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.005629/0.3919, allocations: 1.36 MB / 440.9 MB, free: 5.176 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.3919, allocations: 59.34 kB / 440.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.392, allocations: 121.8 kB / 441.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.205e-05/0.3921, allocations: 33.7 kB / 441.1 MB, free: 4.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/0.3922, allocations: 112.7 kB / 441.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.3923, allocations: 109.8 kB / 441.3 MB, free: 4.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002874/0.3926, allocations: 169.5 kB / 441.5 MB, free: 4.547 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.517e-05/0.3927, allocations: 326.8 kB / 441.8 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006375/0.3934, allocations: 339.8 kB / 442.1 MB, free: 3.887 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007117/0.3941, allocations: 411.5 kB / 442.5 MB, free: 3.457 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001339/0.3954, allocations: 0.6998 MB / 443.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.3955, allocations: 0 / 443.2 MB, free: 2.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001839/0.3973, allocations: 0.8732 MB / 444.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.3973, allocations: 4 kB / 444.1 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.3973, allocations: 4 kB / 444.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.3974, allocations: 7.938 kB / 444.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006854/0.398, allocations: 176 kB / 444.3 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.159e-05/0.3981, allocations: 11.98 kB / 444.3 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004247/0.3985, allocations: 31.75 kB / 444.3 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.3986, allocations: 67.92 kB / 444.4 MB, free: 1.555 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.0002153/0.3989, allocations: 142 kB / 444.5 MB, free: 1.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001643/0.399, allocations: 19.75 kB / 444.6 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006861/0.4059, allocations: 7.966 MB / 452.5 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.011e-05/0.4059, allocations: 31.89 kB / 452.6 MB, free: 9.383 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.406, allocations: 4 kB / 452.6 MB, free: 9.379 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.406, allocations: 3.984 kB / 452.6 MB, free: 9.375 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.4088, allocations: 3.602 MB / 456.2 MB, free: 5.523 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.4088, allocations: 4 kB / 456.2 MB, free: 5.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006885/0.4095, allocations: 107.8 kB / 456.3 MB, free: 5.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/0.4095, allocations: 7.984 kB / 456.3 MB, free: 5.406 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.39e-05/0.4095, allocations: 15.98 kB / 456.3 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.4096, allocations: 3.938 kB / 456.3 MB, free: 5.387 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.4096, allocations: 4 kB / 456.3 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.412, allocations: 1.835 MB / 458.1 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/0.4121, allocations: 144.1 kB / 458.3 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.987e-05/0.4122, allocations: 15.98 kB / 458.3 MB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000342/0.4125, allocations: 19.88 kB / 458.3 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.657e-05/0.4126, allocations: 31.95 kB / 458.3 MB, free: 3.301 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.043e-05/0.4127, allocations: 15.98 kB / 458.4 MB, free: 3.285 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.601e-05/0.4127, allocations: 95.33 kB / 458.5 MB, free: 3.191 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4127, allocations: 0 / 458.5 MB, free: 3.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003437/0.4162, allocations: 0.9799 MB / 459.4 MB, free: 2.211 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.005779/0.422, allocations: 1.141 MB / 460.6 MB, free: 1.141 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001622/0.4236, allocations: 0.8951 MB / 461.5 MB, free: 252 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4236, allocations: 0 / 461.5 MB, free: 252 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007677/0.4244, allocations: 0.592 MB / 462.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006631/0.4251, allocations: 92.12 kB / 462.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002013/0.4271, allocations: 1.575 MB / 463.7 MB, free: 13.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/0.4275, allocations: 0.8575 MB / 464.6 MB, free: 13.08 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001851/0.4293, allocations: 1.78 MB / 466.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003608/0.4297, allocations: 91.34 kB / 466.5 MB, free: 11.21 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4297, allocations: 0 / 466.5 MB, free: 11.21 MB / 382.1 MB Notification: Performance of Templates: time 0.04989/0.4796, allocations: 40.59 MB / 0.4952 GB, free: 2.609 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