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.001185/0.001185, allocations: 180.5 kB / 16.38 MB, free: 5.766 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.559/1.559, allocations: 223.2 MB / 240.3 MB, free: 11.9 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 90.62 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003067/0.0003065, allocations: 4 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3432/0.3435, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9601/1.304, allocations: 321.7 MB / 0.7064 GB, free: 162.1 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/1.304, allocations: 83.16 kB / 0.7064 GB, free: 162 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9524/2.257, allocations: 275.4 MB / 0.9753 GB, free: 67.69 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.395e-06/2.257, allocations: 0 / 0.9753 GB, free: 67.69 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001037/2.257, allocations: 39.84 kB / 0.9754 GB, free: 67.66 MB / 458.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.005499/2.262, allocations: 2.005 MB / 0.9773 GB, free: 65.62 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/2.262, allocations: 8.031 kB / 0.9774 GB, free: 65.61 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002643/2.263, allocations: 172.2 kB / 0.9775 GB, free: 65.45 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004734/2.263, allocations: 170.1 kB / 0.9777 GB, free: 65.28 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002099/2.265, allocations: 1.127 MB / 0.9788 GB, free: 64.13 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001495/2.265, allocations: 178.8 kB / 0.9789 GB, free: 63.95 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001903/2.265, allocations: 95.81 kB / 0.979 GB, free: 63.86 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002718/2.268, allocations: 1.765 MB / 0.9808 GB, free: 62.06 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.833e-05/2.268, allocations: 0 / 0.9808 GB, free: 62.06 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001531/2.268, allocations: 51.73 kB / 0.9808 GB, free: 62.02 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001357/2.269, allocations: 113.9 kB / 0.9809 GB, free: 61.91 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002495/2.271, allocations: 1.776 MB / 0.9827 GB, free: 60.12 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0107/2.282, allocations: 6.365 MB / 0.9889 GB, free: 53.55 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001494/2.283, allocations: 1.174 MB / 0.99 GB, free: 52.37 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0051/2.288, allocations: 4.164 MB / 0.9941 GB, free: 47.83 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.915e-05/2.288, allocations: 51.55 kB / 0.9941 GB, free: 47.77 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001005/2.29, allocations: 210.5 kB / 0.9943 GB, free: 47.57 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 2.816e-06/2.29, allocations: 0 / 0.9943 GB, free: 47.57 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01646/2.306, allocations: 5.358 MB / 0.9996 GB, free: 42.15 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.601e-05/2.306, allocations: 145.5 kB / 0.9997 GB, free: 41.98 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/2.308, allocations: 1.099 MB / 1.001 GB, free: 40.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/2.308, allocations: 49.7 kB / 1.001 GB, free: 40.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003693/2.308, allocations: 0.5973 MB / 1.001 GB, free: 40.22 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002911/2.308, allocations: 390.1 kB / 1.002 GB, free: 39.84 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.385e-05/2.309, allocations: 28 kB / 1.002 GB, free: 39.82 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/2.309, allocations: 369.9 kB / 1.002 GB, free: 39.45 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008627/2.31, allocations: 0.6324 MB / 1.003 GB, free: 38.82 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/2.311, allocations: 0.9704 MB / 1.004 GB, free: 37.71 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009984/2.312, allocations: 0.7555 MB / 1.004 GB, free: 36.96 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/2.312, allocations: 8 kB / 1.004 GB, free: 36.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003073/2.315, allocations: 2.097 MB / 1.007 GB, free: 34.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007192/2.315, allocations: 3.524 MB / 1.01 GB, free: 31.07 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/2.315, allocations: 8 kB / 1.01 GB, free: 31.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006827/2.322, allocations: 1.218 MB / 1.011 GB, free: 29.86 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/2.324, allocations: 295.5 kB / 1.011 GB, free: 29.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/2.326, allocations: 1.537 MB / 1.013 GB, free: 28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001967/2.328, allocations: 95.72 kB / 1.013 GB, free: 27.91 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003595/2.328, allocations: 71.95 kB / 1.013 GB, free: 27.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/2.328, allocations: 4 kB / 1.013 GB, free: 27.83 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003695/2.332, allocations: 1.887 MB / 1.015 GB, free: 25.95 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.844e-05/2.332, allocations: 8 kB / 1.015 GB, free: 25.94 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00628/2.338, allocations: 1.06 MB / 1.016 GB, free: 24.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/2.34, allocations: 303.5 kB / 1.016 GB, free: 24.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/2.342, allocations: 1.372 MB / 1.018 GB, free: 23.19 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002024/2.344, allocations: 83.8 kB / 1.018 GB, free: 23.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003999/2.345, allocations: 67.97 kB / 1.018 GB, free: 23.04 MB / 458.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.001294/2.346, allocations: 460.6 kB / 1.018 GB, free: 22.58 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005723/2.346, allocations: 146.2 kB / 1.018 GB, free: 22.43 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004551/2.351, allocations: 2.026 MB / 1.02 GB, free: 20.39 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/2.351, allocations: 15.28 kB / 1.02 GB, free: 20.38 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/2.351, allocations: 0 / 1.02 GB, free: 20.38 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/2.351, allocations: 7.969 kB / 1.02 GB, free: 20.38 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006066/2.357, allocations: 3.444 MB / 1.024 GB, free: 16.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/2.357, allocations: 0 / 1.024 GB, free: 16.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009378/2.358, allocations: 195.8 kB / 1.024 GB, free: 16.71 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003622/2.362, allocations: 0.9481 MB / 1.025 GB, free: 15.77 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/2.362, allocations: 35.98 kB / 1.025 GB, free: 15.73 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002033/2.364, allocations: 1.568 MB / 1.026 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/2.364, allocations: 0 / 1.026 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004151/2.368, allocations: 2.751 MB / 1.029 GB, free: 11.37 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001217/2.369, allocations: 403 kB / 1.029 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/2.37, allocations: 23.98 kB / 1.029 GB, free: 10.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001558/2.372, allocations: 91.83 kB / 1.03 GB, free: 10.84 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/2.372, allocations: 105.2 kB / 1.03 GB, free: 10.74 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001557/2.372, allocations: 47.97 kB / 1.03 GB, free: 10.69 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001586/2.374, allocations: 0.8363 MB / 1.031 GB, free: 9.852 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.51e-07/2.374, allocations: 0 / 1.031 GB, free: 9.852 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004968/2.379, allocations: 1.249 MB / 1.032 GB, free: 8.602 MB / 458.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.007881/2.386, allocations: 4.271 MB / 1.036 GB, free: 4.395 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006067/2.393, allocations: 2.612 MB / 1.038 GB, free: 1.789 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.334e-06/2.393, allocations: 0 / 1.038 GB, free: 1.789 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00171/2.394, allocations: 0.8321 MB / 1.039 GB, free: 0.957 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003471/2.398, allocations: 0.5988 MB / 1.04 GB, free: 392 kB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.328/2.726, allocations: 10.8 MB / 1.05 GB, free: 70 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007656/2.727, allocations: 1.316 MB / 1.052 GB, free: 69.28 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002257/2.729, allocations: 0.562 MB / 1.052 GB, free: 69.26 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007664/2.73, allocations: 0.545 MB / 1.053 GB, free: 69.26 MB / 458.7 MB Notification: Performance of SimCode: time 1.162e-06/2.73, allocations: 0 / 1.053 GB, free: 69.26 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09689/2.827, allocations: 54.27 MB / 1.106 GB, free: 66.95 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000195/2.827, allocations: 208.8 kB / 1.106 GB, free: 66.7 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.038/6.865, allocations: 0 / 1.106 GB, free: 66.7 MB / 458.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