Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.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.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph",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.001039/0.001039, allocations: 99.25 kB / 16.94 MB, free: 5.984 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.001099/0.001099, allocations: 179 kB / 17.82 MB, free: 5.652 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.418/1.418, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004462/0.0004464, allocations: 11.28 kB / 280.9 MB, free: 3.645 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1158, allocations: 47.57 MB / 328.4 MB, free: 4 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03283/0.1487, allocations: 27.27 MB / 355.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01661/0.1653, allocations: 13.35 MB / 369 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005054/0.1659, allocations: 7.938 kB / 369.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008837/0.1668, allocations: 231 kB / 369.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006701/0.1675, allocations: 247.3 kB / 369.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01492/0.1824, allocations: 4.538 MB / 374.1 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.1835, allocations: 0.5583 MB / 374.6 MB, free: 5.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001987/0.1837, allocations: 81.02 kB / 374.7 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006308/0.19, allocations: 3.278 MB / 378 MB, free: 2.324 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003911/0.1904, allocations: 199.3 kB / 378.2 MB, free: 2.129 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.986e-05/0.1905, allocations: 16 kB / 378.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2526/0.4431, allocations: 5.927 MB / 384.1 MB, free: 16.71 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004939/0.4437, allocations: 83.86 kB / 384.2 MB, free: 16.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004723/0.4442, allocations: 108.7 kB / 384.3 MB, free: 16.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.4547, allocations: 2.583 MB / 386.9 MB, free: 16.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.4547, allocations: 0.9375 kB / 386.9 MB, free: 16.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.237e-06/0.4547, allocations: 0 / 386.9 MB, free: 16.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.356e-05/0.4548, allocations: 2.875 kB / 386.9 MB, free: 16.59 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.005319/0.4601, allocations: 0.8992 MB / 387.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.4602, allocations: 12.92 kB / 387.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002081/0.4604, allocations: 71.44 kB / 387.9 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001683/0.4621, allocations: 162.7 kB / 388 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005989/0.4627, allocations: 311.3 kB / 388.3 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.554e-05/0.4628, allocations: 24.12 kB / 388.4 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.016e-05/0.4628, allocations: 31.81 kB / 388.4 MB, free: 15.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.4643, allocations: 0.5196 MB / 388.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.4643, allocations: 3.859 kB / 388.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.4644, allocations: 16.06 kB / 388.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.4644, allocations: 7.344 kB / 388.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000634/0.465, allocations: 331.9 kB / 389.3 MB, free: 15.59 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.002765/0.4678, allocations: 2.563 MB / 391.8 MB, free: 13.63 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005461/0.4683, allocations: 281.3 kB / 392.1 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06101/0.5294, allocations: 31.2 MB / 423.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.057e-05/0.5295, allocations: 38.12 kB / 423.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.885e-06/0.5295, allocations: 0 / 423.3 MB, free: 6.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.003665/0.5332, allocations: 1.21 MB / 424.5 MB, free: 5.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.497e-05/0.5332, allocations: 64.47 kB / 424.6 MB, free: 5.504 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002945/0.5335, allocations: 263.5 kB / 424.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.778e-05/0.5336, allocations: 35.89 kB / 424.9 MB, free: 5.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.5337, allocations: 188 kB / 425.1 MB, free: 5.098 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.587e-05/0.5338, allocations: 114.4 kB / 425.2 MB, free: 5.004 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.503e-05/0.5338, allocations: 7.125 kB / 425.2 MB, free: 5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002644/0.5341, allocations: 336.8 kB / 425.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.5342, allocations: 93.14 kB / 425.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.5345, allocations: 208.8 kB / 425.8 MB, free: 4.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002039/0.5347, allocations: 134 kB / 426 MB, free: 4.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.5347, allocations: 4 kB / 426 MB, free: 4.324 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006571/0.5354, allocations: 413.9 kB / 426.4 MB, free: 4.035 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.5354, allocations: 11.95 kB / 426.4 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.647e-06/0.5354, allocations: 6.625 kB / 426.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000273/0.5357, allocations: 55.44 kB / 426.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/0.5361, allocations: 92.42 kB / 426.5 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001616/0.5377, allocations: 2.431 MB / 429 MB, free: 1.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002599/0.538, allocations: 26.77 kB / 429 MB, free: 1.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/0.538, allocations: 22.91 kB / 429 MB, free: 1.332 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001878/0.5382, allocations: 161.7 kB / 429.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.5383, allocations: 27.72 kB / 429.2 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009795/0.5393, allocations: 0.8734 MB / 430.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.5393, allocations: 14.94 kB / 430.1 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.5393, allocations: 3.953 kB / 430.1 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009141/0.5402, allocations: 1.043 MB / 431.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.5418, allocations: 1.494 MB / 432.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/0.5419, allocations: 0 / 432.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002214/0.5421, allocations: 57.25 kB / 432.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003397/0.5424, allocations: 70.69 kB / 432.7 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.5425, allocations: 17.3 kB / 432.8 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003809/0.5429, allocations: 0.591 MB / 433.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.5429, allocations: 0 / 433.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000904/0.5438, allocations: 0.8201 MB / 434.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001194/0.5439, allocations: 139.1 kB / 434.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.638e-05/0.544, allocations: 11.09 kB / 434.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003381/0.5443, allocations: 47.97 kB / 434.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.495e-05/0.5444, allocations: 15.98 kB / 434.4 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.047e-05/0.5444, allocations: 15.11 kB / 434.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002068/0.5446, allocations: 238.2 kB / 434.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5446, allocations: 0 / 434.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.004575/0.5492, allocations: 0.8486 MB / 435.5 MB, free: 12.14 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008483/0.5577, allocations: 2.23 MB / 437.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001082/0.5588, allocations: 483.6 kB / 438.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5588, allocations: 0 / 438.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003741/0.5592, allocations: 244.3 kB / 438.4 MB, free: 9.762 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.5604, allocations: 177.3 kB / 438.6 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008003/0.5684, allocations: 4.989 MB / 443.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005123/0.569, allocations: 0.8361 MB / 444.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004992/0.5695, allocations: 176 kB / 444.6 MB, free: 3.914 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001834/0.5697, allocations: 145.4 kB / 444.7 MB, free: 3.867 MB / 350.1 MB Notification: Performance of SimCode: time 1.232e-06/0.5697, allocations: 4 kB / 444.7 MB, free: 3.863 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07654/0.6463, allocations: 39.32 MB / 484.1 MB, free: 12.65 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.6465, allocations: 244.6 kB / 484.3 MB, free: 12.4 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.031/4.678, allocations: 0 / 484.3 MB, free: 12.4 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat