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.0009423/0.0009423, allocations: 114 kB / 17.28 MB, free: 6.219 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.0009212/0.0009212, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.19/1.19, allocations: 205.1 MB / 224.1 MB, free: 12.45 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.001183/0.001183, allocations: 55.92 kB / 280.3 MB, free: 3.402 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07166/0.07285, allocations: 46.62 MB / 326.9 MB, free: 4.719 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01398/0.08687, allocations: 13.46 MB / 340.3 MB, free: 7.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01535/0.1022, allocations: 15.58 MB / 355.9 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.1024, allocations: 4 kB / 355.9 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003202/0.1028, allocations: 71.67 kB / 356 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003383/0.1031, allocations: 103.3 kB / 356.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01353/0.1167, allocations: 5.255 MB / 361.3 MB, free: 2.121 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004567/0.1171, allocations: 330.6 kB / 361.7 MB, free: 1.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.621e-05/0.1172, allocations: 13.69 kB / 361.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004685/0.1177, allocations: 227 kB / 361.9 MB, free: 1.562 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001653/0.1179, allocations: 103.7 kB / 362 MB, free: 1.461 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.1179, allocations: 16 kB / 362 MB, free: 1.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01044/0.1283, allocations: 6.661 MB / 368.7 MB, free: 10.78 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.526e-05/0.1285, allocations: 43.83 kB / 368.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.1286, allocations: 111.6 kB / 368.8 MB, free: 10.62 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007046/0.1357, allocations: 3.907 MB / 372.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1357, allocations: 0 / 372.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1357, allocations: 0 / 372.7 MB, free: 6.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.823e-06/0.1357, allocations: 0 / 372.7 MB, free: 6.711 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.002421/0.1381, allocations: 0.9908 MB / 373.7 MB, free: 5.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.1382, allocations: 8.031 kB / 373.7 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.647e-05/0.1382, allocations: 54.73 kB / 373.8 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001284/0.1395, allocations: 180.5 kB / 374 MB, free: 5.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000258/0.1398, allocations: 267.9 kB / 374.2 MB, free: 5.125 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.807e-05/0.1398, allocations: 16.81 kB / 374.2 MB, free: 5.105 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.391e-05/0.1399, allocations: 24.12 kB / 374.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003/0.1429, allocations: 0.9012 MB / 375.2 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1429, allocations: 4 kB / 375.2 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.143, allocations: 8 kB / 375.2 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.143, allocations: 8 kB / 375.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003006/0.146, allocations: 0.9695 MB / 376.2 MB, free: 3.172 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.001343/0.1473, allocations: 1.35 MB / 377.5 MB, free: 1.688 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002452/0.1498, allocations: 0.7245 MB / 378.2 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002386/0.15, allocations: 160.8 kB / 378.4 MB, free: 0.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1837/0.3338, allocations: 37.39 MB / 415.8 MB, free: 24.82 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.3338, allocations: 35.97 kB / 415.8 MB, free: 24.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 1.873e-06/0.3338, allocations: 0 / 415.8 MB, free: 24.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004768/0.3386, allocations: 1.36 MB / 417.2 MB, free: 23.43 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.961e-05/0.3386, allocations: 55.41 kB / 417.2 MB, free: 23.36 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.889e-05/0.3387, allocations: 124.2 kB / 417.4 MB, free: 23.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.583e-05/0.3388, allocations: 29.7 kB / 417.4 MB, free: 23.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.469e-05/0.3388, allocations: 114.9 kB / 417.5 MB, free: 23.1 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.3389, allocations: 117.3 kB / 417.6 MB, free: 23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002442/0.3392, allocations: 173.5 kB / 417.8 MB, free: 22.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.816e-05/0.3392, allocations: 322.8 kB / 418.1 MB, free: 22.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004966/0.3397, allocations: 335.8 kB / 418.4 MB, free: 22.17 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005433/0.3403, allocations: 415.1 kB / 418.8 MB, free: 21.74 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001046/0.3413, allocations: 0.7057 MB / 419.5 MB, free: 21.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3413, allocations: 5.969 kB / 419.5 MB, free: 21.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001481/0.3428, allocations: 0.8651 MB / 420.4 MB, free: 20.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.3429, allocations: 5.406 kB / 420.4 MB, free: 20.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3429, allocations: 5.078 kB / 420.4 MB, free: 20.13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3429, allocations: 4 kB / 420.4 MB, free: 20.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000629/0.3435, allocations: 179.7 kB / 420.6 MB, free: 19.95 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.6e-05/0.3435, allocations: 7.938 kB / 420.6 MB, free: 19.95 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003945/0.3439, allocations: 40.84 kB / 420.6 MB, free: 19.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.3441, allocations: 67.92 kB / 420.7 MB, free: 19.84 MB / 318.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.0002122/0.3443, allocations: 133.8 kB / 420.8 MB, free: 19.7 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.3444, allocations: 23.58 kB / 420.9 MB, free: 19.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005011/0.3495, allocations: 7.973 MB / 428.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/0.3495, allocations: 31.89 kB / 428.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3495, allocations: 3.938 kB / 428.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3495, allocations: 3.984 kB / 428.9 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001905/0.3514, allocations: 3.589 MB / 432.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.3514, allocations: 7.938 kB / 432.5 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006215/0.3521, allocations: 103.8 kB / 432.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.12e-06/0.3521, allocations: 0 / 432.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.124e-05/0.3521, allocations: 15.94 kB / 432.6 MB, free: 7.703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.466e-06/0.3521, allocations: 7.938 kB / 432.6 MB, free: 7.695 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3522, allocations: 7.984 kB / 432.6 MB, free: 7.688 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001738/0.3539, allocations: 1.831 MB / 434.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.112e-05/0.354, allocations: 144.2 kB / 434.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.023e-05/0.354, allocations: 8 kB / 434.6 MB, free: 5.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003142/0.3543, allocations: 23.98 kB / 434.6 MB, free: 5.648 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.623e-05/0.3544, allocations: 31.95 kB / 434.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.3545, allocations: 19.98 kB / 434.7 MB, free: 5.598 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.328e-05/0.3545, allocations: 91.27 kB / 434.7 MB, free: 5.508 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3545, allocations: 0 / 434.7 MB, free: 5.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.002156/0.3567, allocations: 0.9757 MB / 435.7 MB, free: 4.613 MB / 318.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.005758/0.3625, allocations: 3.427 MB / 439.1 MB, free: 1.305 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001479/0.3639, allocations: 0.9151 MB / 440.1 MB, free: 400 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.364, allocations: 4.5 kB / 440.1 MB, free: 396 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005949/0.3646, allocations: 0.5947 MB / 440.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005868/0.3652, allocations: 86.86 kB / 440.7 MB, free: 15.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007039/0.3722, allocations: 4.881 MB / 445.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.3726, allocations: 0.8575 MB / 446.5 MB, free: 9.828 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001745/0.3743, allocations: 1.783 MB / 448.3 MB, free: 8.051 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/0.3747, allocations: 227.3 kB / 448.5 MB, free: 7.828 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3748, allocations: 0 / 448.5 MB, free: 7.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2036/0.5784, allocations: 45.65 MB / 494.1 MB, free: 10.05 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001946/0.5786, allocations: 214.6 kB / 494.3 MB, free: 9.789 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.437/6.015, allocations: 0 / 494.3 MB, free: 9.789 MB / 382.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","../files/Modelica_3.2.3_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches