Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_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.001024/0.001024, allocations: 96.78 kB / 16.93 MB, free: 5.984 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.001229/0.00123, allocations: 179.7 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.564/1.564, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005655/0.0005658, allocations: 16 kB / 280.8 MB, free: 3.652 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1172/0.1178, allocations: 47.58 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.002686/0.1205, allocations: 2.186 MB / 330.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.1219, allocations: 0.7767 MB / 331.4 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1221, allocations: 3.938 kB / 331.4 MB, free: 1.02 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001693/0.1223, allocations: 51.67 kB / 331.4 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000305/0.1226, allocations: 151.6 kB / 331.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001726/0.1228, allocations: 71.84 kB / 331.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000395/0.1232, allocations: 295.8 kB / 331.9 MB, free: 472 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001773/0.1234, allocations: 82.2 kB / 332 MB, free: 388 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.1235, allocations: 135.6 kB / 332.2 MB, free: 252 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002841/0.1238, allocations: 151.3 kB / 332.3 MB, free: 100 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.722e-05/0.1239, allocations: 20 kB / 332.3 MB, free: 80 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.182e-05/0.1239, allocations: 20 kB / 332.3 MB, free: 60 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.247e-05/0.124, allocations: 59.8 kB / 332.4 MB, free: 0 / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.1241, allocations: 93.62 kB / 332.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.1244, allocations: 303.4 kB / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1244, allocations: 0 / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1244, allocations: 0 / 332.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.1245, allocations: 0 / 332.8 MB, free: 15.6 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.001046/0.1255, allocations: 0.6171 MB / 333.4 MB, free: 14.93 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.382e-05/0.1256, allocations: 12.03 kB / 333.4 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.878e-05/0.1257, allocations: 67 kB / 333.5 MB, free: 14.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.691e-05/0.1258, allocations: 47.47 kB / 333.5 MB, free: 14.8 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003373/0.1261, allocations: 274.4 kB / 333.8 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.904e-05/0.1262, allocations: 54.25 kB / 333.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.318e-05/0.1263, allocations: 31.89 kB / 333.9 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006583/0.1269, allocations: 339.2 kB / 334.2 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.127, allocations: 0 / 334.2 MB, free: 14.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.127, allocations: 12 kB / 334.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.127, allocations: 7.938 kB / 334.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004722/0.1275, allocations: 222.1 kB / 334.5 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.1288, allocations: 0.8031 MB / 335.3 MB, free: 12.94 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007085/0.1295, allocations: 307 kB / 335.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.185e-05/0.1296, allocations: 11.97 kB / 335.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.3e-05/0.1296, allocations: 38.56 kB / 335.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 1.442e-06/0.1296, allocations: 0 / 335.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.00108/0.1307, allocations: 488.4 kB / 336.1 MB, free: 12.07 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001512/0.1309, allocations: 328.4 kB / 336.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00025/0.1311, allocations: 255 kB / 336.6 MB, free: 11.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.685e-05/0.1312, allocations: 37.69 kB / 336.7 MB, free: 11.36 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001225/0.1313, allocations: 172.6 kB / 336.9 MB, free: 11.19 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.458e-05/0.1314, allocations: 98.55 kB / 337 MB, free: 11.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.782e-05/0.1314, allocations: 12 kB / 337 MB, free: 11.08 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1316, allocations: 334.8 kB / 337.3 MB, free: 10.74 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/0.1318, allocations: 99.95 kB / 337.4 MB, free: 10.64 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002853/0.1321, allocations: 207.8 kB / 337.6 MB, free: 10.4 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002502/0.1323, allocations: 147 kB / 337.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1323, allocations: 0 / 337.7 MB, free: 10.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006495/0.133, allocations: 377 kB / 338.1 MB, free: 9.867 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.135e-05/0.133, allocations: 33.64 kB / 338.1 MB, free: 9.828 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1331, allocations: 4 kB / 338.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000144/0.1332, allocations: 32.84 kB / 338.2 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009999/0.1342, allocations: 203.9 kB / 338.4 MB, free: 9.59 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003709/0.1379, allocations: 3.117 MB / 341.5 MB, free: 6.215 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003169/0.1383, allocations: 35.88 kB / 341.5 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.652e-05/0.1383, allocations: 12 kB / 341.5 MB, free: 6.168 MB / 286.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.0001998/0.1385, allocations: 145.8 kB / 341.7 MB, free: 6.016 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.493e-05/0.1386, allocations: 35.62 kB / 341.7 MB, free: 5.98 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.44e-05/0.1387, allocations: 43.02 kB / 341.8 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1387, allocations: 7.953 kB / 341.8 MB, free: 5.93 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1387, allocations: 3.984 kB / 341.8 MB, free: 5.926 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001241/0.14, allocations: 0.662 MB / 342.4 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000517/0.1405, allocations: 381.2 kB / 342.8 MB, free: 4.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1405, allocations: 0 / 342.8 MB, free: 4.734 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.1419, allocations: 255.7 kB / 343 MB, free: 4.484 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.165e-05/0.1419, allocations: 20.84 kB / 343.1 MB, free: 4.461 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.409e-05/0.142, allocations: 8 kB / 343.1 MB, free: 4.453 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003617/0.1456, allocations: 2.942 MB / 346 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.1456, allocations: 0 / 346 MB, free: 1.242 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001049/0.1467, allocations: 0.5195 MB / 346.5 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001838/0.1469, allocations: 132.7 kB / 346.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.617e-05/0.1469, allocations: 8 kB / 346.7 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/0.1472, allocations: 27.94 kB / 346.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.228e-05/0.1473, allocations: 31.89 kB / 346.7 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.1473, allocations: 4 kB / 346.7 MB, free: 496 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001854/0.1475, allocations: 186 kB / 346.9 MB, free: 312 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1475, allocations: 0 / 346.9 MB, free: 312 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004923/0.148, allocations: 107.8 kB / 347 MB, free: 204 kB / 286.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.001174/0.1492, allocations: 1.069 MB / 348.1 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.1509, allocations: 0.5801 MB / 348.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/0.1509, allocations: 7.938 kB / 348.7 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0014/0.1523, allocations: 446.4 kB / 349.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000469/0.1528, allocations: 88.73 kB / 349.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002817/0.1557, allocations: 1.778 MB / 351 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004398/0.1561, allocations: 0.7834 MB / 351.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001717/0.1563, allocations: 38.22 kB / 351.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.1565, allocations: 103.4 kB / 351.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of SimCode: time 5.52e-07/0.1565, allocations: 0 / 351.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02635/0.1828, allocations: 8.106 MB / 360 MB, free: 3.059 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003497/0.1832, allocations: 213.3 kB / 360.2 MB, free: 2.812 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.023/2.206, allocations: 3.938 kB / 360.2 MB, free: 2.809 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat