Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_3_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.001268/0.001268, allocations: 101.5 kB / 17.72 MB, free: 5.371 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.001339/0.001339, allocations: 192 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 47.94 kB / 330.3 MB, free: 1.477 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08344/0.08465, allocations: 46.61 MB / 376.9 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.1869/0.2716, allocations: 13.33 MB / 390.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.2873, allocations: 15.55 MB / 405.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.2875, allocations: 1.094 kB / 405.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003903/0.2879, allocations: 79.28 kB / 405.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003206/0.2882, allocations: 109.2 kB / 406 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01706/0.3053, allocations: 5.956 MB / 412 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005197/0.3058, allocations: 340.8 kB / 412.3 MB, free: 6.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.05e-05/0.3059, allocations: 11.53 kB / 412.3 MB, free: 6.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004181/0.3063, allocations: 232.9 kB / 412.5 MB, free: 6.004 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001513/0.3065, allocations: 100.9 kB / 412.6 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.512e-05/0.3065, allocations: 13.59 kB / 412.7 MB, free: 5.949 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01377/0.3203, allocations: 6.758 MB / 419.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.633e-05/0.3204, allocations: 45.45 kB / 419.5 MB, free: 2.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002329/0.3207, allocations: 96.98 kB / 419.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009406/0.3301, allocations: 3.892 MB / 423.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.3301, allocations: 0 / 423.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3301, allocations: 0 / 423.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.3301, allocations: 0 / 423.4 MB, free: 15.41 MB / 350.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.002672/0.3328, allocations: 0.9875 MB / 424.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.3328, allocations: 16.03 kB / 424.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.832e-05/0.3329, allocations: 65.09 kB / 424.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001348/0.3343, allocations: 168.6 kB / 424.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003128/0.3346, allocations: 257.1 kB / 424.9 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.3346, allocations: 16.81 kB / 424.9 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.117e-05/0.3347, allocations: 23.94 kB / 425 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003101/0.3378, allocations: 0.9128 MB / 425.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.3378, allocations: 0 / 425.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.887e-05/0.3378, allocations: 8 kB / 425.9 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.3378, allocations: 7.984 kB / 425.9 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003196/0.3411, allocations: 0.9695 MB / 426.9 MB, free: 11.87 MB / 350.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.001514/0.3426, allocations: 1.346 MB / 428.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002642/0.3452, allocations: 0.7283 MB / 428.9 MB, free: 9.652 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002566/0.3455, allocations: 156.8 kB / 429.1 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0716/0.4171, allocations: 37.54 MB / 466.6 MB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.4172, allocations: 34.56 kB / 466.7 MB, free: 15.46 MB / 398.1 MB Notification: Performance of pre-optimization done (n=33): time 2.265e-06/0.4172, allocations: 0 / 466.7 MB, free: 15.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.005389/0.4226, allocations: 1.372 MB / 468 MB, free: 14.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.4226, allocations: 55.41 kB / 468.1 MB, free: 14.02 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.766e-05/0.4228, allocations: 117.8 kB / 468.2 MB, free: 13.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 7.475e-05/0.4228, allocations: 29.7 kB / 468.2 MB, free: 13.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.515e-05/0.4229, allocations: 116.7 kB / 468.4 MB, free: 13.74 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.423, allocations: 110.4 kB / 468.5 MB, free: 13.63 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000263/0.4233, allocations: 173.5 kB / 468.6 MB, free: 13.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.4234, allocations: 322.8 kB / 468.9 MB, free: 13.13 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006081/0.424, allocations: 335.8 kB / 469.3 MB, free: 12.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006874/0.4247, allocations: 419.2 kB / 469.7 MB, free: 12.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001287/0.426, allocations: 0.6948 MB / 470.4 MB, free: 11.64 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.4261, allocations: 0 / 470.4 MB, free: 11.64 MB / 398.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001757/0.4278, allocations: 0.8723 MB / 471.3 MB, free: 10.76 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.4279, allocations: 11.94 kB / 471.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.4279, allocations: 0 / 471.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.4279, allocations: 4 kB / 471.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007004/0.4286, allocations: 182.8 kB / 471.4 MB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.361e-05/0.4286, allocations: 11.92 kB / 471.5 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003577/0.429, allocations: 27.69 kB / 471.5 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.4291, allocations: 67.92 kB / 471.6 MB, free: 10.46 MB / 398.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.0002215/0.4293, allocations: 146.2 kB / 471.7 MB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001443/0.4295, allocations: 19.75 kB / 471.7 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007195/0.4367, allocations: 7.966 MB / 479.7 MB, free: 2.305 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.632e-05/0.4367, allocations: 27.95 kB / 479.7 MB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.4368, allocations: 8 kB / 479.7 MB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.4368, allocations: 0 / 479.7 MB, free: 2.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00291/0.4397, allocations: 3.592 MB / 483.3 MB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.4397, allocations: 0 / 483.3 MB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000676/0.4404, allocations: 107.8 kB / 483.4 MB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.067e-05/0.4404, allocations: 7.938 kB / 483.4 MB, free: 14.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.147e-05/0.4405, allocations: 15.98 kB / 483.4 MB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.4405, allocations: 0 / 483.4 MB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4405, allocations: 0 / 483.4 MB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002285/0.4428, allocations: 1.838 MB / 485.3 MB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.819e-05/0.4429, allocations: 144.1 kB / 485.4 MB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.222e-05/0.443, allocations: 11.94 kB / 485.4 MB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003059/0.4433, allocations: 15.98 kB / 485.4 MB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.972e-05/0.4434, allocations: 31.91 kB / 485.5 MB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.584e-05/0.4434, allocations: 15.98 kB / 485.5 MB, free: 12.19 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.478e-05/0.4435, allocations: 95.33 kB / 485.6 MB, free: 12.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4435, allocations: 0 / 485.6 MB, free: 12.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003034/0.4465, allocations: 0.9838 MB / 486.6 MB, free: 11.11 MB / 414.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.007444/0.454, allocations: 3.404 MB / 490 MB, free: 7.684 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001593/0.4556, allocations: 0.9071 MB / 490.9 MB, free: 6.777 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/0.4556, allocations: 0 / 490.9 MB, free: 6.777 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000725/0.4563, allocations: 0.5946 MB / 491.5 MB, free: 6.184 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006673/0.457, allocations: 77.53 kB / 491.5 MB, free: 6.109 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00846/0.4655, allocations: 4.646 MB / 496.2 MB, free: 1.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005989/0.4661, allocations: 0.8575 MB / 497 MB, free: 468 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002028/0.4682, allocations: 1.784 MB / 498.8 MB, free: 14.67 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000459/0.4687, allocations: 223.2 kB / 499.1 MB, free: 14.45 MB / 430.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4687, allocations: 0 / 499.1 MB, free: 14.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07629/0.545, allocations: 45.81 MB / 0.5321 GB, free: 492 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.76, allocations: 0 / 0.5321 GB, free: 492 kB / 462.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates_fmu --startTime=0 --stopTime=22 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates.fmu > Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/TwoPhaseWater/TestTwoPhaseStates/TestTwoPhaseStates.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches