Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 197.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009058/0.0009058, allocations: 94.06 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.963e-05/5.987e-05, allocations: 7.984 kB / 350.6 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1175, allocations: 51.47 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.958/1.076, allocations: 322.5 MB / 0.7076 GB, free: 26.62 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003069/1.076, allocations: 78.27 kB / 0.7077 GB, free: 26.58 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.532/2.608, allocations: 273.7 MB / 0.975 GB, free: 64.07 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.555e-06/2.608, allocations: 2.875 kB / 0.975 GB, free: 64.07 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003465/2.609, allocations: 41.61 kB / 0.975 GB, free: 64.07 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.009992/2.619, allocations: 1.815 MB / 0.9768 GB, free: 63.23 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.488e-05/2.619, allocations: 14.84 kB / 0.9768 GB, free: 63.23 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001057/2.62, allocations: 163.7 kB / 0.9769 GB, free: 63.19 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001741/2.622, allocations: 171.6 kB / 0.9771 GB, free: 63.11 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004731/2.626, allocations: 1.127 MB / 0.9782 GB, free: 62.77 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002634/2.627, allocations: 175.6 kB / 0.9784 GB, free: 62.68 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007029/2.627, allocations: 104.3 kB / 0.9785 GB, free: 62.68 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005865/2.633, allocations: 1.737 MB / 0.9802 GB, free: 62.5 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.283e-05/2.633, allocations: 3.125 kB / 0.9802 GB, free: 62.5 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006218/2.634, allocations: 41.44 kB / 0.9802 GB, free: 62.5 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002678/2.634, allocations: 112.5 kB / 0.9803 GB, free: 62.5 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005843/2.64, allocations: 1.745 MB / 0.982 GB, free: 62.48 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01829/2.659, allocations: 6.365 MB / 0.9882 GB, free: 60.48 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002734/2.661, allocations: 1.157 MB / 0.9894 GB, free: 60.45 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001614/2.663, allocations: 0.7009 MB / 0.9901 GB, free: 60.44 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008009/2.671, allocations: 4.262 MB / 0.9942 GB, free: 58.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/2.671, allocations: 47.75 kB / 0.9943 GB, free: 58.05 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001592/2.673, allocations: 210.5 kB / 0.9945 GB, free: 57.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 1.106e-05/2.673, allocations: 0 / 0.9945 GB, free: 57.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01058/2.683, allocations: 3.783 MB / 0.9982 GB, free: 57.43 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.102e-05/2.684, allocations: 141.6 kB / 0.9983 GB, free: 57.28 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002572/2.686, allocations: 1.098 MB / 0.9994 GB, free: 57.11 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002854/2.686, allocations: 45.2 kB / 0.9994 GB, free: 57.08 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000647/2.687, allocations: 0.5972 MB / 1 GB, free: 56.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005298/2.688, allocations: 388.1 kB / 1 GB, free: 56.59 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/2.688, allocations: 27.06 kB / 1 GB, free: 56.59 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/2.688, allocations: 362.8 kB / 1.001 GB, free: 56.29 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/2.689, allocations: 0.6273 MB / 1.001 GB, free: 56.29 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001349/2.691, allocations: 0.9508 MB / 1.002 GB, free: 55.93 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001452/2.692, allocations: 0.7489 MB / 1.003 GB, free: 55.91 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/2.692, allocations: 3.844 kB / 1.003 GB, free: 55.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004451/2.697, allocations: 2.073 MB / 1.005 GB, free: 55.77 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001096/2.698, allocations: 3.517 MB / 1.008 GB, free: 52.14 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.926e-05/2.698, allocations: 11.56 kB / 1.008 GB, free: 52.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007251/2.705, allocations: 1.215 MB / 1.01 GB, free: 52.12 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001652/2.707, allocations: 293.2 kB / 1.01 GB, free: 52.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002797/2.71, allocations: 1.525 MB / 1.011 GB, free: 51.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002347/2.712, allocations: 92.08 kB / 1.012 GB, free: 51.57 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005881/2.713, allocations: 69.38 kB / 1.012 GB, free: 51.57 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/2.713, allocations: 3.969 kB / 1.012 GB, free: 51.57 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00426/2.717, allocations: 1.856 MB / 1.013 GB, free: 51.53 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.297e-05/2.717, allocations: 11.66 kB / 1.013 GB, free: 51.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006239/2.723, allocations: 1.057 MB / 1.014 GB, free: 51.52 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001775/2.725, allocations: 304.4 kB / 1.015 GB, free: 51.52 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002693/2.728, allocations: 1.357 MB / 1.016 GB, free: 50.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002815/2.731, allocations: 89.06 kB / 1.016 GB, free: 50.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005899/2.731, allocations: 70.91 kB / 1.016 GB, free: 50.97 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 () * 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.0008714/2.732, allocations: 186.3 kB / 1.016 GB, free: 50.86 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008384/2.733, allocations: 152.5 kB / 1.017 GB, free: 50.79 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006886/2.74, allocations: 1.996 MB / 1.018 GB, free: 50.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.858e-05/2.74, allocations: 21.11 kB / 1.019 GB, free: 50.67 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.642e-05/2.74, allocations: 0 / 1.019 GB, free: 50.67 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.19e-05/2.74, allocations: 7.797 kB / 1.019 GB, free: 50.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009041/2.749, allocations: 3.399 MB / 1.022 GB, free: 50.29 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.148e-05/2.749, allocations: 7.062 kB / 1.022 GB, free: 50.29 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/2.75, allocations: 190.5 kB / 1.022 GB, free: 50.29 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003989/2.754, allocations: 0.9446 MB / 1.023 GB, free: 50.28 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002761/2.755, allocations: 32.97 kB / 1.023 GB, free: 50.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002495/2.757, allocations: 1.557 MB / 1.024 GB, free: 49.73 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/2.757, allocations: 0 / 1.024 GB, free: 49.73 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005443/2.763, allocations: 2.707 MB / 1.027 GB, free: 49.42 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001595/2.764, allocations: 404.7 kB / 1.028 GB, free: 49.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006251/2.765, allocations: 23.92 kB / 1.028 GB, free: 49.14 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001935/2.767, allocations: 93.62 kB / 1.028 GB, free: 49.12 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/2.767, allocations: 99 kB / 1.028 GB, free: 49.11 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002003/2.767, allocations: 48.59 kB / 1.028 GB, free: 49.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001779/2.769, allocations: 0.8265 MB / 1.029 GB, free: 48.75 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.6e-07/2.769, allocations: 0.5625 kB / 1.029 GB, free: 48.75 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006334/2.776, allocations: 1.256 MB / 1.03 GB, free: 48.44 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 () * 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.009871/2.785, allocations: 4.241 MB / 1.034 GB, free: 46.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007663/2.793, allocations: 2.62 MB / 1.037 GB, free: 45.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.288e-05/2.793, allocations: 3.938 kB / 1.037 GB, free: 45.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002244/2.796, allocations: 0.8198 MB / 1.037 GB, free: 45.42 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004437/2.8, allocations: 0.5981 MB / 1.038 GB, free: 45.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/2.812, allocations: 3.113 MB / 1.041 GB, free: 44.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001365/2.813, allocations: 1.321 MB / 1.042 GB, free: 43.39 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003616/2.817, allocations: 0.6721 MB / 1.043 GB, free: 43.35 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00097/2.818, allocations: 0.5269 MB / 1.043 GB, free: 42.96 MB / 458.7 MB Notification: Performance of SimCode: time 1.763e-06/2.818, allocations: 4 kB / 1.043 GB, free: 42.95 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/2.935, allocations: 56.71 MB / 1.099 GB, free: 4.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001973/2.935, allocations: 170.9 kB / 1.099 GB, free: 4.277 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.534/7.469, allocations: 0 / 1.099 GB, free: 4.277 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_Tanks_ThreeTanks.fmu > Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat