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.001277/0.001277, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001129, allocations: 59.22 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08266/0.08383, 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.01468/0.09857, allocations: 13.45 MB / 371 MB, free: 492 kB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1573/0.2558, allocations: 15.53 MB / 386.6 MB, free: 4.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.256, allocations: 4.938 kB / 386.6 MB, free: 4.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003869/0.2564, allocations: 80.69 kB / 386.6 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.2568, allocations: 118.6 kB / 386.8 MB, free: 4.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01447/0.2712, allocations: 5.979 MB / 392.7 MB, free: 2.289 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003469/0.2716, allocations: 339.8 kB / 393.1 MB, free: 2.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.295e-05/0.2717, allocations: 24.64 kB / 393.1 MB, free: 2.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004518/0.2721, allocations: 224.2 kB / 393.3 MB, free: 1.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001203/0.2722, allocations: 104.7 kB / 393.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.807e-05/0.2723, allocations: 14.53 kB / 393.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01127/0.2835, allocations: 6.616 MB / 400.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.2837, allocations: 40.3 kB / 400.1 MB, free: 14.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.2839, allocations: 113.5 kB / 400.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006196/0.2901, allocations: 3.916 MB / 404.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2901, allocations: 0 / 404.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2901, allocations: 6.781 kB / 404.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2901, allocations: 3.938 kB / 404.1 MB, free: 11.95 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.002179/0.2923, allocations: 0.9888 MB / 405.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.507e-05/0.2924, allocations: 9.344 kB / 405.1 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.776e-05/0.2925, allocations: 53.73 kB / 405.2 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001336/0.2938, allocations: 184.2 kB / 405.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.294, allocations: 250.7 kB / 405.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.63e-05/0.2941, allocations: 19.94 kB / 405.6 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.625e-05/0.2941, allocations: 22.75 kB / 405.6 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003094/0.2972, allocations: 0.9124 MB / 406.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.2972, allocations: 0 / 406.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.2973, allocations: 9.812 kB / 406.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-06/0.2973, allocations: 5.531 kB / 406.6 MB, free: 10.18 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00311/0.3004, allocations: 0.9671 MB / 407.5 MB, free: 9.277 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.001576/0.302, allocations: 1.358 MB / 408.9 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002477/0.3045, allocations: 0.7286 MB / 409.6 MB, free: 7.051 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003022/0.3048, allocations: 156.8 kB / 409.8 MB, free: 6.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07764/0.3825, allocations: 42.01 MB / 451.8 MB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.88e-05/0.3826, allocations: 38.55 kB / 451.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 5.921e-06/0.3826, allocations: 0 / 451.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005061/0.3877, allocations: 1.362 MB / 453.2 MB, free: 6.094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/0.3878, allocations: 55.41 kB / 453.2 MB, free: 6.027 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001281/0.388, allocations: 117.8 kB / 453.4 MB, free: 5.902 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.594e-05/0.388, allocations: 33.7 kB / 453.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.458e-05/0.3881, allocations: 116.7 kB / 453.5 MB, free: 5.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/0.3882, allocations: 114.3 kB / 453.6 MB, free: 5.633 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002538/0.3885, allocations: 169.5 kB / 453.8 MB, free: 5.461 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.027e-05/0.3886, allocations: 327.2 kB / 454.1 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006267/0.3892, allocations: 339.8 kB / 454.4 MB, free: 4.801 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007606/0.39, allocations: 407.3 kB / 454.8 MB, free: 4.375 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001325/0.3913, allocations: 0.7144 MB / 455.5 MB, free: 3.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3914, allocations: 0 / 455.5 MB, free: 3.633 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001779/0.3931, allocations: 0.8757 MB / 456.4 MB, free: 2.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.3932, allocations: 4 kB / 456.4 MB, free: 2.746 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.698e-05/0.3932, allocations: 4 kB / 456.4 MB, free: 2.742 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.825e-05/0.3932, allocations: 7.938 kB / 456.4 MB, free: 2.734 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006897/0.3939, allocations: 175.7 kB / 456.6 MB, free: 2.562 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.394, allocations: 4 kB / 456.6 MB, free: 2.559 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.3943, allocations: 39.92 kB / 456.7 MB, free: 2.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001448/0.3945, allocations: 67.92 kB / 456.7 MB, free: 2.453 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.00023/0.3947, allocations: 138.8 kB / 456.9 MB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001431/0.3948, allocations: 11.91 kB / 456.9 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006794/0.4016, allocations: 7.982 MB / 464.8 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.499e-05/0.4017, allocations: 27.95 kB / 464.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4017, allocations: 0 / 464.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.383e-06/0.4017, allocations: 4 kB / 464.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002666/0.4044, allocations: 3.6 MB / 468.5 MB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.4044, allocations: 0 / 468.5 MB, free: 6.406 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006279/0.405, allocations: 107.8 kB / 468.6 MB, free: 6.301 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.711e-06/0.405, allocations: 4 kB / 468.6 MB, free: 6.297 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.138e-05/0.4051, allocations: 19.91 kB / 468.6 MB, free: 6.277 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.526e-06/0.4051, allocations: 4 kB / 468.6 MB, free: 6.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4051, allocations: 3.938 kB / 468.6 MB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/0.4075, allocations: 1.838 MB / 470.5 MB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.458e-05/0.4075, allocations: 140.2 kB / 470.6 MB, free: 4.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.762e-05/0.4076, allocations: 12.81 kB / 470.6 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.4079, allocations: 16.05 kB / 470.6 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.371e-05/0.408, allocations: 27.97 kB / 470.6 MB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.47e-05/0.4081, allocations: 15.98 kB / 470.7 MB, free: 4.184 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.719e-05/0.4081, allocations: 95.2 kB / 470.8 MB, free: 4.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.352e-06/0.4081, allocations: 0 / 470.8 MB, free: 4.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002536/0.4107, allocations: 0.9955 MB / 471.8 MB, free: 3.094 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.006759/0.4174, allocations: 3.422 MB / 475.2 MB, free: 15.64 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001767/0.4192, allocations: 0.9273 MB / 476.1 MB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4192, allocations: 0 / 476.1 MB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007405/0.42, allocations: 0.5952 MB / 476.7 MB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006929/0.4207, allocations: 84.06 kB / 476.8 MB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007392/0.4281, allocations: 4.646 MB / 481.4 MB, free: 9.27 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.4284, allocations: 0.8614 MB / 482.3 MB, free: 8.375 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001766/0.4302, allocations: 1.78 MB / 484.1 MB, free: 6.594 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004036/0.4306, allocations: 215.3 kB / 484.3 MB, free: 6.383 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.4306, allocations: 4 kB / 484.3 MB, free: 6.379 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.322/2.753, allocations: 45.74 MB / 0.5176 GB, free: 8.648 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/13.34, allocations: 8.734 kB / 0.5176 GB, free: 8.641 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 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.mat","/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