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.001566/0.001566, allocations: 187.6 kB / 16.4 MB, free: 5.625 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.084/2.084, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001183/0.001183, allocations: 98.84 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005854/0.0005855, allocations: 12 kB / 327.1 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.1, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks): time 0.003771/0.1038, allocations: 2.185 MB / 376.8 MB, free: 13.15 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001904/0.1058, allocations: 0.7805 MB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001965/0.106, allocations: 0 / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002587/0.1063, allocations: 51.66 kB / 377.7 MB, free: 12.31 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007493/0.1071, allocations: 155.5 kB / 377.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004619/0.1076, allocations: 67.86 kB / 377.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.001074/0.1087, allocations: 299.8 kB / 378.2 MB, free: 11.8 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003503/0.1091, allocations: 82.19 kB / 378.2 MB, free: 11.71 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003299/0.1094, allocations: 135.5 kB / 378.4 MB, free: 11.58 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003172/0.1098, allocations: 151.4 kB / 378.5 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.805e-05/0.1098, allocations: 16 kB / 378.5 MB, free: 11.42 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.306e-05/0.11, allocations: 24 kB / 378.6 MB, free: 11.39 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.907e-05/0.1101, allocations: 63.75 kB / 378.6 MB, free: 11.33 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1102, allocations: 93.52 kB / 378.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000461/0.1107, allocations: 299.4 kB / 379 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.045e-06/0.1107, allocations: 0 / 379 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.1107, allocations: 0 / 379 MB, free: 10.94 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.392e-06/0.1107, allocations: 0 / 379 MB, free: 10.94 MB / 282.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.001547/0.1123, allocations: 0.621 MB / 379.6 MB, free: 10.27 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.742e-05/0.1123, allocations: 15.97 kB / 379.6 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001695/0.1125, allocations: 67 kB / 379.7 MB, free: 10.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001183/0.1127, allocations: 43.53 kB / 379.8 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005159/0.1132, allocations: 274.3 kB / 380 MB, free: 9.824 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.1133, allocations: 58.25 kB / 380.1 MB, free: 9.762 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.1135, allocations: 27.91 kB / 380.1 MB, free: 9.734 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008466/0.1143, allocations: 331.4 kB / 380.4 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.915e-05/0.1144, allocations: 3.938 kB / 380.4 MB, free: 9.367 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.1144, allocations: 12 kB / 380.4 MB, free: 9.355 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.1144, allocations: 4 kB / 380.4 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007533/0.1152, allocations: 222.1 kB / 380.7 MB, free: 9.133 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.1175, allocations: 0.807 MB / 381.5 MB, free: 8.277 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.1187, allocations: 295.9 kB / 381.8 MB, free: 7.98 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.557e-05/0.1188, allocations: 15.97 kB / 381.8 MB, free: 7.965 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.368e-05/0.1188, allocations: 46.59 kB / 381.8 MB, free: 7.91 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 3.396e-06/0.1188, allocations: 0 / 381.8 MB, free: 7.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.001734/0.1206, allocations: 488.9 kB / 382.3 MB, free: 7.406 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001792/0.1208, allocations: 316.4 kB / 382.6 MB, free: 7.023 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003977/0.1212, allocations: 266.9 kB / 382.9 MB, free: 6.742 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.659e-05/0.1213, allocations: 33.7 kB / 382.9 MB, free: 6.703 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001983/0.1215, allocations: 223.1 kB / 383.1 MB, free: 6.48 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001254/0.1216, allocations: 102.5 kB / 383.2 MB, free: 6.379 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.656e-05/0.1216, allocations: 8 kB / 383.2 MB, free: 6.371 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1218, allocations: 326.8 kB / 383.5 MB, free: 6.043 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003718/0.1222, allocations: 95.95 kB / 383.6 MB, free: 5.949 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.1227, allocations: 215.7 kB / 383.9 MB, free: 5.695 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004345/0.1232, allocations: 143 kB / 384 MB, free: 5.551 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.1232, allocations: 4 kB / 384 MB, free: 5.547 MB / 282.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001072/0.1243, allocations: 353.2 kB / 384.3 MB, free: 5.188 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.1243, allocations: 33.7 kB / 384.4 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.1244, allocations: 0 / 384.4 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/0.1246, allocations: 40.94 kB / 384.4 MB, free: 5.105 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/0.1265, allocations: 207.8 kB / 384.6 MB, free: 4.902 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005986/0.1325, allocations: 3.106 MB / 387.7 MB, free: 1.539 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005637/0.1332, allocations: 35.78 kB / 387.8 MB, free: 1.504 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.283e-05/0.1332, allocations: 12 kB / 387.8 MB, free: 1.492 MB / 282.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.0002957/0.1335, allocations: 157.8 kB / 387.9 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.713e-05/0.1336, allocations: 31.62 kB / 388 MB, free: 1.297 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001058/0.1337, allocations: 39.08 kB / 388 MB, free: 1.258 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.939e-06/0.1338, allocations: 8.328 kB / 388 MB, free: 1.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1338, allocations: 4.031 kB / 388 MB, free: 1.246 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001085/0.1349, allocations: 0.6659 MB / 388.7 MB, free: 484 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006612/0.1356, allocations: 385.2 kB / 389 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.1356, allocations: 4 kB / 389 MB, free: 44 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2521/0.3877, allocations: 245.3 kB / 389.3 MB, free: 20.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001508/0.3879, allocations: 26.08 kB / 389.3 MB, free: 20.81 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.968e-05/0.3879, allocations: 7.281 kB / 389.3 MB, free: 20.81 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00472/0.3927, allocations: 2.922 MB / 392.2 MB, free: 18.27 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3927, allocations: 0 / 392.2 MB, free: 18.27 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001575/0.3943, allocations: 0.5216 MB / 392.8 MB, free: 18.13 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/0.3946, allocations: 132.8 kB / 392.9 MB, free: 18.04 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.963e-05/0.3947, allocations: 9.375 kB / 392.9 MB, free: 18.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004981/0.3952, allocations: 25.31 kB / 392.9 MB, free: 18.03 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001472/0.3954, allocations: 29.27 kB / 393 MB, free: 18.03 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.706e-05/0.3954, allocations: 10.67 kB / 393 MB, free: 18.03 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000279/0.3957, allocations: 183.6 kB / 393.1 MB, free: 17.95 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.3957, allocations: 0 / 393.1 MB, free: 17.95 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006807/0.3964, allocations: 102.6 kB / 393.2 MB, free: 17.95 MB / 282.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.001805/0.3982, allocations: 1.063 MB / 394.3 MB, free: 17.27 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002797/0.4011, allocations: 0.5831 MB / 394.9 MB, free: 17.09 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/0.4011, allocations: 1.188 kB / 394.9 MB, free: 17.09 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002715/0.4039, allocations: 445.5 kB / 395.3 MB, free: 16.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007998/0.4047, allocations: 77.64 kB / 395.4 MB, free: 16.96 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003516/0.4083, allocations: 1.81 MB / 397.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003118/0.4086, allocations: 0.7848 MB / 398 MB, free: 14.94 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002626/0.4089, allocations: 107.1 kB / 398.1 MB, free: 14.86 MB / 282.7 MB Notification: Performance of SimCode: time 1.212e-06/0.4089, allocations: 0 / 398.1 MB, free: 14.86 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.739/3.148, allocations: 7.709 MB / 405.8 MB, free: 12.55 MB / 282.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