Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001497/0.001497, allocations: 186 kB / 16.4 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.012/2.012, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001151/0.001151, allocations: 92.56 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004069/0.0004069, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3566, allocations: 47.57 MB / 374.6 MB, free: 45.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1316/0.4882, allocations: 80.02 MB / 454.6 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003435/0.4886, allocations: 67.97 kB / 454.7 MB, free: 0.543 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02718/0.5158, allocations: 6.158 MB / 460.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5159, allocations: 0 / 460.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.052e-05/0.5159, allocations: 12 kB / 460.9 MB, free: 10.34 MB / 346.7 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.001455/0.5174, allocations: 0.6288 MB / 461.5 MB, free: 9.652 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.5175, allocations: 8.031 kB / 461.5 MB, free: 9.645 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001516/0.5176, allocations: 66.95 kB / 461.6 MB, free: 9.57 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.5177, allocations: 39.62 kB / 461.6 MB, free: 9.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005534/0.5183, allocations: 298.9 kB / 461.9 MB, free: 9.203 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/0.5185, allocations: 58.16 kB / 462 MB, free: 9.141 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.451e-05/0.5185, allocations: 28 kB / 462 MB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008507/0.5194, allocations: 331.4 kB / 462.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.5195, allocations: 4 kB / 462.3 MB, free: 8.746 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.65e-05/0.5195, allocations: 12 kB / 462.3 MB, free: 8.734 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.182e-05/0.5195, allocations: 4 kB / 462.3 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007665/0.5203, allocations: 210.1 kB / 462.5 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003133/0.5235, allocations: 0.8348 MB / 463.4 MB, free: 7.641 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001568/0.5251, allocations: 304.4 kB / 463.7 MB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.173e-05/0.5252, allocations: 19.95 kB / 463.7 MB, free: 7.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.177e-05/0.5253, allocations: 38.56 kB / 463.7 MB, free: 7.273 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.998e-06/0.5253, allocations: 4 kB / 463.7 MB, free: 7.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.002263/0.5276, allocations: 492.9 kB / 464.2 MB, free: 6.762 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002284/0.5278, allocations: 312.4 kB / 464.5 MB, free: 6.383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005704/0.5284, allocations: 246.2 kB / 464.8 MB, free: 6.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.09e-05/0.5285, allocations: 33.7 kB / 464.8 MB, free: 6.094 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002473/0.5288, allocations: 230.9 kB / 465 MB, free: 5.867 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.529, allocations: 102.5 kB / 465.1 MB, free: 5.766 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-05/0.529, allocations: 8 kB / 465.1 MB, free: 5.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.5292, allocations: 322.8 kB / 465.4 MB, free: 5.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005052/0.5297, allocations: 99.95 kB / 465.5 MB, free: 5.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006588/0.5304, allocations: 220.3 kB / 465.8 MB, free: 5.074 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005749/0.531, allocations: 139 kB / 465.9 MB, free: 4.934 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.531, allocations: 4.094 kB / 465.9 MB, free: 4.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001433/0.5325, allocations: 358 kB / 466.2 MB, free: 4.566 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.707e-05/0.5326, allocations: 29.7 kB / 466.3 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.5326, allocations: 0 / 466.3 MB, free: 4.531 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002838/0.5329, allocations: 44.92 kB / 466.3 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002432/0.5354, allocations: 203.8 kB / 466.5 MB, free: 4.285 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008201/0.5436, allocations: 3.106 MB / 469.6 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007943/0.5445, allocations: 43.67 kB / 469.7 MB, free: 0.875 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.003e-05/0.5446, allocations: 12 kB / 469.7 MB, free: 0.8633 MB / 346.7 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.0004702/0.5451, allocations: 153.8 kB / 469.8 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.5454, allocations: 31.62 kB / 469.9 MB, free: 0.6719 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001992/0.5456, allocations: 39.08 kB / 469.9 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.5456, allocations: 4 kB / 469.9 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5457, allocations: 0 / 469.9 MB, free: 0.6211 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001599/0.5473, allocations: 0.6659 MB / 470.6 MB, free: 15.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00116/0.5485, allocations: 401.2 kB / 471 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.5485, allocations: 0 / 471 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004009/0.5526, allocations: 243.8 kB / 471.2 MB, free: 15.17 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000194/0.5528, allocations: 32.86 kB / 471.2 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.124e-05/0.5529, allocations: 8 kB / 471.2 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008358/0.5613, allocations: 2.934 MB / 474.2 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.5614, allocations: 0 / 474.2 MB, free: 11.92 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002234/0.5636, allocations: 0.5197 MB / 474.7 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004257/0.5641, allocations: 136.6 kB / 474.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.5642, allocations: 4 kB / 474.8 MB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006258/0.5649, allocations: 20.08 kB / 474.8 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001615/0.5651, allocations: 27.95 kB / 474.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.377e-05/0.5652, allocations: 11.95 kB / 474.9 MB, free: 11.17 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005086/0.5657, allocations: 205.9 kB / 475.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.5657, allocations: 0 / 475.1 MB, free: 10.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001139/0.5669, allocations: 111.8 kB / 475.2 MB, free: 10.86 MB / 362.7 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.003162/0.5701, allocations: 1.088 MB / 476.3 MB, free: 9.742 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003984/0.5741, allocations: 0.5645 MB / 476.9 MB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.348e-06/0.5742, allocations: 0 / 476.9 MB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003804/0.578, allocations: 430.2 kB / 477.3 MB, free: 8.719 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.5793, allocations: 85.66 kB / 477.4 MB, free: 8.637 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006074/0.5854, allocations: 1.81 MB / 479.2 MB, free: 6.754 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007114/0.5862, allocations: 0.784 MB / 479.9 MB, free: 5.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000441/0.5867, allocations: 103.4 kB / 480 MB, free: 5.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.994e-06/0.5867, allocations: 0 / 480 MB, free: 5.84 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.806/3.393, allocations: 7.891 MB / 487.9 MB, free: 13.97 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat