Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.0009298/0.0009299, allocations: 98.77 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009658/0.000966, allocations: 205.9 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2032/0.2032, allocations: 45.92 MB / 344 MB, free: 12.07 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003661/0.0003662, allocations: 8 kB / 418.1 MB, free: 20.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1543/0.1547, allocations: 63.46 MB / 481.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph): time 0.03285/0.1876, allocations: 33.19 MB / 0.5027 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2918/0.4794, allocations: 17.2 MB / 0.5194 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001081/0.4806, allocations: 22.41 kB / 0.5195 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.4818, allocations: 394.9 kB / 0.5198 GB, free: 11.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01339/0.4952, allocations: 4.011 MB / 0.5238 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007921/0.5032, allocations: 2.111 MB / 0.5258 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002736/0.5059, allocations: 1.157 MB / 0.527 GB, free: 11.73 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008127/0.5067, allocations: 412 kB / 0.5273 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01272/0.5195, allocations: 6.301 MB / 0.5335 GB, free: 11.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01225/0.5318, allocations: 8.771 MB / 0.5421 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002092/0.532, allocations: 39.52 kB / 0.5421 GB, free: 8.445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0143/0.5463, allocations: 7.183 MB / 0.5491 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005393/0.5469, allocations: 231.4 kB / 0.5493 GB, free: 2.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004874/0.5474, allocations: 187.9 kB / 0.5495 GB, free: 2.426 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007103/0.5545, allocations: 3.465 MB / 0.5529 GB, free: 15.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5546, allocations: 0 / 0.5529 GB, free: 15.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.5546, allocations: 0 / 0.5529 GB, free: 15.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.5546, allocations: 0 / 0.5529 GB, free: 15.17 MB / 398.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.004104/0.5587, allocations: 1.547 MB / 0.5544 GB, free: 13.58 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.5587, allocations: 12.56 kB / 0.5544 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001566/0.5589, allocations: 110.5 kB / 0.5545 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00212/0.561, allocations: 318.2 kB / 0.5548 GB, free: 13.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009508/0.562, allocations: 0.5417 MB / 0.5554 GB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.5621, allocations: 116.7 kB / 0.5555 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.89e-05/0.5622, allocations: 59 kB / 0.5555 GB, free: 12.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00242/0.5647, allocations: 1.215 MB / 0.5567 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.5647, allocations: 3.938 kB / 0.5567 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.562e-05/0.5648, allocations: 28 kB / 0.5567 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.653e-05/0.5648, allocations: 37.3 kB / 0.5568 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002452/0.5673, allocations: 1.063 MB / 0.5578 GB, free: 9.965 MB / 398.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.006328/0.5737, allocations: 5.634 MB / 0.5633 GB, free: 3.996 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002266/0.5759, allocations: 0.795 MB / 0.5641 GB, free: 3.184 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03289/0.6089, allocations: 17.41 MB / 0.5811 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/0.6089, allocations: 42.56 kB / 0.5811 GB, free: 15.57 MB / 430.1 MB Notification: Performance of pre-optimization done (n=45): time 2.314e-06/0.6089, allocations: 0 / 0.5811 GB, free: 15.57 MB / 430.1 MB Notification: Performance of matching and sorting (n=49): time 0.0067/0.6157, allocations: 2.367 MB / 0.5835 GB, free: 13.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.816e-05/0.6158, allocations: 170.6 kB / 0.5836 GB, free: 12.94 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007368/0.6165, allocations: 0.6015 MB / 0.5842 GB, free: 12.33 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.075e-05/0.6166, allocations: 37.7 kB / 0.5842 GB, free: 12.29 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002545/0.6168, allocations: 386.5 kB / 0.5846 GB, free: 11.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001249/0.617, allocations: 173 kB / 0.5848 GB, free: 11.74 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.554e-05/0.617, allocations: 16 kB / 0.5848 GB, free: 11.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.6172, allocations: 378.8 kB / 0.5852 GB, free: 11.35 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005884/0.6178, allocations: 289.8 kB / 0.5854 GB, free: 11.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008071/0.6186, allocations: 0.6134 MB / 0.586 GB, free: 10.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006855/0.6193, allocations: 382.2 kB / 0.5864 GB, free: 9.926 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.6193, allocations: 3.938 kB / 0.5864 GB, free: 9.922 MB / 430.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00175/0.6211, allocations: 0.9802 MB / 0.5874 GB, free: 8.93 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/0.6211, allocations: 8 kB / 0.5874 GB, free: 8.922 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.732e-05/0.6211, allocations: 18.3 kB / 0.5874 GB, free: 8.906 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002842/0.6214, allocations: 65.31 kB / 0.5874 GB, free: 8.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001254/0.6227, allocations: 315.5 kB / 0.5877 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001503/0.6242, allocations: 1.982 MB / 0.5897 GB, free: 6.398 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006941/0.6249, allocations: 88.14 kB / 0.5898 GB, free: 6.312 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.778e-05/0.625, allocations: 47.94 kB / 0.5898 GB, free: 6.266 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.0004139/0.6254, allocations: 277.4 kB / 0.5901 GB, free: 5.984 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001235/0.6256, allocations: 71.16 kB / 0.5901 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003033/0.6286, allocations: 2.602 MB / 0.5927 GB, free: 3.305 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-05/0.6286, allocations: 35.94 kB / 0.5927 GB, free: 3.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.194e-06/0.6286, allocations: 0 / 0.5927 GB, free: 3.27 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.6287, allocations: 0 / 0.5927 GB, free: 3.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004392/0.6331, allocations: 3.804 MB / 0.5964 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.6331, allocations: 3.938 kB / 0.5964 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001103/0.6342, allocations: 240.3 kB / 0.5967 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003896/0.6346, allocations: 84.78 kB / 0.5967 GB, free: 15.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.984e-05/0.6346, allocations: 15.98 kB / 0.5968 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001411/0.6361, allocations: 2.003 MB / 0.5987 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.6361, allocations: 3.984 kB / 0.5987 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002955/0.639, allocations: 2.39 MB / 0.6011 GB, free: 10.49 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/0.6395, allocations: 334.9 kB / 0.6014 GB, free: 10.14 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.865e-05/0.6396, allocations: 12.06 kB / 0.6014 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005223/0.6402, allocations: 63.86 kB / 0.6014 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.6403, allocations: 44.48 kB / 0.6015 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.6403, allocations: 23.98 kB / 0.6015 GB, free: 10 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007177/0.6411, allocations: 0.5537 MB / 0.602 GB, free: 9.449 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6411, allocations: 0 / 0.602 GB, free: 9.449 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003495/0.6446, allocations: 1.101 MB / 0.6031 GB, free: 8.348 MB / 446.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.008686/0.6533, allocations: 4.126 MB / 0.6072 GB, free: 4.289 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002519/0.6558, allocations: 1.108 MB / 0.6082 GB, free: 3.184 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.6559, allocations: 0 / 0.6082 GB, free: 3.184 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001479/0.6574, allocations: 0.8168 MB / 0.609 GB, free: 2.367 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002012/0.6594, allocations: 374.1 kB / 0.6094 GB, free: 2.008 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01211/0.6715, allocations: 13.31 MB / 0.6224 GB, free: 4.438 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000631/0.6722, allocations: 1.185 MB / 0.6235 GB, free: 3.227 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0009837/0.6732, allocations: 434.8 kB / 0.624 GB, free: 2.801 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000461/0.6736, allocations: 447.3 kB / 0.6244 GB, free: 2.367 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.6737, allocations: 0 / 0.6244 GB, free: 2.367 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0902/0.7639, allocations: 57.2 MB / 0.6802 GB, free: 9.438 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002172/0.7641, allocations: 271.8 kB / 0.6805 GB, free: 9.082 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.665/5.429, allocations: 0 / 0.6805 GB, free: 9.082 MB / 0.5137 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_ph_res.mat does not exist to compare? outputFormat=mat