Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.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_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001358/0.001358, allocations: 99.98 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001403/0.001403, allocations: 197.7 kB / 17.9 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2021/0.2021, allocations: 45.92 MB / 344 MB, free: 12.29 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002437/0.0002437, allocations: 4 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1219, allocations: 63.46 MB / 481.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT): time 0.03536/0.1573, allocations: 33.19 MB / 0.5027 GB, free: 4 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2753/0.4327, allocations: 17.2 MB / 0.5194 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001112/0.4339, allocations: 25.53 kB / 0.5195 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001262/0.4351, allocations: 390.2 kB / 0.5198 GB, free: 11.94 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01297/0.4481, allocations: 4.008 MB / 0.5238 GB, free: 11.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009691/0.4578, allocations: 2.115 MB / 0.5258 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003019/0.4609, allocations: 1.151 MB / 0.5269 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007296/0.4616, allocations: 404.3 kB / 0.5273 GB, free: 11.84 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0136/0.4752, allocations: 6.289 MB / 0.5335 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01311/0.4884, allocations: 8.774 MB / 0.542 GB, free: 8.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002256/0.4887, allocations: 39.94 kB / 0.5421 GB, free: 8.617 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01319/0.5019, allocations: 7.039 MB / 0.549 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003797/0.5023, allocations: 221.7 kB / 0.5492 GB, free: 2.797 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003944/0.5027, allocations: 185.3 kB / 0.5493 GB, free: 2.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006399/0.5091, allocations: 3.381 MB / 0.5526 GB, free: 15.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.5091, allocations: 0 / 0.5526 GB, free: 15.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.5091, allocations: 4 kB / 0.5527 GB, free: 15.42 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.5091, allocations: 0 / 0.5527 GB, free: 15.42 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.004037/0.5132, allocations: 1.468 MB / 0.5541 GB, free: 13.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.5133, allocations: 8.562 kB / 0.5541 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.5134, allocations: 117.7 kB / 0.5542 GB, free: 13.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001402/0.5148, allocations: 214.8 kB / 0.5544 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009411/0.5158, allocations: 0.5267 MB / 0.5549 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/0.516, allocations: 112.4 kB / 0.555 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.957e-05/0.5161, allocations: 67.95 kB / 0.5551 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/0.518, allocations: 1.063 MB / 0.5561 GB, free: 11.68 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.518, allocations: 3.938 kB / 0.5561 GB, free: 11.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.255e-05/0.5181, allocations: 32 kB / 0.5562 GB, free: 11.64 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.419e-05/0.5182, allocations: 44.97 kB / 0.5562 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001572/0.5198, allocations: 0.8154 MB / 0.557 GB, free: 10.79 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.006279/0.5261, allocations: 5.566 MB / 0.5624 GB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001226/0.5273, allocations: 0.5297 MB / 0.563 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.104/0.6313, allocations: 53 MB / 0.6147 GB, free: 8.715 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.279e-05/0.6314, allocations: 50.5 kB / 0.6148 GB, free: 8.656 MB / 462.1 MB Notification: Performance of pre-optimization done (n=39): time 2.404e-06/0.6315, allocations: 0 / 0.6148 GB, free: 8.656 MB / 462.1 MB Notification: Performance of matching and sorting (n=44): time 0.006301/0.6378, allocations: 2.137 MB / 0.6169 GB, free: 6.465 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.6379, allocations: 187.9 kB / 0.617 GB, free: 6.238 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007663/0.6387, allocations: 0.6368 MB / 0.6177 GB, free: 5.598 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 4.731e-05/0.6387, allocations: 37.7 kB / 0.6177 GB, free: 5.555 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002969/0.639, allocations: 393.1 kB / 0.6181 GB, free: 5.172 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.6392, allocations: 170.1 kB / 0.6182 GB, free: 5.008 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-05/0.6392, allocations: 12 kB / 0.6182 GB, free: 4.996 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.6394, allocations: 378.8 kB / 0.6186 GB, free: 4.617 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.6397, allocations: 233.8 kB / 0.6188 GB, free: 4.387 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.6403, allocations: 0.5801 MB / 0.6194 GB, free: 3.637 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004788/0.6408, allocations: 351.5 kB / 0.6197 GB, free: 3.293 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.6408, allocations: 4 kB / 0.6197 GB, free: 3.289 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001342/0.6422, allocations: 0.8877 MB / 0.6206 GB, free: 2.391 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.6422, allocations: 8 kB / 0.6206 GB, free: 2.383 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.6422, allocations: 12 kB / 0.6206 GB, free: 2.371 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003111/0.6453, allocations: 281.3 kB / 0.6209 GB, free: 2.094 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001182/0.6465, allocations: 279.6 kB / 0.6211 GB, free: 1.82 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001692/0.6482, allocations: 2.025 MB / 0.6231 GB, free: 15.64 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006926/0.649, allocations: 55.91 kB / 0.6232 GB, free: 15.59 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.936e-05/0.649, allocations: 44 kB / 0.6232 GB, free: 15.54 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 10 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],volume.medium.phase,shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * 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 {2 1} Notification: Performance of prepare postOptimizeDAE: time 0.000443/0.6495, allocations: 274.4 kB / 0.6235 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.6496, allocations: 71.16 kB / 0.6235 GB, free: 15.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002365/0.652, allocations: 2.026 MB / 0.6255 GB, free: 13.15 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.612e-05/0.652, allocations: 23.95 kB / 0.6255 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.652, allocations: 4 kB / 0.6256 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.6521, allocations: 0 / 0.6256 GB, free: 13.12 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003833/0.6559, allocations: 3 MB / 0.6285 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.6559, allocations: 3.984 kB / 0.6285 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009089/0.6568, allocations: 187.8 kB / 0.6287 GB, free: 9.875 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001706/0.6586, allocations: 303.9 kB / 0.629 GB, free: 9.574 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.057e-05/0.6586, allocations: 12 kB / 0.629 GB, free: 9.562 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/0.6603, allocations: 2.085 MB / 0.631 GB, free: 7.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.6603, allocations: 0 / 0.631 GB, free: 7.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002398/0.6627, allocations: 1.966 MB / 0.6329 GB, free: 5.316 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005055/0.6633, allocations: 279.3 kB / 0.6332 GB, free: 5.023 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.6634, allocations: 16.12 kB / 0.6332 GB, free: 5.008 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004709/0.6639, allocations: 35.88 kB / 0.6332 GB, free: 4.973 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.005e-05/0.6639, allocations: 28.41 kB / 0.6333 GB, free: 4.945 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.993e-05/0.664, allocations: 23.98 kB / 0.6333 GB, free: 4.922 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008066/0.6648, allocations: 0.5693 MB / 0.6338 GB, free: 4.359 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6648, allocations: 0 / 0.6338 GB, free: 4.359 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003965/0.6688, allocations: 1.101 MB / 0.6349 GB, free: 3.258 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 12 ($cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008277/0.6771, allocations: 3.75 MB / 0.6386 GB, free: 15.58 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.6794, allocations: 0.9168 MB / 0.6395 GB, free: 14.66 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.013e-06/0.6795, allocations: 0 / 0.6395 GB, free: 14.66 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.6808, allocations: 0.6516 MB / 0.6401 GB, free: 14.02 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/0.6831, allocations: 373.7 kB / 0.6405 GB, free: 13.66 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/0.698, allocations: 13.6 MB / 0.6538 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007038/0.6988, allocations: 1.116 MB / 0.6548 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009665/0.6998, allocations: 346.2 kB / 0.6552 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004875/0.7003, allocations: 383.3 kB / 0.6555 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of SimCode: time 1.072e-06/0.7003, allocations: 0 / 0.6555 GB, free: 13.91 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09137/0.7917, allocations: 54.72 MB / 0.709 GB, free: 7.457 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.7919, allocations: 274.9 kB / 0.7092 GB, free: 7.102 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.57/5.362, allocations: 0 / 0.7092 GB, free: 7.102 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97_pT.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97_pT_res.mat does not exist to compare? outputFormat=mat