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.0008122/0.0008122, allocations: 92.19 kB / 16.31 MB, free: 5.945 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.001181/0.001181, allocations: 178.8 kB / 17.2 MB, free: 5.859 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.39/1.39, allocations: 223.3 MB / 241.2 MB, free: 5.277 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002827, allocations: 5.406 kB / 300.9 MB, free: 5.59 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09967/0.09998, allocations: 50.41 MB / 351.3 MB, free: 11.4 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002661/0.1027, allocations: 2.342 MB / 353.7 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1039, allocations: 0.7131 MB / 354.4 MB, free: 8.328 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001614/0.1041, allocations: 4 kB / 354.4 MB, free: 8.324 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.1043, allocations: 55.61 kB / 354.4 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002423/0.1046, allocations: 127 kB / 354.6 MB, free: 8.145 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001627/0.1048, allocations: 59.88 kB / 354.6 MB, free: 8.086 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004152/0.1052, allocations: 390.3 kB / 355 MB, free: 7.703 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001698/0.1054, allocations: 86.17 kB / 355.1 MB, free: 7.613 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.1055, allocations: 135.5 kB / 355.2 MB, free: 7.48 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.1057, allocations: 171.3 kB / 355.4 MB, free: 7.312 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.354e-05/0.1058, allocations: 20 kB / 355.4 MB, free: 7.293 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.106, allocations: 28 kB / 355.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.427e-05/0.106, allocations: 55.77 kB / 355.5 MB, free: 7.211 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.493e-05/0.1061, allocations: 97.56 kB / 355.6 MB, free: 7.109 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002886/0.1064, allocations: 311.1 kB / 355.9 MB, free: 6.805 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1064, allocations: 3.938 kB / 355.9 MB, free: 6.801 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1065, allocations: 0 / 355.9 MB, free: 6.801 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.1065, allocations: 0 / 355.9 MB, free: 6.801 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.000962/0.1074, allocations: 0.6249 MB / 356.5 MB, free: 6.121 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.1075, allocations: 8.031 kB / 356.5 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001018/0.1076, allocations: 74.94 kB / 356.6 MB, free: 6.031 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.436e-05/0.1077, allocations: 39.53 kB / 356.6 MB, free: 5.992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000374/0.1081, allocations: 286.4 kB / 356.9 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.1082, allocations: 58.25 kB / 357 MB, free: 5.613 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001042/0.1084, allocations: 23.91 kB / 357 MB, free: 5.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005291/0.1089, allocations: 346.4 kB / 357.3 MB, free: 5.215 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1089, allocations: 0 / 357.3 MB, free: 5.215 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.179e-05/0.109, allocations: 15.94 kB / 357.3 MB, free: 5.199 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.515e-06/0.109, allocations: 4 kB / 357.4 MB, free: 5.195 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004242/0.1094, allocations: 222.1 kB / 357.6 MB, free: 4.98 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.1109, allocations: 0.8304 MB / 358.4 MB, free: 4.098 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005242/0.1114, allocations: 287 kB / 358.7 MB, free: 3.809 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002109/0.1116, allocations: 120.8 kB / 358.8 MB, free: 3.688 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.292e-05/0.1117, allocations: 4 kB / 358.8 MB, free: 3.684 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.1117, allocations: 38.56 kB / 358.8 MB, free: 3.637 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.533e-06/0.1117, allocations: 0 / 358.8 MB, free: 3.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001048/0.1128, allocations: 495.2 kB / 359.3 MB, free: 3.125 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001915/0.113, allocations: 312.4 kB / 359.6 MB, free: 2.746 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.1133, allocations: 283 kB / 359.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.1134, allocations: 29.7 kB / 359.9 MB, free: 2.422 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.1135, allocations: 176.6 kB / 360.1 MB, free: 2.242 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.687e-05/0.1136, allocations: 110.5 kB / 360.2 MB, free: 2.133 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.505e-05/0.1136, allocations: 4 kB / 360.2 MB, free: 2.129 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.1137, allocations: 342.8 kB / 360.6 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001996/0.1139, allocations: 103.8 kB / 360.7 MB, free: 1.684 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002858/0.1142, allocations: 208.2 kB / 360.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002391/0.1145, allocations: 143 kB / 361 MB, free: 1.289 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.1145, allocations: 0 / 361 MB, free: 1.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006896/0.1152, allocations: 381.8 kB / 361.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.878e-05/0.1152, allocations: 33.69 kB / 361.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.1153, allocations: 4 kB / 361.4 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001422/0.1154, allocations: 32.84 kB / 361.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009685/0.1164, allocations: 207.9 kB / 361.6 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003445/0.1198, allocations: 3.063 MB / 364.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002959/0.1202, allocations: 35.77 kB / 364.7 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.1202, allocations: 8 kB / 364.7 MB, free: 13.25 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.0001824/0.1204, allocations: 161.7 kB / 364.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.247e-05/0.1204, allocations: 31.62 kB / 364.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.012e-05/0.1205, allocations: 39.08 kB / 365 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.1205, allocations: 4 kB / 365 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1206, allocations: 0 / 365 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006525/0.1212, allocations: 0.6706 MB / 365.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000542/0.1218, allocations: 393.4 kB / 366 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1218, allocations: 4 kB / 366 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/0.123, allocations: 255.7 kB / 366.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.633e-05/0.1231, allocations: 20.86 kB / 366.3 MB, free: 11.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.419e-05/0.1231, allocations: 11.98 kB / 366.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00311/0.1263, allocations: 2.887 MB / 369.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1263, allocations: 144 / 369.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008178/0.1271, allocations: 0.5313 MB / 369.7 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.1273, allocations: 132.8 kB / 369.9 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.1273, allocations: 12 kB / 369.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.1276, allocations: 19.98 kB / 369.9 MB, free: 7.625 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.834e-05/0.1276, allocations: 19.97 kB / 369.9 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1277, allocations: 12 kB / 369.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001883/0.1279, allocations: 198 kB / 370.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.1279, allocations: 0 / 370.1 MB, free: 7.398 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005187/0.1284, allocations: 107.8 kB / 370.2 MB, free: 7.293 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.001072/0.1295, allocations: 1.084 MB / 371.3 MB, free: 6.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.1311, allocations: 0.5806 MB / 371.9 MB, free: 5.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.1311, allocations: 4 kB / 371.9 MB, free: 5.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001412/0.1325, allocations: 450.3 kB / 372.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005214/0.133, allocations: 84.64 kB / 372.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00351/0.1365, allocations: 2.239 MB / 374.7 MB, free: 2.742 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003202/0.1369, allocations: 0.784 MB / 375.4 MB, free: 1.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001566/0.137, allocations: 34.95 kB / 375.5 MB, free: 1.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001477/0.1372, allocations: 103.4 kB / 375.6 MB, free: 1.797 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1372, allocations: 0 / 375.6 MB, free: 1.797 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02852/0.1657, allocations: 8.573 MB / 384.1 MB, free: 9.48 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002993/0.1661, allocations: 218.9 kB / 384.4 MB, free: 9.238 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.131/2.297, allocations: 3.938 kB / 384.4 MB, free: 9.234 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