Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002117/0.00212, allocations: 182.7 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.282/2.282, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001125/0.001125, allocations: 97.83 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005535/0.0005536, allocations: 8 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3457/0.3464, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT): time 0.0416/0.388, allocations: 27.27 MB / 401.9 MB, free: 21.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02061/0.4087, allocations: 13.36 MB / 415.3 MB, free: 8.102 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005132/0.4093, allocations: 4 kB / 415.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001009/0.4103, allocations: 227 kB / 415.5 MB, free: 7.875 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007962/0.4111, allocations: 255.3 kB / 415.7 MB, free: 7.625 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01866/0.4298, allocations: 4.528 MB / 420.3 MB, free: 3.109 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001189/0.431, allocations: 0.5505 MB / 420.8 MB, free: 2.559 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.4313, allocations: 81.02 kB / 420.9 MB, free: 2.477 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009318/0.4406, allocations: 3.263 MB / 424.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004637/0.4411, allocations: 195.2 kB / 424.4 MB, free: 15.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.573e-05/0.4412, allocations: 16 kB / 424.4 MB, free: 15 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0101/0.4513, allocations: 3.402 MB / 427.8 MB, free: 11.6 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002112/0.4516, allocations: 79.73 kB / 427.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.4518, allocations: 101.6 kB / 427.9 MB, free: 11.41 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004402/0.4562, allocations: 1.629 MB / 429.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4563, allocations: 0 / 429.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.815e-06/0.4563, allocations: 0 / 429.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.4563, allocations: 0 / 429.6 MB, free: 9.781 MB / 314.7 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.002321/0.4586, allocations: 0.7562 MB / 430.3 MB, free: 8.977 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.4587, allocations: 12.03 kB / 430.3 MB, free: 8.965 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001568/0.4589, allocations: 70.47 kB / 430.4 MB, free: 8.887 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001042/0.4599, allocations: 83.48 kB / 430.5 MB, free: 8.805 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000611/0.4606, allocations: 295.6 kB / 430.8 MB, free: 8.477 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.155e-05/0.4606, allocations: 24.66 kB / 430.8 MB, free: 8.449 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.264e-05/0.4607, allocations: 28 kB / 430.8 MB, free: 8.422 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.462, allocations: 442.2 kB / 431.3 MB, free: 7.945 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/0.4621, allocations: 3.906 kB / 431.3 MB, free: 7.941 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.577e-05/0.4622, allocations: 16 kB / 431.3 MB, free: 7.926 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.4622, allocations: 15.94 kB / 431.3 MB, free: 7.91 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001083/0.4633, allocations: 313.8 kB / 431.6 MB, free: 7.602 MB / 314.7 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.00438/0.4677, allocations: 2.626 MB / 434.2 MB, free: 4.734 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008576/0.4686, allocations: 251.4 kB / 434.5 MB, free: 4.48 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05762/0.5262, allocations: 15.59 MB / 450.1 MB, free: 3.094 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.031e-05/0.5264, allocations: 46.5 kB / 450.1 MB, free: 3.039 MB / 330.7 MB Notification: Performance of pre-optimization done (n=25): time 2.355e-06/0.5264, allocations: 0 / 450.1 MB, free: 3.039 MB / 330.7 MB Notification: Performance of matching and sorting (n=30): time 0.006796/0.5332, allocations: 1.31 MB / 451.4 MB, free: 1.652 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.5333, allocations: 51.41 kB / 451.5 MB, free: 1.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004292/0.5337, allocations: 262.6 kB / 451.7 MB, free: 1.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.945e-05/0.5338, allocations: 37.7 kB / 451.8 MB, free: 1.277 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.534, allocations: 250.3 kB / 452 MB, free: 1.031 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.5341, allocations: 114.4 kB / 452.1 MB, free: 0.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.5342, allocations: 4 kB / 452.1 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.5344, allocations: 330.8 kB / 452.4 MB, free: 0.582 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002988/0.5347, allocations: 100.8 kB / 452.5 MB, free: 492 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003966/0.5351, allocations: 218.9 kB / 452.8 MB, free: 220 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003855/0.5355, allocations: 135.9 kB / 452.9 MB, free: 84 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.5355, allocations: 4 kB / 452.9 MB, free: 80 kB / 330.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001296/0.5368, allocations: 422.8 kB / 453.3 MB, free: 15.65 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.5369, allocations: 8.5 kB / 453.3 MB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/0.5369, allocations: 7.984 kB / 453.3 MB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005595/0.5425, allocations: 269.3 kB / 453.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006121/0.5432, allocations: 83.89 kB / 453.7 MB, free: 15.28 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002266/0.5455, allocations: 1.875 MB / 455.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005189/0.546, allocations: 36.11 kB / 455.6 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.657e-05/0.5461, allocations: 16 kB / 455.6 MB, free: 13.2 MB / 346.7 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): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003416/0.5464, allocations: 161.7 kB / 455.8 MB, free: 13.03 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.5465, allocations: 27.7 kB / 455.8 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001907/0.5485, allocations: 0.9552 MB / 456.7 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.179e-05/0.5485, allocations: 11.98 kB / 456.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.267e-06/0.5485, allocations: 0 / 456.7 MB, free: 12.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001629/0.5502, allocations: 1.123 MB / 457.9 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003035/0.5532, allocations: 1.58 MB / 459.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.526e-06/0.5533, allocations: 0 / 459.5 MB, free: 9.16 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003893/0.5537, allocations: 55.91 kB / 459.5 MB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003049/0.5568, allocations: 291.9 kB / 459.8 MB, free: 8.816 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.26e-05/0.5569, allocations: 8 kB / 459.8 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008762/0.5578, allocations: 0.6693 MB / 460.5 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.5578, allocations: 0 / 460.5 MB, free: 8.113 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00206/0.5599, allocations: 0.9571 MB / 461.4 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.5601, allocations: 132.5 kB / 461.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.348e-05/0.5602, allocations: 12 kB / 461.6 MB, free: 6.973 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003968/0.5606, allocations: 19.92 kB / 461.6 MB, free: 6.953 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.415e-05/0.5607, allocations: 19.91 kB / 461.6 MB, free: 6.934 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.835e-05/0.5608, allocations: 16.06 kB / 461.6 MB, free: 6.918 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004032/0.5612, allocations: 243 kB / 461.9 MB, free: 6.684 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5612, allocations: 0 / 461.9 MB, free: 6.684 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002101/0.5633, allocations: 499.8 kB / 462.3 MB, free: 6.195 MB / 346.7 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.T) * 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 (30): * Single equations (assignments): 27 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.005379/0.5687, allocations: 1.911 MB / 464.3 MB, free: 4.254 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00151/0.5703, allocations: 0.5151 MB / 464.8 MB, free: 3.727 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.5703, allocations: 7.938 kB / 464.8 MB, free: 3.719 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007236/0.571, allocations: 296.3 kB / 465.1 MB, free: 3.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/0.5729, allocations: 176.9 kB / 465.2 MB, free: 3.254 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007655/0.5805, allocations: 4.977 MB / 470.2 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005376/0.5811, allocations: 0.8361 MB / 471.1 MB, free: 13.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000338/0.5815, allocations: 143.4 kB / 471.2 MB, free: 13.16 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5815, allocations: 4 kB / 471.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.47/4.051, allocations: 18.08 MB / 489.3 MB, free: 11.05 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_pT.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat