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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009712/0.0009713, allocations: 86.91 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 181.2 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.3 MB / 241.2 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002354/0.0002357, allocations: 4.562 kB / 300.9 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1058, allocations: 50.43 MB / 351.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass): time 0.004832/0.1106, allocations: 4.39 MB / 355.7 MB, free: 7.227 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002372/0.113, allocations: 1.177 MB / 356.9 MB, free: 6.047 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003223/0.1134, allocations: 4 kB / 356.9 MB, free: 6.043 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003554/0.1138, allocations: 111.1 kB / 357 MB, free: 5.934 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005893/0.1144, allocations: 289.7 kB / 357.3 MB, free: 5.648 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.1148, allocations: 163.7 kB / 357.5 MB, free: 5.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001115/0.1159, allocations: 1.039 MB / 358.5 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004453/0.1163, allocations: 290.5 kB / 358.8 MB, free: 4.148 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004668/0.1168, allocations: 386.6 kB / 359.2 MB, free: 3.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000498/0.1173, allocations: 462.1 kB / 359.6 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.1175, allocations: 64 kB / 359.7 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001267/0.1176, allocations: 68 kB / 359.7 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.1178, allocations: 179.3 kB / 359.9 MB, free: 3.012 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002103/0.118, allocations: 205.2 kB / 360.1 MB, free: 2.805 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007189/0.1187, allocations: 0.8803 MB / 361 MB, free: 1.922 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.1187, allocations: 0 / 361 MB, free: 1.922 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1187, allocations: 0 / 361 MB, free: 1.922 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1188, allocations: 0 / 361 MB, free: 1.922 MB / 286.1 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.002007/0.1208, allocations: 1.208 MB / 362.2 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.1208, allocations: 12.03 kB / 362.2 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001606/0.121, allocations: 115.7 kB / 362.3 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001595/0.1212, allocations: 110.8 kB / 362.4 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008334/0.122, allocations: 0.563 MB / 363 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002939/0.1223, allocations: 174.3 kB / 363.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.248e-05/0.1224, allocations: 56 kB / 363.2 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.1238, allocations: 0.8939 MB / 364.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.1238, allocations: 11.95 kB / 364.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.013e-05/0.1239, allocations: 28 kB / 364.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.581e-05/0.1239, allocations: 12 kB / 364.2 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001403/0.1253, allocations: 0.661 MB / 364.8 MB, free: 13.84 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00328/0.1286, allocations: 2.112 MB / 366.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001337/0.13, allocations: 0.8918 MB / 367.8 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008045/0.1308, allocations: 438.3 kB / 368.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.965e-05/0.1309, allocations: 12.64 kB / 368.3 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/0.1309, allocations: 51.22 kB / 368.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of pre-optimization done (n=73): time 2.385e-06/0.1309, allocations: 0 / 368.3 MB, free: 10.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.004919/0.1358, allocations: 1.988 MB / 370.3 MB, free: 8.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002973/0.1361, allocations: 0.8234 MB / 371.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007131/0.1369, allocations: 0.6215 MB / 371.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.036e-05/0.1369, allocations: 41.7 kB / 371.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.1372, allocations: 352.8 kB / 372.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001999/0.1374, allocations: 260.2 kB / 372.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.1375, allocations: 12 kB / 372.4 MB, free: 5.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001715/0.1377, allocations: 390.8 kB / 372.8 MB, free: 5.383 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006527/0.1383, allocations: 297.8 kB / 373.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008837/0.1392, allocations: 0.578 MB / 373.7 MB, free: 4.418 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007309/0.1399, allocations: 428 kB / 374.1 MB, free: 3.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.14, allocations: 4 kB / 374.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.002564/0.1425, allocations: 1.188 MB / 375.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.418e-05/0.1426, allocations: 85.11 kB / 375.4 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.1426, allocations: 0 / 375.4 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006942/0.1433, allocations: 259.2 kB / 375.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006274/0.144, allocations: 147.8 kB / 375.8 MB, free: 2.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006978/0.151, allocations: 6.491 MB / 382.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009456/0.1519, allocations: 123.4 kB / 382.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-05/0.152, allocations: 28.03 kB / 382.4 MB, free: 11.05 MB / 318.1 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 (69): * Single equations (assignments): 62 * 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.0003484/0.1524, allocations: 222.2 kB / 382.6 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.1525, allocations: 83.06 kB / 382.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001717/0.1527, allocations: 95.33 kB / 382.8 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.1527, allocations: 8 kB / 382.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.1527, allocations: 0 / 382.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002439/0.1552, allocations: 1.331 MB / 384.1 MB, free: 9.195 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00378/0.1589, allocations: 2.042 MB / 386.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.159, allocations: 0 / 386.2 MB, free: 7.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006811/0.1597, allocations: 163.7 kB / 386.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005279/0.1602, allocations: 210.6 kB / 386.5 MB, free: 6.715 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.555e-05/0.1603, allocations: 12 kB / 386.5 MB, free: 6.703 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005715/0.166, allocations: 5.067 MB / 391.6 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.166, allocations: 0 / 391.6 MB, free: 1.238 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003211/0.1692, allocations: 1.523 MB / 393.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000392/0.1696, allocations: 239.9 kB / 393.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.1697, allocations: 20 kB / 393.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005935/0.1703, allocations: 71.84 kB / 393.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.1705, allocations: 60.56 kB / 393.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.1706, allocations: 16 kB / 393.5 MB, free: 15.27 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005783/0.1711, allocations: 455 kB / 394 MB, free: 14.83 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.1712, allocations: 0 / 394 MB, free: 14.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008347/0.172, allocations: 283.6 kB / 394.3 MB, free: 14.55 MB / 334.1 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 (61): * Single equations (assignments): 58 * 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.003436/0.1754, allocations: 2.095 MB / 396.3 MB, free: 12.42 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002156/0.1776, allocations: 1.41 MB / 397.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.1776, allocations: 4 kB / 397.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001323/0.179, allocations: 0.8121 MB / 398.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001083/0.1801, allocations: 226.2 kB / 398.8 MB, free: 9.852 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009877/0.1899, allocations: 5.395 MB / 404.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009313/0.1909, allocations: 0.9518 MB / 405.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006034/0.1916, allocations: 106.4 kB / 405.2 MB, free: 3.242 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004767/0.192, allocations: 295.3 kB / 405.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of SimCode: time 1.122e-06/0.192, allocations: 0 / 405.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2138/0.4059, allocations: 23.18 MB / 428.7 MB, free: 66.01 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001345/0.406, allocations: 220.2 kB / 428.9 MB, free: 65.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.513/2.919, allocations: 0 / 428.9 MB, free: 65.77 MB / 350.1 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