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.0006267/0.0006268, allocations: 93.33 kB / 17.3 MB, free: 6.387 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.0007243/0.0007244, allocations: 174.8 kB / 18.21 MB, free: 5.551 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.167/1.167, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004049/0.000405, allocations: 8 kB / 281.5 MB, free: 3.316 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07168/0.07209, allocations: 47.59 MB / 329.1 MB, free: 3.652 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates): time 0.01291/0.08504, allocations: 13.65 MB / 342.7 MB, free: 5.941 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01568/0.1007, allocations: 16.31 MB / 359 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.1009, allocations: 0 / 359 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002966/0.1012, allocations: 71.62 kB / 359.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.1015, allocations: 107.3 kB / 359.2 MB, free: 5.406 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0113/0.1128, allocations: 4.697 MB / 363.9 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000367/0.1132, allocations: 374.5 kB / 364.3 MB, free: 336 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.822e-05/0.1133, allocations: 17.67 kB / 364.3 MB, free: 316 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003874/0.1136, allocations: 211.1 kB / 364.5 MB, free: 104 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1138, allocations: 107.6 kB / 364.6 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.1138, allocations: 8 kB / 364.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009565/0.1234, allocations: 6.68 MB / 371.3 MB, free: 9.301 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.543e-05/0.1235, allocations: 35.83 kB / 371.3 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001173/0.1236, allocations: 121.3 kB / 371.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004688/0.1283, allocations: 3.891 MB / 375.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.1283, allocations: 0 / 375.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1283, allocations: 0 / 375.3 MB, free: 5.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1283, allocations: 4 kB / 375.3 MB, free: 5.238 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.001873/0.1302, allocations: 0.9439 MB / 376.3 MB, free: 4.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.677e-05/0.1303, allocations: 8.031 kB / 376.3 MB, free: 4.238 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.609e-05/0.1303, allocations: 58.73 kB / 376.3 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001249/0.1316, allocations: 180.5 kB / 376.5 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.1318, allocations: 263.9 kB / 376.8 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.039e-05/0.1318, allocations: 16.81 kB / 376.8 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.379e-05/0.1319, allocations: 24.12 kB / 376.8 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002757/0.1347, allocations: 0.9129 MB / 377.7 MB, free: 2.723 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.1347, allocations: 3.938 kB / 377.7 MB, free: 2.719 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.082e-05/0.1347, allocations: 8 kB / 377.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.1347, allocations: 4 kB / 377.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003081/0.1378, allocations: 0.9852 MB / 378.7 MB, free: 1.723 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.001435/0.1393, allocations: 1.354 MB / 380.1 MB, free: 240 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1255/0.2647, allocations: 0.7254 MB / 380.8 MB, free: 53.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002823/0.2651, allocations: 161.8 kB / 381 MB, free: 53.08 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06205/0.3271, allocations: 37.76 MB / 418.7 MB, free: 22.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/0.3272, allocations: 34.56 kB / 418.7 MB, free: 22.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=33): time 1.973e-06/0.3272, allocations: 2.719 kB / 418.8 MB, free: 22.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=33): time 0.004347/0.3315, allocations: 1.378 MB / 420.1 MB, free: 20.96 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.706e-05/0.3316, allocations: 59.34 kB / 420.2 MB, free: 20.89 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.776e-05/0.3317, allocations: 116.7 kB / 420.3 MB, free: 20.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.014e-05/0.3317, allocations: 31.2 kB / 420.3 MB, free: 20.74 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.03e-05/0.3318, allocations: 123 kB / 420.5 MB, free: 20.64 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.412e-05/0.3319, allocations: 114.1 kB / 420.6 MB, free: 20.54 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.488e-05/0.332, allocations: 37.7 kB / 420.6 MB, free: 20.49 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.455e-05/0.332, allocations: 318.8 kB / 420.9 MB, free: 20.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004966/0.3325, allocations: 347.8 kB / 421.3 MB, free: 19.83 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005063/0.333, allocations: 411.2 kB / 421.7 MB, free: 19.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009656/0.334, allocations: 0.7154 MB / 422.4 MB, free: 18.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.334, allocations: 0 / 422.4 MB, free: 18.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001328/0.3353, allocations: 0.8836 MB / 423.3 MB, free: 17.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.3354, allocations: 7.938 kB / 423.3 MB, free: 17.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.622e-06/0.3354, allocations: 4 kB / 423.3 MB, free: 17.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.3354, allocations: 4 kB / 423.3 MB, free: 17.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005455/0.336, allocations: 180.8 kB / 423.4 MB, free: 17.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.336, allocations: 8.703 kB / 423.5 MB, free: 17.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003263/0.3363, allocations: 41.7 kB / 423.5 MB, free: 17.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.083e-05/0.3364, allocations: 56.45 kB / 423.5 MB, free: 17.48 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.0001652/0.3366, allocations: 145.7 kB / 423.7 MB, free: 17.33 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.351e-05/0.3367, allocations: 23.69 kB / 423.7 MB, free: 17.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004922/0.3416, allocations: 7.972 MB / 431.7 MB, free: 9.344 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/0.3416, allocations: 31.89 kB / 431.7 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3416, allocations: 4 kB / 431.7 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.3416, allocations: 3.984 kB / 431.7 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001852/0.3435, allocations: 3.597 MB / 435.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.3435, allocations: 0 / 435.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005455/0.3441, allocations: 107.8 kB / 435.4 MB, free: 5.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.3441, allocations: 7.406 kB / 435.4 MB, free: 5.348 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.3441, allocations: 14.17 kB / 435.4 MB, free: 5.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.3441, allocations: 4 kB / 435.5 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3441, allocations: 0 / 435.5 MB, free: 5.332 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001691/0.3458, allocations: 1.854 MB / 437.3 MB, free: 3.461 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.274e-05/0.3459, allocations: 148.2 kB / 437.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.297e-05/0.3459, allocations: 19.94 kB / 437.5 MB, free: 3.277 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002819/0.3462, allocations: 23.92 kB / 437.5 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.747e-05/0.3463, allocations: 23.97 kB / 437.5 MB, free: 3.234 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.3463, allocations: 15.98 kB / 437.5 MB, free: 3.219 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.959e-05/0.3464, allocations: 91.27 kB / 437.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3464, allocations: 0 / 437.6 MB, free: 3.129 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001967/0.3483, allocations: 0.9863 MB / 438.6 MB, free: 2.227 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.00508/0.3534, allocations: 3.428 MB / 442 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.3548, allocations: 0.9097 MB / 442.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3548, allocations: 0 / 442.9 MB, free: 14.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006887/0.3555, allocations: 0.5991 MB / 443.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006153/0.3561, allocations: 85.03 kB / 443.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006553/0.3627, allocations: 4.96 MB / 448.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003568/0.3631, allocations: 0.8575 MB / 449.4 MB, free: 7.375 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001803/0.3649, allocations: 1.777 MB / 451.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004648/0.3653, allocations: 223.3 kB / 451.4 MB, free: 5.379 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3654, allocations: 0 / 451.4 MB, free: 5.379 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.396/0.7613, allocations: 44.93 MB / 496.4 MB, free: 8.34 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002055/0.7616, allocations: 213.8 kB / 496.6 MB, free: 8.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.849/4.611, allocations: 0 / 496.6 MB, free: 8.078 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