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.001012/0.001012, allocations: 117.9 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.289/1.289, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59 kB / 306.5 MB, free: 0.8594 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08603/0.08726, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01509/0.1024, allocations: 13.58 MB / 370.7 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1574/0.2598, allocations: 15.59 MB / 386.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.26, allocations: 1.219 kB / 386.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003401/0.2604, allocations: 69.55 kB / 386.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002989/0.2607, allocations: 110.2 kB / 386.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01486/0.2756, allocations: 5.261 MB / 391.7 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004368/0.276, allocations: 348.9 kB / 392 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.034e-05/0.2761, allocations: 20.2 kB / 392 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004425/0.2765, allocations: 216.9 kB / 392.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001521/0.2767, allocations: 109 kB / 392.4 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.629e-05/0.2767, allocations: 13.84 kB / 392.4 MB, free: 2.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01138/0.2881, allocations: 6.683 MB / 399.1 MB, free: 15.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.161e-05/0.2882, allocations: 49.2 kB / 399.1 MB, free: 15.39 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001469/0.2883, allocations: 102.1 kB / 399.2 MB, free: 15.33 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007357/0.2957, allocations: 3.93 MB / 403.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.2957, allocations: 7.938 kB / 403.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2957, allocations: 0 / 403.1 MB, free: 12.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.173e-06/0.2958, allocations: 2.062 kB / 403.1 MB, free: 12.86 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.002573/0.2983, allocations: 0.9916 MB / 404.1 MB, free: 12.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.2984, allocations: 9.438 kB / 404.1 MB, free: 12.1 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.29e-05/0.2984, allocations: 58.31 kB / 404.2 MB, free: 12.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001431/0.2999, allocations: 183.7 kB / 404.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002665/0.3002, allocations: 249.4 kB / 404.6 MB, free: 11.69 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.139e-05/0.3002, allocations: 18.78 kB / 404.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.411e-05/0.3003, allocations: 18.88 kB / 404.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003159/0.3034, allocations: 0.9097 MB / 405.6 MB, free: 11.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.3034, allocations: 5.906 kB / 405.6 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.063e-05/0.3035, allocations: 14.25 kB / 405.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3035, allocations: 5.281 kB / 405.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003172/0.3067, allocations: 0.9696 MB / 406.6 MB, free: 10.16 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.001465/0.3082, allocations: 1.346 MB / 407.9 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/0.3107, allocations: 0.7283 MB / 408.6 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002607/0.311, allocations: 152.8 kB / 408.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0716/0.3826, allocations: 42.01 MB / 450.8 MB, free: 8.406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.471e-05/0.3827, allocations: 42.06 kB / 450.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.034e-06/0.3827, allocations: 0 / 450.8 MB, free: 8.359 MB / 366.1 MB Notification: Performance of matching and sorting (n=33): time 0.005259/0.3879, allocations: 1.362 MB / 452.2 MB, free: 6.992 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.388, allocations: 55.41 kB / 452.3 MB, free: 6.926 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001044/0.3881, allocations: 121.8 kB / 452.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.63e-05/0.3882, allocations: 33.7 kB / 452.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.232e-05/0.3882, allocations: 112.7 kB / 452.5 MB, free: 6.645 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.3884, allocations: 110.3 kB / 452.6 MB, free: 6.535 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002873/0.3887, allocations: 169.5 kB / 452.8 MB, free: 6.363 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.3888, allocations: 322.8 kB / 453.1 MB, free: 6.039 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005967/0.3894, allocations: 339.8 kB / 453.4 MB, free: 5.707 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006753/0.3901, allocations: 407.3 kB / 453.8 MB, free: 5.281 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001272/0.3913, allocations: 0.7183 MB / 454.6 MB, free: 4.535 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3914, allocations: 0 / 454.6 MB, free: 4.535 MB / 366.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001745/0.3931, allocations: 0.8719 MB / 455.4 MB, free: 3.656 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3931, allocations: 8 kB / 455.4 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3931, allocations: 0 / 455.4 MB, free: 3.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.3932, allocations: 7.938 kB / 455.4 MB, free: 3.641 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000689/0.3939, allocations: 183.7 kB / 455.6 MB, free: 3.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/0.3939, allocations: 7.984 kB / 455.6 MB, free: 3.453 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003951/0.3943, allocations: 39.83 kB / 455.7 MB, free: 3.414 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/0.3944, allocations: 59.94 kB / 455.7 MB, free: 3.355 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.0002047/0.3946, allocations: 142.8 kB / 455.9 MB, free: 3.207 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.3948, allocations: 15.89 kB / 455.9 MB, free: 3.191 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006637/0.4014, allocations: 7.986 MB / 463.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.657e-05/0.4014, allocations: 27.95 kB / 463.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.4015, allocations: 0 / 463.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/0.4015, allocations: 3.984 kB / 463.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.4041, allocations: 3.6 MB / 467.5 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/0.4041, allocations: 0 / 467.5 MB, free: 7.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006558/0.4048, allocations: 111.8 kB / 467.6 MB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.4048, allocations: 0 / 467.6 MB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.691e-05/0.4049, allocations: 19.92 kB / 467.6 MB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.4049, allocations: 4 kB / 467.6 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4049, allocations: 4 kB / 467.6 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002153/0.407, allocations: 1.827 MB / 469.5 MB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.324e-05/0.4071, allocations: 148.2 kB / 469.6 MB, free: 5.148 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.363e-05/0.4072, allocations: 15.88 kB / 469.6 MB, free: 5.133 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003195/0.4075, allocations: 31.89 kB / 469.7 MB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.935e-05/0.4076, allocations: 27.95 kB / 469.7 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.96e-05/0.4077, allocations: 19.98 kB / 469.7 MB, free: 5.059 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.983e-05/0.4077, allocations: 91.27 kB / 469.8 MB, free: 4.969 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4077, allocations: 3.938 kB / 469.8 MB, free: 4.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00252/0.4102, allocations: 0.9878 MB / 470.8 MB, free: 3.977 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.006704/0.4169, allocations: 3.417 MB / 474.2 MB, free: 0.5312 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001727/0.4187, allocations: 0.9238 MB / 475.1 MB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.4187, allocations: 4.062 kB / 475.1 MB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006982/0.4194, allocations: 0.5908 MB / 475.7 MB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005979/0.42, allocations: 89.75 kB / 475.8 MB, free: 14.93 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007296/0.4273, allocations: 4.898 MB / 480.7 MB, free: 9.906 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003327/0.4277, allocations: 0.8536 MB / 481.6 MB, free: 9.023 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001776/0.4295, allocations: 1.788 MB / 483.4 MB, free: 7.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004403/0.4299, allocations: 223.3 kB / 483.6 MB, free: 7.016 MB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.4299, allocations: 0 / 483.6 MB, free: 7.016 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09599/0.5259, allocations: 45.85 MB / 0.517 GB, free: 9.23 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002208/0.5262, allocations: 214.3 kB / 0.5172 GB, free: 8.969 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.422/4.949, allocations: 0 / 0.5172 GB, free: 8.969 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