Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",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.000779/0.0007789, allocations: 94.23 kB / 16.31 MB, free: 6.008 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.0009325/0.0009326, allocations: 185.4 kB / 17.21 MB, free: 5.902 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.395/1.395, allocations: 223.2 MB / 241.2 MB, free: 5.387 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002764/0.0002764, allocations: 7.281 kB / 300.9 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1218, allocations: 50.43 MB / 351.3 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling): time 0.003532/0.1254, allocations: 2.997 MB / 354.3 MB, free: 8.527 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.1267, allocations: 0.8377 MB / 355.2 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001715/0.1269, allocations: 4 kB / 355.2 MB, free: 7.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002558/0.1272, allocations: 75.45 kB / 355.2 MB, free: 7.605 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003422/0.1275, allocations: 158.7 kB / 355.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.1278, allocations: 91.89 kB / 355.5 MB, free: 7.359 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005446/0.1283, allocations: 0.5704 MB / 356.1 MB, free: 6.789 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002701/0.1286, allocations: 150.3 kB / 356.2 MB, free: 6.633 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.1288, allocations: 211.2 kB / 356.4 MB, free: 6.426 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002777/0.1291, allocations: 247 kB / 356.7 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.145e-05/0.1292, allocations: 35.94 kB / 356.7 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.245e-05/0.1293, allocations: 36 kB / 356.7 MB, free: 6.113 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.097e-05/0.1294, allocations: 91.59 kB / 356.8 MB, free: 6.023 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.1295, allocations: 129.5 kB / 356.9 MB, free: 5.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004035/0.1299, allocations: 486.6 kB / 357.4 MB, free: 5.414 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.1299, allocations: 0 / 357.4 MB, free: 5.414 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1299, allocations: 0 / 357.4 MB, free: 5.414 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.1299, allocations: 0 / 357.4 MB, free: 5.414 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001168/0.1311, allocations: 0.7493 MB / 358.2 MB, free: 4.605 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.1311, allocations: 12.03 kB / 358.2 MB, free: 4.594 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.1313, allocations: 79.52 kB / 358.3 MB, free: 4.508 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001014/0.1314, allocations: 67.25 kB / 358.3 MB, free: 4.441 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004923/0.1319, allocations: 374 kB / 358.7 MB, free: 4.035 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.682e-05/0.132, allocations: 58.7 kB / 358.7 MB, free: 3.973 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.132, allocations: 32 kB / 358.8 MB, free: 3.941 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006996/0.1327, allocations: 478 kB / 359.2 MB, free: 3.422 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.1328, allocations: 3.953 kB / 359.2 MB, free: 3.418 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.1328, allocations: 16 kB / 359.3 MB, free: 3.402 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.14e-05/0.1328, allocations: 8 kB / 359.3 MB, free: 3.395 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005538/0.1334, allocations: 287.8 kB / 359.5 MB, free: 3.109 MB / 286.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.00198/0.1354, allocations: 1.32 MB / 360.9 MB, free: 1.695 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/0.1364, allocations: 442.9 kB / 361.3 MB, free: 1.234 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002534/0.1367, allocations: 148.8 kB / 361.4 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.1367, allocations: 7.984 kB / 361.5 MB, free: 1.078 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.1368, allocations: 38.56 kB / 361.5 MB, free: 1.031 MB / 286.1 MB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.1368, allocations: 3.938 kB / 361.5 MB, free: 1.027 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.001144/0.1379, allocations: 0.6154 MB / 362.1 MB, free: 372 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000216/0.1381, allocations: 449 kB / 362.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000494/0.1386, allocations: 442 kB / 363 MB, free: 15.38 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.1387, allocations: 33.7 kB / 363 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001655/0.1389, allocations: 236.4 kB / 363.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.242e-05/0.1389, allocations: 110.4 kB / 363.4 MB, free: 14.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.907e-05/0.139, allocations: 12 kB / 363.4 MB, free: 14.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1391, allocations: 350.8 kB / 363.7 MB, free: 14.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002235/0.1394, allocations: 116.6 kB / 363.8 MB, free: 14.51 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003651/0.1397, allocations: 262.5 kB / 364.1 MB, free: 14.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.14, allocations: 163.3 kB / 364.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.444e-06/0.14, allocations: 0 / 364.2 MB, free: 14.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006904/0.1407, allocations: 432.9 kB / 364.7 MB, free: 13.6 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.1408, allocations: 29.8 kB / 364.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.1408, allocations: 7.938 kB / 364.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001651/0.1409, allocations: 45.7 kB / 364.7 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002956/0.1413, allocations: 71.89 kB / 364.8 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.1435, allocations: 2.756 MB / 367.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003412/0.1438, allocations: 47.62 kB / 367.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.1439, allocations: 12 kB / 367.6 MB, free: 10.36 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002416/0.1441, allocations: 173.8 kB / 367.8 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.925e-05/0.1442, allocations: 47.44 kB / 367.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.488e-05/0.1443, allocations: 48.7 kB / 367.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.02e-06/0.1443, allocations: 4 kB / 367.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1443, allocations: 0 / 367.9 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006857/0.145, allocations: 0.6648 MB / 368.6 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001254/0.1463, allocations: 0.9113 MB / 369.5 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.736e-06/0.1463, allocations: 4 kB / 369.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003165/0.1466, allocations: 59.97 kB / 369.5 MB, free: 8.277 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.1466, allocations: 4 kB / 369.5 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.576e-05/0.1467, allocations: 11.94 kB / 369.5 MB, free: 8.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.057e-06/0.1467, allocations: 7.938 kB / 369.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1467, allocations: 0 / 369.6 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007985/0.1475, allocations: 0.5309 MB / 370.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001857/0.1477, allocations: 160.5 kB / 370.2 MB, free: 7.531 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.933e-05/0.1477, allocations: 12 kB / 370.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002709/0.148, allocations: 23.94 kB / 370.3 MB, free: 7.496 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.377e-05/0.1481, allocations: 24.03 kB / 370.3 MB, free: 7.473 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.533e-05/0.1481, allocations: 4 kB / 370.3 MB, free: 7.469 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003531/0.1485, allocations: 319.1 kB / 370.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1485, allocations: 0 / 370.6 MB, free: 7.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004345/0.1489, allocations: 131.8 kB / 370.7 MB, free: 7.031 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.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 (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001297/0.1502, allocations: 1.079 MB / 371.8 MB, free: 5.926 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009105/0.1511, allocations: 0.5636 MB / 372.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.1511, allocations: 4 kB / 372.4 MB, free: 5.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.1514, allocations: 131.8 kB / 372.5 MB, free: 5.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000677/0.1521, allocations: 141.9 kB / 372.7 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.1561, allocations: 2.722 MB / 375.4 MB, free: 2.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.1565, allocations: 0.8198 MB / 376.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002485/0.1567, allocations: 60.34 kB / 376.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002121/0.157, allocations: 163.4 kB / 376.4 MB, free: 1.199 MB / 302.1 MB Notification: Performance of SimCode: time 4.11e-07/0.157, allocations: 0 / 376.4 MB, free: 1.199 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.1871, allocations: 11.52 MB / 387.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002885/0.1874, allocations: 217 kB / 388.2 MB, free: 5.758 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.157/2.345, allocations: 4 kB / 388.2 MB, free: 5.754 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat