Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",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.0011/0.0011, allocations: 94.41 kB / 16.3 MB, free: 5.996 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.001192/0.001192, allocations: 181.2 kB / 17.19 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002527/0.0002527, allocations: 8.094 kB / 300.8 MB, free: 5.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09769/0.09796, allocations: 50.42 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002698/0.1007, allocations: 2.183 MB / 353.4 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1021, allocations: 0.7367 MB / 354.1 MB, free: 8.711 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.1022, allocations: 4 kB / 354.1 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1024, allocations: 47.66 kB / 354.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002995/0.1027, allocations: 159.6 kB / 354.3 MB, free: 8.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.1028, allocations: 67.8 kB / 354.4 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004395/0.1033, allocations: 303.7 kB / 354.7 MB, free: 8.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001705/0.1035, allocations: 78.19 kB / 354.8 MB, free: 8.059 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.1036, allocations: 139.5 kB / 354.9 MB, free: 7.922 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001889/0.1038, allocations: 151.4 kB / 355.1 MB, free: 7.773 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.202e-05/0.1039, allocations: 20 kB / 355.1 MB, free: 7.754 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.974e-05/0.1039, allocations: 20 kB / 355.1 MB, free: 7.734 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.54e-05/0.104, allocations: 55.75 kB / 355.2 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.172e-05/0.1041, allocations: 97.52 kB / 355.3 MB, free: 7.578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002663/0.1044, allocations: 295.1 kB / 355.5 MB, free: 7.289 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.544e-06/0.1044, allocations: 0 / 355.5 MB, free: 7.289 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1044, allocations: 0 / 355.5 MB, free: 7.289 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1044, allocations: 4 kB / 355.5 MB, free: 7.285 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009858/0.1054, allocations: 0.6132 MB / 356.2 MB, free: 6.617 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1054, allocations: 12.03 kB / 356.2 MB, free: 6.605 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001029/0.1055, allocations: 67 kB / 356.2 MB, free: 6.531 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.765e-05/0.1056, allocations: 47.53 kB / 356.3 MB, free: 6.484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003261/0.106, allocations: 278.4 kB / 356.6 MB, free: 6.176 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.738e-05/0.1061, allocations: 54.19 kB / 356.6 MB, free: 6.117 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.2e-05/0.1061, allocations: 27.91 kB / 356.6 MB, free: 6.09 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005023/0.1066, allocations: 335.3 kB / 357 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.1067, allocations: 0 / 357 MB, free: 5.723 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.1067, allocations: 12 kB / 357 MB, free: 5.711 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.1067, allocations: 12 kB / 357 MB, free: 5.699 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000436/0.1071, allocations: 214.1 kB / 357.2 MB, free: 5.492 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.1085, allocations: 0.8264 MB / 358 MB, free: 4.613 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000674/0.1092, allocations: 299 kB / 358.3 MB, free: 4.312 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.962e-05/0.1092, allocations: 7.984 kB / 358.3 MB, free: 4.305 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.1093, allocations: 38.56 kB / 358.4 MB, free: 4.258 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.363e-06/0.1093, allocations: 0 / 358.4 MB, free: 4.258 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.000995/0.1103, allocations: 491.7 kB / 358.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001377/0.1104, allocations: 316.4 kB / 359.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.1107, allocations: 263 kB / 359.4 MB, free: 3.098 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.1107, allocations: 29.7 kB / 359.4 MB, free: 3.062 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.1108, allocations: 180.6 kB / 359.6 MB, free: 2.879 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.828e-05/0.1109, allocations: 110.5 kB / 359.7 MB, free: 2.77 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.508e-05/0.111, allocations: 4 kB / 359.7 MB, free: 2.766 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.1111, allocations: 338.8 kB / 360.1 MB, free: 2.426 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.1113, allocations: 95.95 kB / 360.1 MB, free: 2.332 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003362/0.1117, allocations: 204.2 kB / 360.3 MB, free: 2.086 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002382/0.1119, allocations: 151 kB / 360.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1119, allocations: 0 / 360.5 MB, free: 1.934 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005999/0.1125, allocations: 377.9 kB / 360.9 MB, free: 1.551 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.262e-05/0.1126, allocations: 33.7 kB / 360.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.1126, allocations: 0 / 360.9 MB, free: 1.512 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001387/0.1127, allocations: 36.84 kB / 360.9 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009539/0.1137, allocations: 211.8 kB / 361.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003424/0.1171, allocations: 3.102 MB / 364.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003002/0.1174, allocations: 39.88 kB / 364.3 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.681e-05/0.1175, allocations: 12 kB / 364.3 MB, free: 13.85 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001879/0.1177, allocations: 157.7 kB / 364.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.156e-05/0.1177, allocations: 35.61 kB / 364.5 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.819e-05/0.1178, allocations: 39.08 kB / 364.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.466e-06/0.1178, allocations: 4 kB / 364.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1178, allocations: 0 / 364.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006732/0.1185, allocations: 0.6588 MB / 365.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004273/0.119, allocations: 381.2 kB / 365.6 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.768e-06/0.119, allocations: 4 kB / 365.6 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001256/0.1202, allocations: 251.8 kB / 365.8 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.833e-05/0.1203, allocations: 20.86 kB / 365.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.249e-05/0.1203, allocations: 7.984 kB / 365.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003002/0.1234, allocations: 2.93 MB / 368.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.1234, allocations: 0 / 368.8 MB, free: 8.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008222/0.1242, allocations: 0.5274 MB / 369.3 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001668/0.1244, allocations: 132.8 kB / 369.4 MB, free: 8.246 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.725e-05/0.1245, allocations: 8 kB / 369.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.1247, allocations: 19.98 kB / 369.4 MB, free: 8.219 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.302e-05/0.1248, allocations: 27.95 kB / 369.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.903e-05/0.1248, allocations: 8 kB / 369.5 MB, free: 8.184 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.125, allocations: 186 kB / 369.7 MB, free: 8 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.125, allocations: 0 / 369.7 MB, free: 8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000448/0.1255, allocations: 107.8 kB / 369.8 MB, free: 7.895 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * 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 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001116/0.1266, allocations: 1.069 MB / 370.8 MB, free: 6.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001488/0.1281, allocations: 0.5806 MB / 371.4 MB, free: 6.191 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.1281, allocations: 7.938 kB / 371.4 MB, free: 6.184 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.1295, allocations: 458.3 kB / 371.9 MB, free: 5.723 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.13, allocations: 76.55 kB / 371.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002284/0.1323, allocations: 1.771 MB / 373.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003899/0.1327, allocations: 0.7872 MB / 374.5 MB, free: 3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.1328, allocations: 30.28 kB / 374.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.133, allocations: 103.4 kB / 374.6 MB, free: 2.871 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.133, allocations: 0 / 374.6 MB, free: 2.871 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02232/0.1553, allocations: 8.117 MB / 382.8 MB, free: 11.01 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000258/0.1556, allocations: 217.4 kB / 383 MB, free: 10.76 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/2.113, allocations: 0 / 383 MB, free: 10.76 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat