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.001564/0.001564, allocations: 176.6 kB / 8.35 MB, free: 0.7188 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 221.5 MB / 230.3 MB, free: 7.527 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.0009112/0.0009111, allocations: 100.6 kB / 281.2 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.573e-05/1.574e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1077, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8113/0.919, allocations: 321 MB / 0.6919 GB, free: 7.766 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.9193, allocations: 80.89 kB / 0.692 GB, free: 7.727 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.197/2.116, allocations: 272.7 MB / 0.9584 GB, free: 72.67 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.583e-06/2.116, allocations: 0 / 0.9584 GB, free: 72.67 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003863/2.116, allocations: 38.12 kB / 0.9584 GB, free: 72.66 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.008599/2.125, allocations: 1.816 MB / 0.9602 GB, free: 71.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.686e-05/2.125, allocations: 10.03 kB / 0.9602 GB, free: 71.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009607/2.126, allocations: 172.5 kB / 0.9604 GB, free: 71.61 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002886/2.129, allocations: 1.118 MB / 0.9615 GB, free: 71.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/2.129, allocations: 146.3 kB / 0.9616 GB, free: 71.16 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001767/2.129, allocations: 56.5 kB / 0.9616 GB, free: 71.16 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002766/2.132, allocations: 1.6 MB / 0.9632 GB, free: 71.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002654/2.135, allocations: 1.597 MB / 0.9648 GB, free: 70.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.249e-05/2.135, allocations: 3.688 kB / 0.9648 GB, free: 70.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001393/2.135, allocations: 0 / 0.9648 GB, free: 70.99 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001454/2.135, allocations: 114.7 kB / 0.9649 GB, free: 70.98 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01149/2.147, allocations: 6.125 MB / 0.9709 GB, free: 69.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/2.148, allocations: 1.117 MB / 0.972 GB, free: 69 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008407/2.149, allocations: 0.6769 MB / 0.9726 GB, free: 68.99 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005765/2.155, allocations: 4.183 MB / 0.9767 GB, free: 66.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/2.155, allocations: 50.39 kB / 0.9767 GB, free: 66.6 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001124/2.156, allocations: 169.1 kB / 0.9769 GB, free: 66.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=97): time 3.146e-06/2.156, allocations: 0 / 0.9769 GB, free: 66.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=112): time 0.01168/2.168, allocations: 4.112 MB / 0.9809 GB, free: 65.92 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/2.168, allocations: 146.9 kB / 0.9811 GB, free: 65.76 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/2.169, allocations: 0.8136 MB / 0.9819 GB, free: 65.39 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/2.169, allocations: 29.48 kB / 0.9819 GB, free: 65.36 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003348/2.17, allocations: 0.6055 MB / 0.9825 GB, free: 64.87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002961/2.17, allocations: 377.1 kB / 0.9828 GB, free: 64.58 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.404e-05/2.17, allocations: 0 / 0.9828 GB, free: 64.58 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.191e-05/2.17, allocations: 358.2 kB / 0.9832 GB, free: 64.26 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009823/2.171, allocations: 0.6064 MB / 0.9838 GB, free: 64.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/2.172, allocations: 0.9312 MB / 0.9847 GB, free: 63.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00472/2.177, allocations: 1.358 MB / 0.986 GB, free: 63.07 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/2.177, allocations: 3.406 kB / 0.986 GB, free: 63.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.007165/2.184, allocations: 2.584 MB / 0.9885 GB, free: 62.33 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008826/2.185, allocations: 3.494 MB / 0.9919 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.826e-05/2.185, allocations: 9.906 kB / 0.992 GB, free: 58.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005536/2.191, allocations: 1.071 MB / 0.993 GB, free: 58.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/2.192, allocations: 296.5 kB / 0.9933 GB, free: 58.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00418/2.196, allocations: 1.877 MB / 0.9951 GB, free: 57.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002148/2.198, allocations: 60.72 kB / 0.9952 GB, free: 57.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001948/2.199, allocations: 68.53 kB / 0.9952 GB, free: 57.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/2.199, allocations: 11.61 kB / 0.9953 GB, free: 57.48 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005771/2.204, allocations: 2.296 MB / 0.9975 GB, free: 56.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/2.204, allocations: 11 kB / 0.9975 GB, free: 56.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005474/2.21, allocations: 1.005 MB / 0.9985 GB, free: 56.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001469/2.211, allocations: 301.9 kB / 0.9988 GB, free: 56.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002952/2.214, allocations: 1.623 MB / 1 GB, free: 55.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001752/2.216, allocations: 58.25 kB / 1 GB, free: 55.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001667/2.216, allocations: 66.2 kB / 1 GB, free: 55.86 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0004868/2.217, allocations: 143.5 kB / 1.001 GB, free: 55.72 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004681/2.222, allocations: 1.814 MB / 1.002 GB, free: 55.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002453/2.222, allocations: 134.4 kB / 1.003 GB, free: 54.97 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005373/2.227, allocations: 2.136 MB / 1.005 GB, free: 53.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.394e-05/2.227, allocations: 16 kB / 1.005 GB, free: 53.25 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/2.227, allocations: 0 / 1.005 GB, free: 53.25 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/2.227, allocations: 6.469 kB / 1.005 GB, free: 53.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007236/2.235, allocations: 3.455 MB / 1.008 GB, free: 50.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.59e-06/2.235, allocations: 4.406 kB / 1.008 GB, free: 50.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008685/2.235, allocations: 195.7 kB / 1.008 GB, free: 50.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003459/2.239, allocations: 0.8039 MB / 1.009 GB, free: 49.27 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001246/2.239, allocations: 19.97 kB / 1.009 GB, free: 49.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004023/2.243, allocations: 1.872 MB / 1.011 GB, free: 47.36 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/2.243, allocations: 0 / 1.011 GB, free: 47.36 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006058/2.249, allocations: 2.879 MB / 1.014 GB, free: 44.47 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008597/2.25, allocations: 378.6 kB / 1.014 GB, free: 44.08 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001983/2.25, allocations: 0 / 1.014 GB, free: 44.08 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001152/2.251, allocations: 58.5 kB / 1.014 GB, free: 44.03 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002042/2.252, allocations: 101.2 kB / 1.014 GB, free: 43.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001086/2.252, allocations: 50.03 kB / 1.014 GB, free: 43.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0007891/2.253, allocations: 0.6045 MB / 1.015 GB, free: 43.27 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/2.253, allocations: 0 / 1.015 GB, free: 43.27 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003954/2.257, allocations: 1.167 MB / 1.016 GB, free: 42.1 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.008353/2.265, allocations: 4.361 MB / 1.02 GB, free: 37.85 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004994/2.27, allocations: 2.462 MB / 1.023 GB, free: 35.39 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.436e-06/2.27, allocations: 4.75 kB / 1.023 GB, free: 35.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001654/2.272, allocations: 0.7928 MB / 1.023 GB, free: 34.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003016/2.275, allocations: 0.5303 MB / 1.024 GB, free: 34.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007179/2.282, allocations: 2.953 MB / 1.027 GB, free: 31.14 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006638/2.283, allocations: 1.32 MB / 1.028 GB, free: 29.79 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002255/2.285, allocations: 0.5648 MB / 1.029 GB, free: 29.25 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007583/2.286, allocations: 0.5188 MB / 1.029 GB, free: 28.73 MB / 442.7 MB Notification: Performance of SimCode: time 1.243e-06/2.286, allocations: 0 / 1.029 GB, free: 28.73 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4505/2.736, allocations: 50.1 MB / 1.078 GB, free: 64.12 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001826/2.736, allocations: 125.4 kB / 1.078 GB, free: 63.94 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.271/7.008, allocations: 4.5 kB / 1.078 GB, free: 63.94 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