Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.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.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",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.001556/0.001556, allocations: 180.9 kB / 16.4 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.965/1.965, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001146/0.001146, allocations: 89.3 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004003/0.0004003, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3354, allocations: 47.56 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.35, allocations: 321.2 MB / 0.6795 GB, free: 107.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002869/1.35, allocations: 82.08 kB / 0.6796 GB, free: 107.3 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.306/2.656, allocations: 270.4 MB / 0.9437 GB, free: 28.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.365e-06/2.656, allocations: 0 / 0.9437 GB, free: 28.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002145/2.656, allocations: 39.88 kB / 0.9437 GB, free: 28.25 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.009744/2.666, allocations: 1.997 MB / 0.9457 GB, free: 26.2 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.053e-05/2.666, allocations: 11.97 kB / 0.9457 GB, free: 26.18 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001168/2.667, allocations: 164.5 kB / 0.9458 GB, free: 26.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001487/2.669, allocations: 182.1 kB / 0.946 GB, free: 25.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004559/2.673, allocations: 1.124 MB / 0.9471 GB, free: 24.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/2.674, allocations: 171.1 kB / 0.9473 GB, free: 24.48 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006333/2.674, allocations: 99.97 kB / 0.9474 GB, free: 24.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005318/2.68, allocations: 1.764 MB / 0.9491 GB, free: 22.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.618e-05/2.68, allocations: 7.953 kB / 0.9491 GB, free: 22.55 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002968/2.68, allocations: 39.97 kB / 0.9491 GB, free: 22.51 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002469/2.68, allocations: 113.9 kB / 0.9492 GB, free: 22.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005608/2.686, allocations: 1.78 MB / 0.951 GB, free: 20.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0204/2.706, allocations: 6.366 MB / 0.9572 GB, free: 13.96 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003233/2.71, allocations: 1.172 MB / 0.9583 GB, free: 12.78 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009641/2.719, allocations: 4.154 MB / 0.9624 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/2.72, allocations: 43.56 kB / 0.9624 GB, free: 8.16 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001833/2.721, allocations: 214.6 kB / 0.9626 GB, free: 7.949 MB / 426.7 MB Notification: Performance of pre-optimization done (n=97): time 5.621e-06/2.721, allocations: 0 / 0.9626 GB, free: 7.949 MB / 426.7 MB Notification: Performance of matching and sorting (n=112): time 0.03219/2.754, allocations: 5.365 MB / 0.9679 GB, free: 2.527 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/2.754, allocations: 149.4 kB / 0.968 GB, free: 2.348 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002478/2.756, allocations: 1.106 MB / 0.9691 GB, free: 1.234 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004794/2.757, allocations: 45.7 kB / 0.9691 GB, free: 1.184 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005092/2.757, allocations: 0.5837 MB / 0.9697 GB, free: 0.5938 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006463/2.758, allocations: 382.5 kB / 0.9701 GB, free: 220 kB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/2.758, allocations: 28 kB / 0.9701 GB, free: 192 kB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.3287/3.087, allocations: 367.3 kB / 0.9705 GB, free: 59.65 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002391/3.089, allocations: 0.6347 MB / 0.9711 GB, free: 59.65 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002396/3.092, allocations: 0.965 MB / 0.972 GB, free: 59.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002381/3.094, allocations: 0.7559 MB / 0.9728 GB, free: 59.29 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.007e-05/3.094, allocations: 3.969 kB / 0.9728 GB, free: 59.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.00648/3.101, allocations: 2.02 MB / 0.9747 GB, free: 59.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008315/3.102, allocations: 3.491 MB / 0.9781 GB, free: 55.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/3.102, allocations: 8.344 kB / 0.9782 GB, free: 55.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01332/3.115, allocations: 1.223 MB / 0.9793 GB, free: 55.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/3.118, allocations: 297 kB / 0.9796 GB, free: 55.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003923/3.122, allocations: 1.53 MB / 0.9811 GB, free: 55.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002884/3.125, allocations: 92.09 kB / 0.9812 GB, free: 55.06 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004935/3.125, allocations: 74.23 kB / 0.9813 GB, free: 55.06 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/3.125, allocations: 3.938 kB / 0.9813 GB, free: 55.06 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006258/3.131, allocations: 1.89 MB / 0.9831 GB, free: 55.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.479e-05/3.132, allocations: 8.781 kB / 0.9831 GB, free: 55.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01167/3.143, allocations: 1.035 MB / 0.9841 GB, free: 55.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002525/3.146, allocations: 301.8 kB / 0.9844 GB, free: 55.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003558/3.149, allocations: 1.342 MB / 0.9857 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002075/3.152, allocations: 82.73 kB / 0.9858 GB, free: 54.49 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002429/3.152, allocations: 71.67 kB / 0.9859 GB, free: 54.49 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.001265/3.153, allocations: 466 kB / 0.9863 GB, free: 54.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005288/3.154, allocations: 144.5 kB / 0.9865 GB, free: 54.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006932/3.161, allocations: 2.032 MB / 0.9885 GB, free: 54.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.146e-05/3.161, allocations: 14.34 kB / 0.9885 GB, free: 54.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/3.161, allocations: 0 / 0.9885 GB, free: 54.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.575e-05/3.161, allocations: 7.359 kB / 0.9885 GB, free: 54.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/3.171, allocations: 3.434 MB / 0.9918 GB, free: 53.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/3.171, allocations: 0 / 0.9918 GB, free: 53.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002001/3.173, allocations: 193.5 kB / 0.992 GB, free: 53.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007141/3.18, allocations: 0.9594 MB / 0.993 GB, free: 53.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003847/3.181, allocations: 33.36 kB / 0.993 GB, free: 53.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003607/3.184, allocations: 1.559 MB / 0.9945 GB, free: 53.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/3.185, allocations: 1 kB / 0.9945 GB, free: 53.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00783/3.192, allocations: 2.755 MB / 0.9972 GB, free: 53.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/3.194, allocations: 406.6 kB / 0.9976 GB, free: 52.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004208/3.194, allocations: 21.19 kB / 0.9976 GB, free: 52.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002081/3.196, allocations: 82.83 kB / 0.9977 GB, free: 52.92 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003542/3.197, allocations: 107.2 kB / 0.9978 GB, free: 52.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000193/3.197, allocations: 50.92 kB / 0.9978 GB, free: 52.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001751/3.199, allocations: 0.8435 MB / 0.9987 GB, free: 52.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/3.199, allocations: 1.781 kB / 0.9987 GB, free: 52.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005572/3.204, allocations: 1.246 MB / 0.9999 GB, free: 52.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01109/3.216, allocations: 4.266 MB / 1.004 GB, free: 52.01 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01021/3.226, allocations: 2.595 MB / 1.007 GB, free: 51.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.225e-05/3.226, allocations: 3.125 kB / 1.007 GB, free: 51.96 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003164/3.229, allocations: 0.8283 MB / 1.007 GB, free: 51.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005489/3.235, allocations: 0.6017 MB / 1.008 GB, free: 51.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/3.249, allocations: 10.87 MB / 1.019 GB, free: 44.04 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009328/3.25, allocations: 1.312 MB / 1.02 GB, free: 43.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001506/3.252, allocations: 0.5643 MB / 1.02 GB, free: 43.32 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/3.252, allocations: 0 / 1.02 GB, free: 43.32 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.586/6.838, allocations: 41.34 MB / 1.061 GB, free: 40.73 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat