Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_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.001248/0.001248, allocations: 98.23 kB / 15.69 MB, free: 488 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 174.4 kB / 16.56 MB, free: 6.375 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.894/1.894, allocations: 205.4 MB / 222.7 MB, free: 5.68 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4465/0.4465, allocations: 43.55 MB / 314.5 MB, free: 8.766 MB / 254.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.0006615/0.0006616, allocations: 12 kB / 384 MB, free: 7.914 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1357, allocations: 58.85 MB / 442.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.2811/0.4169, allocations: 33.11 MB / 476 MB, free: 31.54 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0187/0.4356, allocations: 17.21 MB / 493.2 MB, free: 19.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001448/0.4372, allocations: 28.94 kB / 493.2 MB, free: 19.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001385/0.4386, allocations: 392.1 kB / 493.6 MB, free: 19.33 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.014/0.4526, allocations: 3.992 MB / 497.6 MB, free: 17.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00782/0.4604, allocations: 2.1 MB / 499.7 MB, free: 16.2 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00244/0.4629, allocations: 1.165 MB / 0.4891 GB, free: 15.61 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000818/0.4637, allocations: 421.1 kB / 0.4895 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01396/0.4777, allocations: 6.293 MB / 0.4956 GB, free: 14.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01612/0.4939, allocations: 8.768 MB / 0.5042 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002404/0.4942, allocations: 40.66 kB / 0.5042 GB, free: 13.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01655/0.5107, allocations: 7.171 MB / 0.5112 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000609/0.5114, allocations: 231.3 kB / 0.5115 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005257/0.5119, allocations: 185.3 kB / 0.5116 GB, free: 9.695 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008624/0.5205, allocations: 3.458 MB / 0.515 GB, free: 6.238 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.5206, allocations: 0 / 0.515 GB, free: 6.238 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5206, allocations: 4 kB / 0.515 GB, free: 6.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.897e-05/0.5207, allocations: 0 / 0.515 GB, free: 6.234 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.005371/0.526, allocations: 1.539 MB / 0.5165 GB, free: 4.648 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.5261, allocations: 12.03 kB / 0.5165 GB, free: 4.637 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002143/0.5263, allocations: 113.6 kB / 0.5166 GB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002081/0.5284, allocations: 314.7 kB / 0.5169 GB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009474/0.5294, allocations: 0.5394 MB / 0.5175 GB, free: 3.633 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001271/0.5295, allocations: 112.7 kB / 0.5176 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001085/0.5296, allocations: 63.94 kB / 0.5176 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002225/0.5319, allocations: 1.214 MB / 0.5188 GB, free: 2.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.423e-05/0.5319, allocations: 7.938 kB / 0.5188 GB, free: 2.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-05/0.532, allocations: 28 kB / 0.5189 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.564e-05/0.532, allocations: 41.3 kB / 0.5189 GB, free: 2.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002202/0.5343, allocations: 1.059 MB / 0.5199 GB, free: 1 MB / 382.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.006727/0.541, allocations: 5.632 MB / 0.5254 GB, free: 11 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002498/0.5435, allocations: 0.794 MB / 0.5262 GB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03383/0.5774, allocations: 15.98 MB / 0.5418 GB, free: 8.332 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.66e-05/0.5775, allocations: 47.27 kB / 0.5419 GB, free: 8.277 MB / 414.1 MB Notification: Performance of pre-optimization done (n=45): time 2.695e-06/0.5775, allocations: 0 / 0.5419 GB, free: 8.277 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.007195/0.5847, allocations: 2.371 MB / 0.5442 GB, free: 5.852 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.612e-05/0.5848, allocations: 166.6 kB / 0.5443 GB, free: 5.652 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007446/0.5856, allocations: 0.6015 MB / 0.5449 GB, free: 5.043 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 8.82e-05/0.5857, allocations: 37.7 kB / 0.545 GB, free: 5 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003457/0.586, allocations: 383.3 kB / 0.5453 GB, free: 4.617 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000153/0.5862, allocations: 177.5 kB / 0.5455 GB, free: 4.441 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.331e-05/0.5862, allocations: 16 kB / 0.5455 GB, free: 4.426 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001748/0.5864, allocations: 378.8 kB / 0.5459 GB, free: 4.047 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006056/0.587, allocations: 289.8 kB / 0.5462 GB, free: 3.762 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008513/0.5879, allocations: 0.6083 MB / 0.5467 GB, free: 3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007289/0.5886, allocations: 380.5 kB / 0.5471 GB, free: 2.625 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.5886, allocations: 8 kB / 0.5471 GB, free: 2.617 MB / 414.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001916/0.5906, allocations: 0.9802 MB / 0.5481 GB, free: 1.625 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.787e-05/0.5906, allocations: 8 kB / 0.5481 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.5906, allocations: 12 kB / 0.5481 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003396/0.591, allocations: 64.83 kB / 0.5482 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001297/0.5923, allocations: 314.7 kB / 0.5485 GB, free: 1.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001717/0.594, allocations: 1.988 MB / 0.5504 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007187/0.5947, allocations: 84.14 kB / 0.5505 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-05/0.5948, allocations: 47.94 kB / 0.5505 GB, free: 14.96 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 10 (volume.heatTransfer.states[1].phase,fixedMassFlowRate.medium.phase,ambient.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * 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: 1 * 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: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004711/0.5953, allocations: 273.4 kB / 0.5508 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001463/0.5955, allocations: 71.16 kB / 0.5509 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00347/0.5989, allocations: 2.609 MB / 0.5534 GB, free: 12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-05/0.599, allocations: 31.95 kB / 0.5534 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.599, allocations: 0 / 0.5534 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.599, allocations: 3.984 kB / 0.5534 GB, free: 11.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004953/0.604, allocations: 3.803 MB / 0.5571 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.63e-06/0.604, allocations: 0 / 0.5571 GB, free: 8.082 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.6051, allocations: 239.7 kB / 0.5574 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004161/0.6056, allocations: 88.77 kB / 0.5575 GB, free: 7.758 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.337e-05/0.6056, allocations: 16 kB / 0.5575 GB, free: 7.742 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001646/0.6073, allocations: 1.999 MB / 0.5594 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.6073, allocations: 0 / 0.5594 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003233/0.6105, allocations: 2.394 MB / 0.5618 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005381/0.6111, allocations: 330.9 kB / 0.5621 GB, free: 2.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.6112, allocations: 16.94 kB / 0.5621 GB, free: 2.805 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005308/0.6118, allocations: 59.86 kB / 0.5622 GB, free: 2.746 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001335/0.6119, allocations: 44.48 kB / 0.5622 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.593e-05/0.612, allocations: 23.98 kB / 0.5622 GB, free: 2.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0007942/0.6128, allocations: 0.5498 MB / 0.5628 GB, free: 2.125 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6128, allocations: 0 / 0.5628 GB, free: 2.125 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003653/0.6164, allocations: 1.097 MB / 0.5638 GB, free: 1.027 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 21 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,volume.heatTransfer.states[1].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 (58): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008289/0.6247, allocations: 4.141 MB / 0.5679 GB, free: 12.87 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002615/0.6274, allocations: 1.104 MB / 0.569 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.6274, allocations: 0 / 0.569 GB, free: 11.77 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001552/0.629, allocations: 0.8168 MB / 0.5697 GB, free: 10.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002107/0.6311, allocations: 372.7 kB / 0.5701 GB, free: 10.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01519/0.6463, allocations: 13.3 MB / 0.5831 GB, free: 13.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000842/0.6472, allocations: 1.185 MB / 0.5842 GB, free: 11.81 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001123/0.6483, allocations: 444.3 kB / 0.5847 GB, free: 11.38 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005362/0.6489, allocations: 439.3 kB / 0.5851 GB, free: 10.95 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6489, allocations: 0 / 0.5851 GB, free: 10.95 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3099/0.9588, allocations: 57.09 MB / 0.6408 GB, free: 145.7 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002374/0.9591, allocations: 278.5 kB / 0.6411 GB, free: 145.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.014/5.973, allocations: 0 / 0.6411 GB, free: 145.4 MB / 494.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat