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.0008879/0.0008878, allocations: 92.94 kB / 16.95 MB, free: 6.109 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.00116/0.00116, allocations: 177.2 kB / 17.83 MB, free: 5.727 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.547/1.547, allocations: 205.4 MB / 224 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.000457/0.000457, allocations: 15.92 kB / 280.9 MB, free: 3.605 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1108, allocations: 47.58 MB / 328.5 MB, free: 3.957 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03116/0.142, allocations: 30.11 MB / 358.6 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01779/0.1599, allocations: 14.63 MB / 373.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005232/0.1604, allocations: 0 / 373.2 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008791/0.1613, allocations: 222.8 kB / 373.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009104/0.1623, allocations: 338.2 kB / 373.8 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01695/0.1792, allocations: 4.449 MB / 378.2 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002069/0.1813, allocations: 1.223 MB / 379.4 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002307/0.1815, allocations: 77.03 kB / 379.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.234/0.4155, allocations: 3.306 MB / 382.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005407/0.4161, allocations: 293.8 kB / 383.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.9e-05/0.4162, allocations: 17.91 kB / 383.1 MB, free: 14.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01515/0.4314, allocations: 5.804 MB / 388.9 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002197/0.4316, allocations: 86.8 kB / 389 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000274/0.4319, allocations: 112.5 kB / 389.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006857/0.4388, allocations: 2.585 MB / 391.7 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.4388, allocations: 1.562 kB / 391.7 MB, free: 14.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4388, allocations: 0 / 391.7 MB, free: 14.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.4388, allocations: 0 / 391.7 MB, free: 14.43 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.003783/0.4426, allocations: 0.9135 MB / 392.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.336e-05/0.4427, allocations: 8.25 kB / 392.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.807e-05/0.4428, allocations: 68.69 kB / 392.7 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/0.4442, allocations: 163 kB / 392.8 MB, free: 13.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005722/0.4448, allocations: 304 kB / 393.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.579e-05/0.4449, allocations: 22.94 kB / 393.2 MB, free: 13.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.731e-05/0.445, allocations: 37.27 kB / 393.2 MB, free: 13.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.4466, allocations: 0.519 MB / 393.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.363e-05/0.4466, allocations: 5.141 kB / 393.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.886e-05/0.4467, allocations: 13.75 kB / 393.7 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.4467, allocations: 10.44 kB / 393.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000608/0.4473, allocations: 332.3 kB / 394.1 MB, free: 13.44 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.002898/0.4502, allocations: 2.575 MB / 396.6 MB, free: 11.47 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000544/0.4508, allocations: 274.5 kB / 396.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000261/0.451, allocations: 107.6 kB / 397 MB, free: 11.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05533/0.5064, allocations: 31.21 MB / 428.2 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.81e-05/0.5065, allocations: 34.19 kB / 428.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 2.635e-06/0.5065, allocations: 0 / 428.3 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.003543/0.51, allocations: 1.22 MB / 429.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.5101, allocations: 55.41 kB / 429.5 MB, free: 15.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002661/0.5104, allocations: 258.1 kB / 429.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.5104, allocations: 29.39 kB / 429.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.5105, allocations: 198.4 kB / 430 MB, free: 15.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.208e-05/0.5106, allocations: 108.9 kB / 430.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.532e-05/0.5107, allocations: 5.75 kB / 430.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.5108, allocations: 337.6 kB / 430.5 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001466/0.5109, allocations: 91.33 kB / 430.5 MB, free: 14.81 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.5112, allocations: 216 kB / 430.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002077/0.5114, allocations: 128.3 kB / 430.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5114, allocations: 0 / 430.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008558/0.5123, allocations: 420.3 kB / 431.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.5123, allocations: 7.953 kB / 431.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.118e-06/0.5123, allocations: 4 kB / 431.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002656/0.5126, allocations: 60.2 kB / 431.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003463/0.5129, allocations: 91.7 kB / 431.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001795/0.5148, allocations: 2.429 MB / 433.9 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002784/0.515, allocations: 30.83 kB / 433.9 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.844e-05/0.5151, allocations: 20.16 kB / 433.9 MB, free: 11.52 MB / 350.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.0002007/0.5153, allocations: 166 kB / 434.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.54e-05/0.5154, allocations: 29.97 kB / 434.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009667/0.5163, allocations: 0.8637 MB / 435 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.513e-05/0.5164, allocations: 11.77 kB / 435 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.5164, allocations: 3.953 kB / 435 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001066/0.5175, allocations: 1.048 MB / 436.1 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.5193, allocations: 1.49 MB / 437.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.5193, allocations: 0 / 437.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/0.5196, allocations: 54.09 kB / 437.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003698/0.52, allocations: 75.69 kB / 437.7 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.735e-05/0.5201, allocations: 17.11 kB / 437.7 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000446/0.5205, allocations: 0.5926 MB / 438.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5205, allocations: 0 / 438.3 MB, free: 8.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001104/0.5216, allocations: 0.8218 MB / 439.1 MB, free: 7.551 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.5219, allocations: 134.6 kB / 439.2 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.174e-05/0.5219, allocations: 12.06 kB / 439.2 MB, free: 7.402 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003726/0.5223, allocations: 40.7 kB / 439.3 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.5225, allocations: 22.41 kB / 439.3 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.5225, allocations: 11.88 kB / 439.3 MB, free: 7.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002547/0.5228, allocations: 237.7 kB / 439.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5228, allocations: 0 / 439.5 MB, free: 7.152 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003846/0.5266, allocations: 0.8571 MB / 440.4 MB, free: 6.332 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.007323/0.534, allocations: 2.234 MB / 442.6 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001182/0.5352, allocations: 487 kB / 443.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.5352, allocations: 0 / 443.1 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003673/0.5356, allocations: 249.4 kB / 443.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.5367, allocations: 187.4 kB / 443.5 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005934/0.5427, allocations: 2.59 MB / 446.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003836/0.5431, allocations: 0.8206 MB / 447 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005903/0.5437, allocations: 182.7 kB / 447.1 MB, free: 0.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/0.5439, allocations: 149.5 kB / 447.3 MB, free: 464 kB / 350.1 MB Notification: Performance of SimCode: time 1.763e-06/0.544, allocations: 0 / 447.3 MB, free: 464 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08194/0.6259, allocations: 39.33 MB / 486.6 MB, free: 9.219 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000193/0.6261, allocations: 242.5 kB / 486.8 MB, free: 8.977 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.238/4.864, allocations: 0 / 486.8 MB, free: 8.977 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