Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_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.0009704/0.0009704, allocations: 93.31 kB / 16.94 MB, free: 5.98 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.001145/0.001145, allocations: 181.7 kB / 17.83 MB, free: 5.648 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.54/1.54, 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.0004527/0.0004531, allocations: 12.2 kB / 280.9 MB, free: 3.637 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09866/0.09912, allocations: 47.57 MB / 328.4 MB, free: 3.996 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph): time 0.02795/0.1271, allocations: 27.27 MB / 355.7 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01618/0.1434, allocations: 13.35 MB / 369.1 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003675/0.1438, allocations: 7.938 kB / 369.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000758/0.1446, allocations: 231 kB / 369.3 MB, free: 11.04 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005317/0.1451, allocations: 255.3 kB / 369.5 MB, free: 10.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01409/0.1592, allocations: 4.519 MB / 374.1 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009279/0.1601, allocations: 0.5582 MB / 374.6 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002051/0.1604, allocations: 77.02 kB / 374.7 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005746/0.1661, allocations: 3.282 MB / 378 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002809/0.1664, allocations: 203.2 kB / 378.2 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.933e-05/0.1665, allocations: 20 kB / 378.2 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2507/0.4172, allocations: 5.92 MB / 384.1 MB, free: 16.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003332/0.4176, allocations: 84.28 kB / 384.2 MB, free: 16.73 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002786/0.4179, allocations: 104.6 kB / 384.3 MB, free: 16.7 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009807/0.4277, allocations: 2.574 MB / 386.9 MB, free: 16.61 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.4277, allocations: 3.188 kB / 386.9 MB, free: 16.61 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.675e-06/0.4277, allocations: 0.625 kB / 386.9 MB, free: 16.61 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.4278, allocations: 1.031 kB / 386.9 MB, free: 16.61 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.005197/0.433, allocations: 0.9448 MB / 387.8 MB, free: 16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.042e-05/0.4331, allocations: 9.188 kB / 387.8 MB, free: 16 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001084/0.4332, allocations: 68.77 kB / 387.9 MB, free: 15.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002202/0.4354, allocations: 162.5 kB / 388.1 MB, free: 15.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005335/0.4359, allocations: 308.9 kB / 388.4 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.958e-05/0.436, allocations: 27.84 kB / 388.4 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.488e-05/0.4361, allocations: 34.84 kB / 388.4 MB, free: 15.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002122/0.4382, allocations: 0.5689 MB / 389 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.181e-05/0.4383, allocations: 4.453 kB / 389 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.339e-05/0.4383, allocations: 11.38 kB / 389 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.4383, allocations: 8.125 kB / 389 MB, free: 15.62 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00231/0.4407, allocations: 0.5379 MB / 389.5 MB, free: 15.61 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.003817/0.4445, allocations: 2.625 MB / 392.2 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.4468, allocations: 484 kB / 392.6 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009764/0.4478, allocations: 0.5635 MB / 393.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.4479, allocations: 37.5 kB / 393.2 MB, free: 13.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 3.116e-06/0.4479, allocations: 0 / 393.2 MB, free: 13.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=34): time 0.006715/0.4546, allocations: 1.608 MB / 394.9 MB, free: 12.63 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.4547, allocations: 54 kB / 394.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003666/0.4551, allocations: 253.4 kB / 395.2 MB, free: 12.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.4551, allocations: 30.98 kB / 395.2 MB, free: 12.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.4552, allocations: 179.7 kB / 395.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.527e-05/0.4553, allocations: 115.6 kB / 395.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.682e-05/0.4554, allocations: 9.25 kB / 395.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.142e-05/0.4555, allocations: 341.1 kB / 395.8 MB, free: 11.91 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005203/0.456, allocations: 147.6 kB / 396 MB, free: 11.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006161/0.4566, allocations: 251.6 kB / 396.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006364/0.4573, allocations: 175 kB / 396.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4573, allocations: 1.375 kB / 396.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00183/0.4591, allocations: 0.5344 MB / 396.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.629e-05/0.4592, allocations: 6.875 kB / 396.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.137e-05/0.4592, allocations: 2.75 kB / 396.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005633/0.4598, allocations: 121.3 kB / 397 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003646/0.4601, allocations: 92.31 kB / 397.1 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001572/0.4617, allocations: 2.421 MB / 399.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004795/0.4622, allocations: 54.14 kB / 399.6 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.4623, allocations: 20.77 kB / 399.6 MB, free: 9.375 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 3 (volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 1,1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002718/0.4626, allocations: 169.4 kB / 399.8 MB, free: 9.254 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.4627, allocations: 31.03 kB / 399.8 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002074/0.4648, allocations: 1.371 MB / 401.2 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.99e-05/0.4648, allocations: 15.17 kB / 401.2 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.4648, allocations: 0 / 401.2 MB, free: 9.066 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00159/0.4664, allocations: 1.466 MB / 402.7 MB, free: 8.543 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.4692, allocations: 2.141 MB / 404.8 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.4692, allocations: 0 / 404.8 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.4697, allocations: 108.3 kB / 404.9 MB, free: 8.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003919/0.4701, allocations: 74.09 kB / 405 MB, free: 8.078 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.978e-05/0.4701, allocations: 14.44 kB / 405 MB, free: 8.074 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002721/0.4704, allocations: 0.5877 MB / 405.6 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4704, allocations: 0 / 405.6 MB, free: 7.559 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001909/0.4723, allocations: 1.316 MB / 406.9 MB, free: 7.344 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002925/0.4727, allocations: 167.6 kB / 407.1 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.272e-05/0.4727, allocations: 11.19 kB / 407.1 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003774/0.4731, allocations: 38.16 kB / 407.1 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.4732, allocations: 33.59 kB / 407.1 MB, free: 7.199 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-05/0.4733, allocations: 17.91 kB / 407.2 MB, free: 7.199 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003479/0.4736, allocations: 231.5 kB / 407.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.964e-06/0.4736, allocations: 0 / 407.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00565/0.4793, allocations: 0.8583 MB / 408.3 MB, free: 7.035 MB / 318.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: 11 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,volume.medium.phase,fixedMassFlowRate.medium.phase,ambient.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.01036/0.4897, allocations: 2.726 MB / 411 MB, free: 6.164 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.4914, allocations: 0.6712 MB / 411.6 MB, free: 6.031 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.4914, allocations: 0 / 411.6 MB, free: 6.031 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006451/0.492, allocations: 425.1 kB / 412.1 MB, free: 6.023 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001164/0.4932, allocations: 185.2 kB / 412.2 MB, free: 6.012 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007755/0.501, allocations: 4.97 MB / 417.2 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.5014, allocations: 0.8854 MB / 418.1 MB, free: 2 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004219/0.5018, allocations: 153.4 kB / 418.2 MB, free: 1.934 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.502, allocations: 191.1 kB / 418.4 MB, free: 1.91 MB / 318.1 MB Notification: Performance of SimCode: time 1.323e-06/0.502, allocations: 0 / 418.4 MB, free: 1.91 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07612/0.5782, allocations: 40.94 MB / 459.4 MB, free: 9.32 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/0.5784, allocations: 231.6 kB / 459.6 MB, free: 9.074 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.146/4.724, allocations: 0 / 459.6 MB, free: 9.074 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Media_Examples_Tests_MediaTestModels_Water_WaterIF97_ph.fmu > Modelica_3.2.3_Modelica.Media.Examples.Tests.MediaTestModels.Water.WaterIF97_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.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat