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: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001088/0.001089, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001178/0.001178, allocations: 200 kB / 18.01 MB, free: 5.055 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.279/1.279, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009969/0.0009969, allocations: 47.92 kB / 353.1 MB, free: 1.391 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2383, allocations: 49.43 MB / 402.5 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01531/0.2537, allocations: 13.33 MB / 415.9 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01762/0.2713, allocations: 15.55 MB / 431.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001914/0.2716, allocations: 0 / 431.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003996/0.272, allocations: 83.48 kB / 431.5 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004423/0.2725, allocations: 115.2 kB / 431.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0152/0.2877, allocations: 5.96 MB / 437.6 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005052/0.2882, allocations: 346.5 kB / 437.9 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.491e-05/0.2883, allocations: 13.69 kB / 437.9 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004902/0.2888, allocations: 227 kB / 438.1 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001924/0.289, allocations: 107.5 kB / 438.3 MB, free: 4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.09e-05/0.289, allocations: 16 kB / 438.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01253/0.3016, allocations: 6.758 MB / 445 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.599e-05/0.3017, allocations: 43.83 kB / 445.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.3019, allocations: 107.6 kB / 445.2 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00823/0.3101, allocations: 3.903 MB / 449.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3102, allocations: 0 / 449.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3102, allocations: 0 / 449.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3102, allocations: 0 / 449.1 MB, free: 9.164 MB / 366.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.002589/0.3128, allocations: 0.9947 MB / 450.1 MB, free: 8.121 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3128, allocations: 8.031 kB / 450.1 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.286e-05/0.3129, allocations: 54.73 kB / 450.1 MB, free: 8.051 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00142/0.3143, allocations: 180.5 kB / 450.3 MB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003112/0.3146, allocations: 259.9 kB / 450.6 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.284e-05/0.3147, allocations: 16.81 kB / 450.6 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.722e-05/0.3147, allocations: 23.94 kB / 450.6 MB, free: 7.543 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002901/0.3176, allocations: 0.9012 MB / 451.5 MB, free: 6.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.3177, allocations: 7.938 kB / 451.5 MB, free: 6.613 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.028e-05/0.3177, allocations: 8 kB / 451.5 MB, free: 6.605 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.3177, allocations: 11.98 kB / 451.5 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003107/0.3208, allocations: 0.9696 MB / 452.5 MB, free: 5.621 MB / 366.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.001707/0.3226, allocations: 1.343 MB / 453.8 MB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002419/0.325, allocations: 0.7247 MB / 454.6 MB, free: 3.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002727/0.3253, allocations: 152.8 kB / 454.7 MB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.075/0.4003, allocations: 37.55 MB / 492.3 MB, free: 9.258 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.981e-05/0.4004, allocations: 34.56 kB / 492.3 MB, free: 9.215 MB / 414.1 MB Notification: Performance of pre-optimization done (n=33): time 2.515e-06/0.4004, allocations: 7.938 kB / 492.3 MB, free: 9.207 MB / 414.1 MB Notification: Performance of matching and sorting (n=33): time 0.00498/0.4054, allocations: 1.361 MB / 493.7 MB, free: 7.84 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.4054, allocations: 55.41 kB / 493.7 MB, free: 7.773 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.4056, allocations: 113.8 kB / 493.8 MB, free: 7.652 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 7.136e-05/0.4056, allocations: 33.7 kB / 493.9 MB, free: 7.613 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.21e-05/0.4057, allocations: 112.7 kB / 494 MB, free: 7.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001444/0.4059, allocations: 122.4 kB / 494.1 MB, free: 7.379 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002959/0.4062, allocations: 169.2 kB / 494.3 MB, free: 7.207 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.4063, allocations: 326.8 kB / 494.6 MB, free: 6.879 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006247/0.4069, allocations: 339.8 kB / 494.9 MB, free: 6.547 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006864/0.4076, allocations: 407.3 kB / 495.3 MB, free: 6.121 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.409, allocations: 0.7114 MB / 496 MB, free: 5.383 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.409, allocations: 4 kB / 496 MB, free: 5.379 MB / 414.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001812/0.4108, allocations: 0.8719 MB / 496.9 MB, free: 4.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.4108, allocations: 11.94 kB / 496.9 MB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.4109, allocations: 4 kB / 496.9 MB, free: 4.484 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.4109, allocations: 4 kB / 496.9 MB, free: 4.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000632/0.4115, allocations: 175.8 kB / 497.1 MB, free: 4.309 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.185e-05/0.4115, allocations: 7.984 kB / 497.1 MB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003253/0.4119, allocations: 39.66 kB / 497.1 MB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001254/0.412, allocations: 68.11 kB / 497.2 MB, free: 4.195 MB / 414.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.0002284/0.4122, allocations: 137.8 kB / 497.3 MB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.4124, allocations: 19.75 kB / 497.4 MB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007214/0.4196, allocations: 7.963 MB / 0.4935 GB, free: 12.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.801e-05/0.4197, allocations: 27.95 kB / 0.4935 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.4197, allocations: 0 / 0.4935 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.306e-06/0.4197, allocations: 3.984 kB / 0.4935 GB, free: 12.02 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002859/0.4226, allocations: 3.6 MB / 0.497 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.4226, allocations: 0 / 0.497 GB, free: 8.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006078/0.4232, allocations: 111.8 kB / 0.4971 GB, free: 8.051 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.575e-06/0.4232, allocations: 3.938 kB / 0.4971 GB, free: 8.047 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.053e-05/0.4233, allocations: 8 kB / 0.4971 GB, free: 8.039 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.919e-06/0.4233, allocations: 4 kB / 0.4971 GB, free: 8.035 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.4233, allocations: 3.984 kB / 0.4972 GB, free: 8.031 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.4256, allocations: 1.842 MB / 0.499 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.96e-05/0.4257, allocations: 148.1 kB / 0.4991 GB, free: 6.004 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.862e-05/0.4257, allocations: 7.938 kB / 0.4991 GB, free: 5.996 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002839/0.426, allocations: 19.98 kB / 0.4991 GB, free: 5.977 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.109e-05/0.4261, allocations: 32.02 kB / 0.4991 GB, free: 5.945 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.198e-05/0.4262, allocations: 15.98 kB / 0.4992 GB, free: 5.93 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.439e-05/0.4262, allocations: 87.28 kB / 0.4992 GB, free: 5.844 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4262, allocations: 0 / 0.4992 GB, free: 5.844 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002657/0.4289, allocations: 0.9838 MB / 0.5002 GB, free: 4.859 MB / 430.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.007179/0.4361, allocations: 3.425 MB / 0.5036 GB, free: 1.406 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001742/0.4379, allocations: 0.899 MB / 0.5044 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4379, allocations: 0 / 0.5044 GB, free: 0.5039 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007972/0.4387, allocations: 0.5885 MB / 0.505 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006704/0.4394, allocations: 90.56 kB / 0.5051 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007367/0.4468, allocations: 4.647 MB / 0.5096 GB, free: 11.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003646/0.4472, allocations: 0.8575 MB / 0.5105 GB, free: 10.17 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00171/0.4489, allocations: 1.784 MB / 0.5122 GB, free: 8.383 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004405/0.4493, allocations: 219.3 kB / 0.5124 GB, free: 8.168 MB / 446.1 MB Notification: Performance of SimCode: time 3.6e-07/0.4493, allocations: 0 / 0.5124 GB, free: 8.168 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2469/0.6962, allocations: 45.88 MB / 0.5572 GB, free: 113.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/11.09, allocations: 12.83 kB / 0.5572 GB, free: 113.8 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > 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/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_4.0.0_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches