Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.001006/0.001006, allocations: 181.3 kB / 16.39 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.392/1.392, 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.001173/0.001173, allocations: 91.44 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002855/0.0002857, allocations: 11.94 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2633/0.2636, allocations: 50.41 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1114/0.375, allocations: 81.64 MB / 483.2 MB, free: 14.82 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.3754, allocations: 75.97 kB / 483.3 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04488/0.4202, allocations: 16.15 MB / 499.4 MB, free: 14.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4203, allocations: 4 kB / 499.4 MB, free: 14.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.93e-05/0.4204, allocations: 19.94 kB / 499.5 MB, free: 14.45 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002274/0.4226, allocations: 1.208 MB / 0.4889 GB, free: 13.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.4227, allocations: 8.031 kB / 0.4889 GB, free: 13.17 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001866/0.4229, allocations: 115.7 kB / 0.4891 GB, free: 13.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003104/0.4232, allocations: 114.8 kB / 0.4892 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008691/0.4241, allocations: 0.5318 MB / 0.4897 GB, free: 12.36 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002029/0.4243, allocations: 146.4 kB / 0.4898 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.4244, allocations: 60 kB / 0.4899 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001561/0.426, allocations: 0.8918 MB / 0.4908 GB, free: 11.15 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.426, allocations: 3.938 kB / 0.4908 GB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.607e-05/0.4261, allocations: 28 kB / 0.4908 GB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.654e-05/0.4261, allocations: 19.98 kB / 0.4908 GB, free: 11.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.4276, allocations: 0.6532 MB / 0.4914 GB, free: 10.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003769/0.4313, allocations: 2.123 MB / 0.4935 GB, free: 8.223 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.4331, allocations: 1.067 MB / 0.4946 GB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.071e-05/0.4332, allocations: 16.64 kB / 0.4946 GB, free: 7.059 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.4332, allocations: 55.16 kB / 0.4946 GB, free: 6.996 MB / 378.7 MB Notification: Performance of pre-optimization done (n=74): time 2.244e-06/0.4332, allocations: 3.938 kB / 0.4946 GB, free: 6.992 MB / 378.7 MB Notification: Performance of matching and sorting (n=74): time 0.005373/0.4386, allocations: 1.998 MB / 0.4966 GB, free: 4.902 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003891/0.439, allocations: 0.8234 MB / 0.4974 GB, free: 3.883 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008203/0.4398, allocations: 0.5543 MB / 0.4979 GB, free: 3.32 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.47e-05/0.4399, allocations: 45.7 kB / 0.498 GB, free: 3.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002743/0.4402, allocations: 348.9 kB / 0.4983 GB, free: 2.922 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.4405, allocations: 252.2 kB / 0.4985 GB, free: 2.672 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.982e-05/0.4405, allocations: 12 kB / 0.4986 GB, free: 2.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002018/0.4407, allocations: 394.7 kB / 0.4989 GB, free: 2.266 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006634/0.4414, allocations: 293.8 kB / 0.4992 GB, free: 1.977 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009684/0.4424, allocations: 0.5711 MB / 0.4998 GB, free: 1.309 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007399/0.4431, allocations: 422.7 kB / 0.5002 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4432, allocations: 0 / 0.5002 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.2555/0.6986, allocations: 1.175 MB / 0.5013 GB, free: 94.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.361e-05/0.6987, allocations: 86.73 kB / 0.5014 GB, free: 94.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.6987, allocations: 2.672 kB / 0.5014 GB, free: 94.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009528/0.6997, allocations: 253.1 kB / 0.5016 GB, free: 94.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009142/0.7006, allocations: 148.6 kB / 0.5018 GB, free: 94.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008073/0.7087, allocations: 6.583 MB / 0.5082 GB, free: 89.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.7098, allocations: 115.6 kB / 0.5083 GB, free: 89.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.531e-05/0.7099, allocations: 32.11 kB / 0.5084 GB, free: 89.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004553/0.7103, allocations: 218.9 kB / 0.5086 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002736/0.7106, allocations: 90.31 kB / 0.5087 GB, free: 89.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001922/0.7108, allocations: 92.28 kB / 0.5087 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.7108, allocations: 6.656 kB / 0.5087 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.7109, allocations: 1.781 kB / 0.5088 GB, free: 89.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002905/0.7138, allocations: 1.337 MB / 0.5101 GB, free: 88.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003693/0.7175, allocations: 2.025 MB / 0.512 GB, free: 88.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.7175, allocations: 0 / 0.512 GB, free: 88.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006718/0.7182, allocations: 153.6 kB / 0.5122 GB, free: 88.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004778/0.7187, allocations: 222.1 kB / 0.5124 GB, free: 88.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.432e-05/0.7187, allocations: 15.22 kB / 0.5124 GB, free: 88.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005479/0.7242, allocations: 5.124 MB / 0.5174 GB, free: 84.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7242, allocations: 0 / 0.5174 GB, free: 84.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003189/0.7274, allocations: 1.517 MB / 0.5189 GB, free: 84.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004366/0.7279, allocations: 237 kB / 0.5191 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.728, allocations: 22.11 kB / 0.5191 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005273/0.7285, allocations: 58.86 kB / 0.5192 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.7287, allocations: 65.94 kB / 0.5193 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.7288, allocations: 22.39 kB / 0.5193 GB, free: 83.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007055/0.7295, allocations: 445.9 kB / 0.5197 GB, free: 83.64 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7295, allocations: 0 / 0.5197 GB, free: 83.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009428/0.7304, allocations: 300.3 kB / 0.52 GB, free: 83.59 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003385/0.7338, allocations: 2.1 MB / 0.522 GB, free: 82.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002119/0.736, allocations: 1.403 MB / 0.5234 GB, free: 81.53 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.736, allocations: 3.219 kB / 0.5234 GB, free: 81.53 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0012/0.7372, allocations: 0.8053 MB / 0.5242 GB, free: 81.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009244/0.7381, allocations: 210.5 kB / 0.5244 GB, free: 80.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003354/0.7415, allocations: 2.729 MB / 0.5271 GB, free: 79.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003898/0.7419, allocations: 0.9633 MB / 0.528 GB, free: 78.48 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003927/0.7423, allocations: 97.56 kB / 0.5281 GB, free: 78.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003339/0.7427, allocations: 298.8 kB / 0.5284 GB, free: 78.25 MB / 378.7 MB Notification: Performance of SimCode: time 8.61e-07/0.7427, allocations: 0 / 0.5284 GB, free: 78.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03918/0.7819, allocations: 22.53 MB / 0.5504 GB, free: 58.11 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/0.7821, allocations: 202.3 kB / 0.5506 GB, free: 57.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.005/3.787, allocations: 0 / 0.5506 GB, free: 57.86 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat