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.0008672/0.0008673, allocations: 97.31 kB / 16.95 MB, free: 6.453 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.001083/0.001083, allocations: 182.5 kB / 17.84 MB, free: 6.004 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.559/1.559, allocations: 205.4 MB / 224 MB, free: 13.14 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.0005039/0.0005041, allocations: 12 kB / 280.9 MB, free: 3.629 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1082, allocations: 47.58 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003094/0.1114, allocations: 2.337 MB / 330.8 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00164/0.113, allocations: 0.7647 MB / 331.5 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003063/0.1134, allocations: 3.938 kB / 331.6 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003038/0.1137, allocations: 47.67 kB / 331.6 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004535/0.1142, allocations: 119.1 kB / 331.7 MB, free: 0.6875 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.1145, allocations: 71.86 kB / 331.8 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006177/0.1151, allocations: 394.4 kB / 332.2 MB, free: 236 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002349/0.1153, allocations: 86.19 kB / 332.3 MB, free: 148 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000313/0.1157, allocations: 131.6 kB / 332.4 MB, free: 16 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003732/0.1161, allocations: 167.4 kB / 332.5 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.283e-05/0.1162, allocations: 20 kB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.998e-05/0.1163, allocations: 24 kB / 332.6 MB, free: 15.8 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.098e-05/0.1163, allocations: 59.75 kB / 332.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.1165, allocations: 93.52 kB / 332.7 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004074/0.1169, allocations: 319.4 kB / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1169, allocations: 0 / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.117, allocations: 0 / 333.1 MB, free: 15.34 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.011e-05/0.117, allocations: 4 kB / 333.1 MB, free: 15.33 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.001348/0.1183, allocations: 0.6248 MB / 333.7 MB, free: 14.65 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.1184, allocations: 12.03 kB / 333.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001545/0.1186, allocations: 67.02 kB / 333.8 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.1187, allocations: 47.52 kB / 333.8 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005192/0.1192, allocations: 290.2 kB / 334.1 MB, free: 14.2 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.1194, allocations: 58.25 kB / 334.1 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.993e-05/0.1194, allocations: 27.91 kB / 334.2 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006704/0.1201, allocations: 335.3 kB / 334.5 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.1202, allocations: 0 / 334.5 MB, free: 13.74 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.256e-05/0.1202, allocations: 15.98 kB / 334.5 MB, free: 13.73 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.1202, allocations: 8 kB / 334.5 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004635/0.1207, allocations: 218.1 kB / 334.7 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001545/0.1222, allocations: 0.8304 MB / 335.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005648/0.1228, allocations: 283 kB / 335.8 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002947/0.1231, allocations: 116.9 kB / 336 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.1232, allocations: 4 kB / 336 MB, free: 12.21 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.488e-05/0.1232, allocations: 42.55 kB / 336 MB, free: 12.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=29): time 2.265e-06/0.1232, allocations: 0 / 336 MB, free: 12.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=29): time 0.001048/0.1243, allocations: 495.9 kB / 336.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001606/0.1245, allocations: 324.4 kB / 336.8 MB, free: 11.26 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002928/0.1248, allocations: 279 kB / 337.1 MB, free: 10.97 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.619e-05/0.1248, allocations: 33.7 kB / 337.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.1249, allocations: 172.6 kB / 337.3 MB, free: 10.76 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.35e-05/0.125, allocations: 102.5 kB / 337.4 MB, free: 10.66 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.465e-05/0.1251, allocations: 4 kB / 337.4 MB, free: 10.65 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.1252, allocations: 338.8 kB / 337.7 MB, free: 10.31 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002112/0.1254, allocations: 99.95 kB / 337.8 MB, free: 10.21 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002965/0.1257, allocations: 227.6 kB / 338 MB, free: 9.949 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002483/0.126, allocations: 131.1 kB / 338.2 MB, free: 9.816 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.126, allocations: 0 / 338.2 MB, free: 9.816 MB / 286.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006258/0.1266, allocations: 381 kB / 338.5 MB, free: 9.43 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.1267, allocations: 29.7 kB / 338.6 MB, free: 9.395 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1267, allocations: 7.938 kB / 338.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001552/0.1268, allocations: 32.84 kB / 338.6 MB, free: 9.352 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009485/0.1278, allocations: 211.8 kB / 338.8 MB, free: 9.145 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003498/0.1313, allocations: 3.078 MB / 341.9 MB, free: 5.809 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003017/0.1316, allocations: 35.94 kB / 341.9 MB, free: 5.773 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.1317, allocations: 8 kB / 341.9 MB, free: 5.766 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.0002183/0.1319, allocations: 157.8 kB / 342.1 MB, free: 5.602 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.488e-05/0.132, allocations: 35.62 kB / 342.1 MB, free: 5.566 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001004/0.1321, allocations: 35.08 kB / 342.2 MB, free: 5.531 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.1321, allocations: 7.953 kB / 342.2 MB, free: 5.523 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1321, allocations: 4 kB / 342.2 MB, free: 5.52 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006916/0.1328, allocations: 0.6621 MB / 342.8 MB, free: 4.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004846/0.1333, allocations: 389.2 kB / 343.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.1333, allocations: 0 / 343.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001201/0.1345, allocations: 259.7 kB / 343.5 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.779e-05/0.1346, allocations: 20.84 kB / 343.5 MB, free: 4.043 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.1346, allocations: 8 kB / 343.5 MB, free: 4.035 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003008/0.1377, allocations: 2.91 MB / 346.4 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1377, allocations: 4.031 kB / 346.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008222/0.1385, allocations: 0.5116 MB / 346.9 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.1387, allocations: 132.8 kB / 347 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.367e-05/0.1388, allocations: 8 kB / 347 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.139, allocations: 23.94 kB / 347.1 MB, free: 144 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.725e-05/0.1391, allocations: 27.89 kB / 347.1 MB, free: 116 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.1391, allocations: 16 kB / 347.1 MB, free: 100 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002526/0.1394, allocations: 198 kB / 347.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1394, allocations: 0 / 347.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004763/0.1399, allocations: 103.8 kB / 347.4 MB, free: 15.8 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.001281/0.1412, allocations: 1.08 MB / 348.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.1428, allocations: 0.5762 MB / 349.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/0.1428, allocations: 7.938 kB / 349.1 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001355/0.1442, allocations: 446.4 kB / 349.5 MB, free: 13.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005971/0.1448, allocations: 92.66 kB / 349.6 MB, free: 13.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003919/0.1487, allocations: 2.237 MB / 351.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004178/0.1492, allocations: 0.7762 MB / 352.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.1494, allocations: 38.95 kB / 352.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.1496, allocations: 107.4 kB / 352.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of SimCode: time 7.62e-07/0.1496, allocations: 0 / 352.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06221/0.2118, allocations: 8.555 MB / 361.3 MB, free: 1.746 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000308/0.2121, allocations: 210.4 kB / 361.5 MB, free: 1.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.068/2.28, allocations: 4 kB / 361.5 MB, free: 1.504 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