Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_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.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_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.001035/0.001035, allocations: 95.09 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009789/0.0009789, allocations: 205.1 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.394/1.394, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2197/0.2197, allocations: 45.92 MB / 344 MB, free: 12.09 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000318/0.0003181, allocations: 12 kB / 418.1 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1604/0.1607, allocations: 63.47 MB / 481.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.03778/0.1985, allocations: 33.19 MB / 0.5027 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2761/0.4746, allocations: 17.19 MB / 0.5194 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000982/0.4756, allocations: 25.78 kB / 0.5195 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001258/0.4769, allocations: 391 kB / 0.5198 GB, free: 12.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01329/0.4902, allocations: 4.01 MB / 0.5238 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007246/0.4975, allocations: 2.11 MB / 0.5258 GB, free: 12.03 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00222/0.4997, allocations: 1.166 MB / 0.527 GB, free: 12.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008125/0.5005, allocations: 418.8 kB / 0.5274 GB, free: 11.98 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01328/0.5138, allocations: 6.31 MB / 0.5335 GB, free: 11.88 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01206/0.5259, allocations: 8.782 MB / 0.5421 GB, free: 8.781 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001825/0.5261, allocations: 36 kB / 0.5421 GB, free: 8.746 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01324/0.5394, allocations: 7.18 MB / 0.5491 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004083/0.5398, allocations: 234.1 kB / 0.5494 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004391/0.5403, allocations: 189.3 kB / 0.5495 GB, free: 2.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006588/0.5469, allocations: 3.476 MB / 0.5529 GB, free: 15.18 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.5469, allocations: 7.938 kB / 0.5529 GB, free: 15.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5469, allocations: 0 / 0.5529 GB, free: 15.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.5469, 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.003834/0.5508, allocations: 1.501 MB / 0.5544 GB, free: 13.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.5508, allocations: 8.562 kB / 0.5544 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001492/0.551, allocations: 110.5 kB / 0.5545 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002041/0.553, allocations: 317.4 kB / 0.5548 GB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009097/0.554, allocations: 0.5456 MB / 0.5554 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.5541, allocations: 116.2 kB / 0.5555 GB, free: 12.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.366e-05/0.5542, allocations: 67.89 kB / 0.5555 GB, free: 12.44 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002227/0.5564, allocations: 1.159 MB / 0.5567 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.174e-05/0.5565, allocations: 3.938 kB / 0.5567 GB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.992e-05/0.5565, allocations: 35.59 kB / 0.5567 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.555e-05/0.5566, allocations: 45.3 kB / 0.5567 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00157/0.5582, allocations: 0.8362 MB / 0.5576 GB, free: 10.28 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.005848/0.564, allocations: 5.508 MB / 0.5629 GB, free: 4.434 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.5653, allocations: 0.577 MB / 0.5635 GB, free: 3.84 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1262/0.6915, allocations: 51.74 MB / 0.614 GB, free: 9.77 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.794e-05/0.6916, allocations: 42.56 kB / 0.6141 GB, free: 9.719 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 3.046e-06/0.6917, allocations: 0 / 0.6141 GB, free: 9.719 MB / 462.1 MB Notification: Performance of matching and sorting (n=46): time 0.007971/0.6996, allocations: 1.941 MB / 0.616 GB, free: 7.719 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/0.6998, allocations: 162.2 kB / 0.6161 GB, free: 7.523 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001072/0.7008, allocations: 0.6158 MB / 0.6167 GB, free: 6.906 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.555e-05/0.7009, allocations: 33.7 kB / 0.6168 GB, free: 6.867 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003729/0.7013, allocations: 393.9 kB / 0.6171 GB, free: 6.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001879/0.7015, allocations: 169.4 kB / 0.6173 GB, free: 6.316 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.231e-05/0.7016, allocations: 12 kB / 0.6173 GB, free: 6.305 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000246/0.7018, allocations: 386.7 kB / 0.6177 GB, free: 5.918 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005563/0.7024, allocations: 217.9 kB / 0.6179 GB, free: 5.707 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008592/0.7033, allocations: 0.5656 MB / 0.6184 GB, free: 4.977 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007198/0.704, allocations: 324.6 kB / 0.6187 GB, free: 4.664 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.704, allocations: 7.938 kB / 0.6188 GB, free: 4.656 MB / 462.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002006/0.706, allocations: 0.863 MB / 0.6196 GB, free: 3.781 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.757e-05/0.7061, allocations: 12 kB / 0.6196 GB, free: 3.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.91e-05/0.7061, allocations: 11.94 kB / 0.6196 GB, free: 3.758 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004335/0.7065, allocations: 70.45 kB / 0.6197 GB, free: 3.688 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001761/0.7083, allocations: 287.5 kB / 0.62 GB, free: 3.406 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001976/0.7103, allocations: 1.974 MB / 0.6219 GB, free: 1.281 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009509/0.7113, allocations: 60.22 kB / 0.6219 GB, free: 1.223 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.912e-05/0.7114, allocations: 43.98 kB / 0.622 GB, free: 1.18 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.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.0005477/0.7119, allocations: 278.8 kB / 0.6223 GB, free: 0.8984 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000214/0.7122, allocations: 75.11 kB / 0.6223 GB, free: 0.8242 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003739/0.7159, allocations: 2.22 MB / 0.6245 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.153e-05/0.716, allocations: 31.95 kB / 0.6245 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.716, allocations: 3.938 kB / 0.6245 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.716, allocations: 7.984 kB / 0.6245 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005808/0.7218, allocations: 3.291 MB / 0.6278 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.256e-06/0.7219, allocations: 4 kB / 0.6278 GB, free: 11.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001458/0.7234, allocations: 187.8 kB / 0.6279 GB, free: 11.02 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006189/0.724, allocations: 96.67 kB / 0.628 GB, free: 10.93 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.613e-05/0.7241, allocations: 12 kB / 0.628 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/0.7261, allocations: 1.999 MB / 0.63 GB, free: 8.754 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.7261, allocations: 0 / 0.63 GB, free: 8.754 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003416/0.7295, allocations: 1.995 MB / 0.6319 GB, free: 6.727 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006588/0.7302, allocations: 279.3 kB / 0.6322 GB, free: 6.434 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.7304, allocations: 15.98 kB / 0.6322 GB, free: 6.418 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009287/0.7313, allocations: 63.86 kB / 0.6323 GB, free: 6.355 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.7314, allocations: 32.39 kB / 0.6323 GB, free: 6.324 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.75e-05/0.7315, allocations: 19.98 kB / 0.6323 GB, free: 6.305 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.000984/0.7325, allocations: 0.5068 MB / 0.6328 GB, free: 5.801 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7325, allocations: 0 / 0.6328 GB, free: 5.801 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003351/0.7359, allocations: 1.085 MB / 0.6339 GB, free: 4.715 MB / 478.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: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.006383/0.7423, allocations: 3.759 MB / 0.6376 GB, free: 1.035 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001794/0.7441, allocations: 0.9233 MB / 0.6385 GB, free: 116 kB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.7441, allocations: 4 kB / 0.6385 GB, free: 112 kB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001201/0.7453, allocations: 0.6848 MB / 0.6391 GB, free: 15.43 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0018/0.7471, allocations: 353.9 kB / 0.6395 GB, free: 15.09 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.7584, allocations: 13.16 MB / 0.6523 GB, free: 1.645 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007371/0.7592, allocations: 1.137 MB / 0.6534 GB, free: 496 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001048/0.7602, allocations: 456.1 kB / 0.6539 GB, free: 40 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005238/0.7608, allocations: 397 kB / 0.6542 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of SimCode: time 1.092e-06/0.7608, allocations: 0 / 0.6542 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09062/0.8514, allocations: 55.53 MB / 0.7085 GB, free: 8.414 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002688/0.8517, allocations: 290.1 kB / 0.7088 GB, free: 8.047 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.498/5.35, allocations: 0 / 0.7088 GB, free: 8.047 MB / 0.545 GB (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Water_WaterIF97OnePhase_ph.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph_res.mat does not exist to compare? outputFormat=mat