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.001439/0.001439, allocations: 117.9 kB / 16.63 MB, free: 6.812 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.001708/0.001708, allocations: 189.8 kB / 17.55 MB, free: 5.934 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.269/1.269, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 46.64 kB / 300.2 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07939/0.08043, allocations: 49.45 MB / 349.7 MB, free: 4.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01421/0.09467, allocations: 13.46 MB / 363.1 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1631/0.2578, allocations: 15.59 MB / 378.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.2579, allocations: 1.375 kB / 378.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.2583, allocations: 77.06 kB / 378.8 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.2586, allocations: 102.4 kB / 378.9 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01501/0.2736, allocations: 5.254 MB / 384.2 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003884/0.274, allocations: 337.8 kB / 384.5 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.031e-05/0.2741, allocations: 16.75 kB / 384.5 MB, free: 8.355 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004035/0.2745, allocations: 227.5 kB / 384.7 MB, free: 8.312 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001307/0.2746, allocations: 104.2 kB / 384.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.2746, allocations: 13.53 kB / 384.8 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01136/0.286, allocations: 6.67 MB / 391.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.627e-05/0.2861, allocations: 46.81 kB / 391.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001369/0.2862, allocations: 104.7 kB / 391.7 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005906/0.2922, allocations: 3.924 MB / 395.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2922, allocations: 0 / 395.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2922, allocations: 0 / 395.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.2922, allocations: 0 / 395.6 MB, free: 4.105 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.002157/0.2944, allocations: 0.9916 MB / 396.6 MB, free: 3.352 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.2944, allocations: 14.03 kB / 396.6 MB, free: 3.348 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.558e-05/0.2945, allocations: 58.64 kB / 396.6 MB, free: 3.289 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0013/0.2958, allocations: 169.8 kB / 396.8 MB, free: 3.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001837/0.296, allocations: 260.3 kB / 397.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.544e-05/0.296, allocations: 19.75 kB / 397.1 MB, free: 2.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/0.2961, allocations: 23.25 kB / 397.1 MB, free: 2.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002949/0.299, allocations: 0.912 MB / 398 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.299, allocations: 0 / 398 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.759e-05/0.2991, allocations: 6.781 kB / 398 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2991, allocations: 5.438 kB / 398 MB, free: 2.344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002987/0.3021, allocations: 0.97 MB / 399 MB, free: 1.805 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.001145/0.3032, allocations: 1.341 MB / 400.3 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002438/0.3057, allocations: 0.7288 MB / 401.1 MB, free: 112 kB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.3059, allocations: 157.9 kB / 401.2 MB, free: 28 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06807/0.374, allocations: 37.4 MB / 438.6 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.374, allocations: 36.56 kB / 438.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=33): time 2.254e-06/0.3741, allocations: 0 / 438.7 MB, free: 6.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=33): time 0.004969/0.379, allocations: 1.376 MB / 440 MB, free: 5.016 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.966e-05/0.3791, allocations: 59.34 kB / 440.1 MB, free: 4.945 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.3792, allocations: 113.8 kB / 440.2 MB, free: 4.824 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.907e-05/0.3793, allocations: 33.64 kB / 440.2 MB, free: 4.785 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.3793, allocations: 120.6 kB / 440.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.3795, allocations: 113 kB / 440.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.3798, allocations: 165.5 kB / 440.6 MB, free: 4.387 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.3799, allocations: 330.8 kB / 441 MB, free: 4.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005793/0.3805, allocations: 331.8 kB / 441.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006512/0.3811, allocations: 411.5 kB / 441.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001235/0.3824, allocations: 0.6998 MB / 442.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.644e-06/0.3824, allocations: 3.938 kB / 442.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001697/0.3841, allocations: 0.8718 MB / 443.3 MB, free: 1.691 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.3841, allocations: 8.25 kB / 443.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3841, allocations: 4 kB / 443.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.476e-05/0.3841, allocations: 7.938 kB / 443.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006682/0.3848, allocations: 179.8 kB / 443.4 MB, free: 1.496 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.3848, allocations: 4 kB / 443.5 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003923/0.3852, allocations: 31.83 kB / 443.5 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.3853, allocations: 63.94 kB / 443.5 MB, free: 1.398 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.0002164/0.3856, allocations: 141.8 kB / 443.7 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001416/0.3857, allocations: 15.81 kB / 443.7 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006625/0.3923, allocations: 7.978 MB / 451.7 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.34e-05/0.3924, allocations: 31.95 kB / 451.7 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3924, allocations: 0 / 451.7 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.3924, allocations: 11.92 kB / 451.7 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002667/0.3951, allocations: 3.606 MB / 455.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.3951, allocations: 0 / 455.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006276/0.3957, allocations: 103.8 kB / 455.4 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.3957, allocations: 4 kB / 455.4 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.296e-05/0.3958, allocations: 19.92 kB / 455.5 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.3958, allocations: 0 / 455.5 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.3958, allocations: 0 / 455.5 MB, free: 5.227 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002108/0.3979, allocations: 1.839 MB / 457.3 MB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.174e-05/0.398, allocations: 140.2 kB / 457.4 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.45e-05/0.3981, allocations: 15.94 kB / 457.4 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003294/0.3984, allocations: 20.05 kB / 457.5 MB, free: 3.176 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.611e-05/0.3985, allocations: 31.91 kB / 457.5 MB, free: 3.145 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-05/0.3986, allocations: 15.98 kB / 457.5 MB, free: 3.129 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.584e-05/0.3986, allocations: 91.27 kB / 457.6 MB, free: 3.039 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3986, allocations: 0 / 457.6 MB, free: 3.039 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002776/0.4014, allocations: 0.9877 MB / 458.6 MB, free: 2.051 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.007058/0.4085, allocations: 3.43 MB / 462 MB, free: 14.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001675/0.4101, allocations: 0.9262 MB / 462.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4102, allocations: 3.938 kB / 462.9 MB, free: 13.75 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006949/0.4109, allocations: 0.5924 MB / 463.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00057/0.4114, allocations: 91.81 kB / 463.6 MB, free: 13.07 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007274/0.4187, allocations: 4.878 MB / 468.5 MB, free: 8.078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004086/0.4191, allocations: 0.8575 MB / 469.4 MB, free: 7.188 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001971/0.4211, allocations: 1.784 MB / 471.1 MB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004378/0.4216, allocations: 223.3 kB / 471.4 MB, free: 5.184 MB / 382.1 MB Notification: Performance of SimCode: time 1.593e-06/0.4216, allocations: 4 kB / 471.4 MB, free: 5.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6514/1.073, allocations: 45.72 MB / 0.505 GB, free: 7.535 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002544/1.073, allocations: 202.7 kB / 0.5052 GB, free: 7.285 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.757/5.831, allocations: 0 / 0.5052 GB, free: 7.285 MB / 430.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