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: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00147/0.00147, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001799/0.001799, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 60.28 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08414/0.08542, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01597/0.1014, allocations: 13.45 MB / 371 MB, free: 492 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1576/0.259, allocations: 15.54 MB / 386.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000162/0.2592, allocations: 5.094 kB / 386.6 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003243/0.2596, allocations: 83.23 kB / 386.7 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003006/0.2599, allocations: 112.4 kB / 386.8 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01464/0.2746, allocations: 5.978 MB / 392.7 MB, free: 2.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003907/0.275, allocations: 345.2 kB / 393.1 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.819e-05/0.275, allocations: 19.97 kB / 393.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00038/0.2754, allocations: 229.4 kB / 393.3 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001292/0.2756, allocations: 99.45 kB / 393.4 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.017e-05/0.2756, allocations: 14.72 kB / 393.4 MB, free: 1.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0125/0.2881, allocations: 6.615 MB / 400.1 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.2882, allocations: 48.95 kB / 400.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002073/0.2885, allocations: 105.7 kB / 400.2 MB, free: 14.4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009117/0.2976, allocations: 3.919 MB / 404.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.2976, allocations: 2.344 kB / 404.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2976, allocations: 0 / 404.1 MB, free: 11.94 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.886e-06/0.2976, allocations: 0 / 404.1 MB, free: 11.94 MB / 318.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.002588/0.3002, allocations: 0.9908 MB / 405.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.3003, allocations: 8.188 kB / 405.1 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.206e-05/0.3004, allocations: 58.81 kB / 405.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001417/0.3018, allocations: 178.9 kB / 405.4 MB, free: 11.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.3021, allocations: 256.6 kB / 405.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.51e-05/0.3022, allocations: 17.94 kB / 405.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.3022, allocations: 22.78 kB / 405.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0031/0.3053, allocations: 0.9066 MB / 406.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.3054, allocations: 9.234 kB / 406.6 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.186e-05/0.3054, allocations: 9.969 kB / 406.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.3054, allocations: 6.5 kB / 406.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003259/0.3087, allocations: 0.9664 MB / 407.5 MB, free: 9.242 MB / 318.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.00165/0.3103, allocations: 1.35 MB / 408.9 MB, free: 7.758 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002615/0.313, allocations: 0.7286 MB / 409.6 MB, free: 7.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002686/0.3132, allocations: 160.8 kB / 409.8 MB, free: 6.859 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08391/0.3972, allocations: 42.01 MB / 451.8 MB, free: 7.477 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.3972, allocations: 38.56 kB / 451.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.285e-06/0.3973, allocations: 0 / 451.8 MB, free: 7.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005634/0.4029, allocations: 1.358 MB / 453.2 MB, free: 6.066 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/0.403, allocations: 59.41 kB / 453.2 MB, free: 5.996 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.4031, allocations: 117.8 kB / 453.4 MB, free: 5.871 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.753e-05/0.4032, allocations: 33.7 kB / 453.4 MB, free: 5.832 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.519e-05/0.4032, allocations: 116.7 kB / 453.5 MB, free: 5.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.4034, allocations: 118.2 kB / 453.6 MB, free: 5.598 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002895/0.4037, allocations: 165.6 kB / 453.8 MB, free: 5.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.4038, allocations: 326.8 kB / 454.1 MB, free: 5.102 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006856/0.4045, allocations: 339.8 kB / 454.4 MB, free: 4.77 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007549/0.4053, allocations: 407.3 kB / 454.8 MB, free: 4.344 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00143/0.4067, allocations: 0.7144 MB / 455.5 MB, free: 3.602 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4067, allocations: 0.5 kB / 455.5 MB, free: 3.602 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.00194/0.4087, allocations: 0.8718 MB / 456.4 MB, free: 2.723 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.4087, allocations: 4 kB / 456.4 MB, free: 2.719 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.4087, allocations: 4 kB / 456.4 MB, free: 2.715 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.007e-05/0.4087, allocations: 16.17 kB / 456.4 MB, free: 2.699 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006742/0.4094, allocations: 180.6 kB / 456.6 MB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.4094, allocations: 7.938 kB / 456.6 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.4098, allocations: 31.69 kB / 456.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.4099, allocations: 63.92 kB / 456.7 MB, free: 2.422 MB / 366.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.0002485/0.4102, allocations: 138.8 kB / 456.9 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001627/0.4103, allocations: 11.91 kB / 456.9 MB, free: 2.266 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007597/0.418, allocations: 7.982 MB / 464.8 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.918e-05/0.418, allocations: 27.95 kB / 464.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.418, allocations: 0 / 464.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.418, allocations: 2.25 kB / 464.9 MB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003031/0.4211, allocations: 3.611 MB / 468.5 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.72e-06/0.4211, allocations: 0 / 468.5 MB, free: 6.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006637/0.4218, allocations: 111.8 kB / 468.6 MB, free: 6.258 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.4218, allocations: 4 kB / 468.6 MB, free: 6.254 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.918e-05/0.4218, allocations: 15.94 kB / 468.6 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.4218, allocations: 0 / 468.6 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.4219, allocations: 0 / 468.6 MB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002467/0.4243, allocations: 1.846 MB / 470.5 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.4244, allocations: 140.2 kB / 470.6 MB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.058e-05/0.4245, allocations: 15.94 kB / 470.6 MB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003073/0.4248, allocations: 11.98 kB / 470.6 MB, free: 4.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.4249, allocations: 31.95 kB / 470.7 MB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.823e-05/0.425, allocations: 12 kB / 470.7 MB, free: 4.145 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.881e-05/0.425, allocations: 91.27 kB / 470.8 MB, free: 4.055 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.425, allocations: 0 / 470.8 MB, free: 4.055 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002774/0.4278, allocations: 0.9916 MB / 471.7 MB, free: 3.062 MB / 382.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.007614/0.4355, allocations: 3.423 MB / 475.2 MB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001985/0.4375, allocations: 0.9276 MB / 476.1 MB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4375, allocations: 4 kB / 476.1 MB, free: 14.68 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007848/0.4383, allocations: 0.5908 MB / 476.7 MB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006929/0.439, allocations: 81.02 kB / 476.8 MB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008143/0.4471, allocations: 4.654 MB / 481.4 MB, free: 9.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004036/0.4476, allocations: 0.8536 MB / 482.3 MB, free: 8.352 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001924/0.4495, allocations: 1.787 MB / 484.1 MB, free: 6.562 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004531/0.45, allocations: 219.3 kB / 484.3 MB, free: 6.348 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.45, allocations: 0 / 484.3 MB, free: 6.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07442/0.5244, allocations: 45.74 MB / 0.5176 GB, free: 8.617 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.592/10.12, allocations: 6.25 kB / 0.5176 GB, free: 8.613 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv --start-time 0 --stop-time 22 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.csv","/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