Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001407/0.001407, allocations: 197 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.598/1.598, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001071/0.001071, allocations: 88.22 kB / 292.1 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.361e-05/4.363e-05, allocations: 8 kB / 350.6 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1363/0.1364, allocations: 51.49 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5672, allocations: 82.39 MB / 484.5 MB, free: 7.102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.5675, allocations: 67.48 kB / 484.6 MB, free: 7.07 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04135/0.6089, allocations: 16.21 MB / 0.4891 GB, free: 8.461 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.6089, allocations: 0.6562 kB / 0.4891 GB, free: 8.461 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.997e-05/0.609, allocations: 16 kB / 0.4891 GB, free: 8.445 MB / 362.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.002105/0.6111, allocations: 1.07 MB / 0.4901 GB, free: 7.316 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.312e-05/0.6112, allocations: 8.031 kB / 0.4901 GB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001942/0.6114, allocations: 119.6 kB / 0.4902 GB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001833/0.6116, allocations: 106.9 kB / 0.4903 GB, free: 7.078 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008967/0.6125, allocations: 0.544 MB / 0.4909 GB, free: 6.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002256/0.6127, allocations: 151.5 kB / 0.491 GB, free: 6.332 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.6128, allocations: 63.91 kB / 0.4911 GB, free: 6.27 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.6141, allocations: 0.7954 MB / 0.4919 GB, free: 5.375 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.179e-05/0.6141, allocations: 3.984 kB / 0.4919 GB, free: 5.371 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.617e-05/0.6142, allocations: 28 kB / 0.4919 GB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.422e-05/0.6142, allocations: 12 kB / 0.4919 GB, free: 5.332 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009322/0.6151, allocations: 0.5011 MB / 0.4924 GB, free: 4.828 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003653/0.6188, allocations: 2.12 MB / 0.4945 GB, free: 2.617 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001207/0.62, allocations: 0.9172 MB / 0.4954 GB, free: 1.613 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004948/0.6205, allocations: 323.2 kB / 0.4957 GB, free: 1.297 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.049e-05/0.6206, allocations: 16.75 kB / 0.4957 GB, free: 1.281 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.53e-05/0.6207, allocations: 55.34 kB / 0.4957 GB, free: 1.219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 2.164e-06/0.6207, allocations: 0.9375 kB / 0.4957 GB, free: 1.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002228/0.6229, allocations: 0.8851 MB / 0.4966 GB, free: 320 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004352/0.6233, allocations: 0.8235 MB / 0.4974 GB, free: 15.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007602/0.6241, allocations: 0.5509 MB / 0.4979 GB, free: 14.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.754e-05/0.6242, allocations: 45.7 kB / 0.498 GB, free: 14.68 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000285/0.6245, allocations: 345 kB / 0.4983 GB, free: 14.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002407/0.6247, allocations: 264.1 kB / 0.4986 GB, free: 14.08 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.879e-05/0.6248, allocations: 16 kB / 0.4986 GB, free: 14.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002643/0.6251, allocations: 386.7 kB / 0.4989 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004057/0.6255, allocations: 221.5 kB / 0.4992 GB, free: 13.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006727/0.6261, allocations: 0.4955 MB / 0.4996 GB, free: 12.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005254/0.6267, allocations: 348 kB / 0.5 GB, free: 12.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.6267, allocations: 0 / 0.5 GB, free: 12.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002307/0.629, allocations: 1.038 MB / 0.501 GB, free: 11.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.539e-05/0.6291, allocations: 89.09 kB / 0.5011 GB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.6291, allocations: 0 / 0.5011 GB, free: 11.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006496/0.6298, allocations: 212.3 kB / 0.5013 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006388/0.6304, allocations: 151.8 kB / 0.5014 GB, free: 10.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006965/0.6374, allocations: 6.221 MB / 0.5075 GB, free: 4.215 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001001/0.6384, allocations: 115.4 kB / 0.5076 GB, free: 4.102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/0.6385, allocations: 25.69 kB / 0.5076 GB, free: 4.078 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 () * 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.0002272/0.6388, allocations: 152.9 kB / 0.5078 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001549/0.6389, allocations: 87.02 kB / 0.5079 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002532/0.6392, allocations: 96.05 kB / 0.5079 GB, free: 3.734 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.6392, allocations: 12 kB / 0.508 GB, free: 3.723 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/0.6392, allocations: 0 / 0.508 GB, free: 3.723 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002061/0.6413, allocations: 1.177 MB / 0.5091 GB, free: 2.43 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003727/0.645, allocations: 1.878 MB / 0.5109 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.645, allocations: 4 kB / 0.5109 GB, free: 488 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006931/0.6457, allocations: 148 kB / 0.5111 GB, free: 340 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004395/0.6462, allocations: 166.5 kB / 0.5112 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.296e-05/0.6463, allocations: 23.98 kB / 0.5113 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005683/0.652, allocations: 4.784 MB / 0.5159 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.652, allocations: 0 / 0.5159 GB, free: 10.96 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002961/0.655, allocations: 1.289 MB / 0.5172 GB, free: 9.641 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005574/0.6556, allocations: 239.8 kB / 0.5174 GB, free: 9.387 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.6557, allocations: 24 kB / 0.5175 GB, free: 9.363 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005437/0.6562, allocations: 59.95 kB / 0.5175 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.6565, allocations: 65.44 kB / 0.5176 GB, free: 9.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.6565, allocations: 20 kB / 0.5176 GB, free: 9.223 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006943/0.6572, allocations: 443.2 kB / 0.518 GB, free: 8.793 MB / 394.7 MB Notification: Performance of sort global known variables: time 3e-07/0.6572, allocations: 0 / 0.518 GB, free: 8.793 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001018/0.6582, allocations: 287.7 kB / 0.5183 GB, free: 8.512 MB / 394.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 () * 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.003251/0.6615, allocations: 1.877 MB / 0.5201 GB, free: 6.602 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.6635, allocations: 1.243 MB / 0.5213 GB, free: 5.27 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.6635, allocations: 0 / 0.5213 GB, free: 5.27 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00127/0.6648, allocations: 0.7281 MB / 0.522 GB, free: 4.504 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001158/0.666, allocations: 216.4 kB / 0.5223 GB, free: 4.305 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002948/0.669, allocations: 1.398 MB / 0.5236 GB, free: 2.867 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006271/0.6696, allocations: 0.9674 MB / 0.5246 GB, free: 1.871 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000438/0.6701, allocations: 94.2 kB / 0.5247 GB, free: 1.777 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/0.6705, allocations: 295.3 kB / 0.5249 GB, free: 1.488 MB / 394.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6705, allocations: 0 / 0.5249 GB, free: 1.488 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07122/0.7417, allocations: 22.75 MB / 0.5472 GB, free: 11.21 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002949/0.7421, allocations: 188.3 kB / 0.5473 GB, free: 10.97 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.864/3.606, allocations: 0 / 0.5473 GB, free: 10.97 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat