Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001169/0.001169, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.443/1.443, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008559/0.0008559, allocations: 86.3 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.162e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1092, allocations: 50.4 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9166/1.026, allocations: 321.7 MB / 0.6992 GB, free: 10.32 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/1.026, allocations: 82.52 kB / 0.6993 GB, free: 10.28 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.199/2.225, allocations: 274.5 MB / 0.9674 GB, free: 73.78 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.445e-06/2.226, allocations: 3.344 kB / 0.9674 GB, free: 73.78 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0001453/2.226, allocations: 38.7 kB / 0.9674 GB, free: 73.77 MB / 442.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.007038/2.233, allocations: 1.817 MB / 0.9692 GB, free: 72.76 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.626e-05/2.233, allocations: 10.03 kB / 0.9692 GB, free: 72.76 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004327/2.233, allocations: 161.4 kB / 0.9693 GB, free: 72.72 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008674/2.234, allocations: 175.5 kB / 0.9695 GB, free: 72.64 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003249/2.237, allocations: 1.13 MB / 0.9706 GB, free: 72.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000185/2.238, allocations: 175 kB / 0.9708 GB, free: 72.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002855/2.238, allocations: 100 kB / 0.9709 GB, free: 72.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00305/2.241, allocations: 1.73 MB / 0.9726 GB, free: 71.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.488e-05/2.241, allocations: 14.83 kB / 0.9726 GB, free: 71.74 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001556/2.241, allocations: 49.92 kB / 0.9726 GB, free: 71.72 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001523/2.241, allocations: 110.4 kB / 0.9727 GB, free: 71.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002626/2.244, allocations: 1.737 MB / 0.9744 GB, free: 71.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01234/2.256, allocations: 6.377 MB / 0.9807 GB, free: 66.6 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002004/2.258, allocations: 1.155 MB / 0.9818 GB, free: 66.04 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/2.26, allocations: 0.7 MB / 0.9825 GB, free: 65.69 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006195/2.266, allocations: 4.269 MB / 0.9866 GB, free: 61.99 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/2.266, allocations: 49.64 kB / 0.9867 GB, free: 61.94 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001023/2.267, allocations: 203 kB / 0.9869 GB, free: 61.84 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 2.796e-06/2.267, allocations: 0 / 0.9869 GB, free: 61.84 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.007818/2.275, allocations: 3.778 MB / 0.9906 GB, free: 59.12 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/2.275, allocations: 141.5 kB / 0.9907 GB, free: 58.95 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001643/2.276, allocations: 1.089 MB / 0.9918 GB, free: 57.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001159/2.277, allocations: 49.7 kB / 0.9918 GB, free: 57.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004498/2.277, allocations: 0.6061 MB / 0.9924 GB, free: 57.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003552/2.277, allocations: 384.6 kB / 0.9928 GB, free: 56.82 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.913e-05/2.278, allocations: 28 kB / 0.9928 GB, free: 56.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002068/2.278, allocations: 365.9 kB / 0.9932 GB, free: 56.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00104/2.279, allocations: 0.6208 MB / 0.9938 GB, free: 55.81 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001189/2.28, allocations: 0.9602 MB / 0.9947 GB, free: 54.73 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/2.281, allocations: 0.7463 MB / 0.9954 GB, free: 54 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/2.281, allocations: 0 / 0.9954 GB, free: 54 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003381/2.285, allocations: 2.072 MB / 0.9974 GB, free: 51.92 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008638/2.285, allocations: 3.511 MB / 1.001 GB, free: 48.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/2.285, allocations: 8 kB / 1.001 GB, free: 48.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006499/2.292, allocations: 1.211 MB / 1.002 GB, free: 47.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/2.294, allocations: 301.1 kB / 1.002 GB, free: 46.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002163/2.296, allocations: 1.521 MB / 1.004 GB, free: 45.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/2.298, allocations: 89.33 kB / 1.004 GB, free: 45.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001715/2.298, allocations: 73.73 kB / 1.004 GB, free: 45.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/2.298, allocations: 4 kB / 1.004 GB, free: 45.02 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002967/2.301, allocations: 1.852 MB / 1.006 GB, free: 43.17 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/2.301, allocations: 15.92 kB / 1.006 GB, free: 43.15 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005524/2.306, allocations: 1.064 MB / 1.007 GB, free: 42.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001341/2.308, allocations: 299.5 kB / 1.007 GB, free: 41.84 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001804/2.31, allocations: 1.36 MB / 1.008 GB, free: 40.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/2.311, allocations: 86.17 kB / 1.009 GB, free: 40.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/2.311, allocations: 72.27 kB / 1.009 GB, free: 40.31 MB / 442.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 () * 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.0004536/2.312, allocations: 193.2 kB / 1.009 GB, free: 40.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002575/2.312, allocations: 146.2 kB / 1.009 GB, free: 39.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003665/2.316, allocations: 2.003 MB / 1.011 GB, free: 37.98 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.236e-05/2.316, allocations: 12 kB / 1.011 GB, free: 37.97 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/2.316, allocations: 0 / 1.011 GB, free: 37.97 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.192e-05/2.316, allocations: 3.984 kB / 1.011 GB, free: 37.96 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004696/2.321, allocations: 3.414 MB / 1.014 GB, free: 34.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/2.321, allocations: 0 / 1.014 GB, free: 34.52 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008566/2.321, allocations: 191.8 kB / 1.014 GB, free: 34.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003459/2.325, allocations: 0.942 MB / 1.015 GB, free: 33.42 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001384/2.325, allocations: 39.92 kB / 1.015 GB, free: 33.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001925/2.327, allocations: 1.555 MB / 1.017 GB, free: 31.8 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/2.327, allocations: 4 kB / 1.017 GB, free: 31.8 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003865/2.331, allocations: 2.704 MB / 1.02 GB, free: 29.08 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009545/2.332, allocations: 403 kB / 1.02 GB, free: 28.66 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001902/2.332, allocations: 24 kB / 1.02 GB, free: 28.64 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001044/2.333, allocations: 87.8 kB / 1.02 GB, free: 28.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002195/2.333, allocations: 97.25 kB / 1.02 GB, free: 28.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/2.333, allocations: 59.89 kB / 1.02 GB, free: 28.4 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001073/2.334, allocations: 0.8263 MB / 1.021 GB, free: 27.57 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.4e-07/2.334, allocations: 0 / 1.021 GB, free: 27.57 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003732/2.338, allocations: 1.25 MB / 1.022 GB, free: 26.32 MB / 442.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 () * 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.006177/2.344, allocations: 4.23 MB / 1.026 GB, free: 22.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00556/2.35, allocations: 2.619 MB / 1.029 GB, free: 19.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/2.35, allocations: 0 / 1.029 GB, free: 19.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001531/2.352, allocations: 0.8189 MB / 1.03 GB, free: 18.73 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003398/2.355, allocations: 0.5974 MB / 1.03 GB, free: 18.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006942/2.362, allocations: 3.105 MB / 1.033 GB, free: 15.05 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005998/2.363, allocations: 1.325 MB / 1.035 GB, free: 13.68 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002144/2.365, allocations: 0.6675 MB / 1.035 GB, free: 13.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006032/2.365, allocations: 0.5305 MB / 1.036 GB, free: 12.51 MB / 442.7 MB Notification: Performance of SimCode: time 1.173e-06/2.365, allocations: 0 / 1.036 GB, free: 12.51 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4286/2.794, allocations: 56.74 MB / 1.091 GB, free: 60.19 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001729/2.794, allocations: 166.2 kB / 1.091 GB, free: 59.97 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.041/7.835, allocations: 0.75 kB / 1.091 GB, free: 59.97 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat