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.0009104/0.0009104, allocations: 93.42 kB / 16.3 MB, free: 5.996 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.0009256/0.000926, allocations: 187 kB / 17.2 MB, free: 5.914 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.358/1.358, allocations: 223.2 MB / 241.1 MB, free: 388 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003502/0.0003503, allocations: 8 kB / 300.8 MB, free: 6.379 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09605/0.09642, allocations: 50.41 MB / 351.2 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling): time 0.003329/0.09979, allocations: 2.765 MB / 354 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001283/0.1011, allocations: 0.8652 MB / 354.9 MB, free: 304 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.1013, allocations: 11.94 kB / 354.9 MB, free: 292 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002088/0.1015, allocations: 67.56 kB / 354.9 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004584/0.102, allocations: 195.4 kB / 355.1 MB, free: 28 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002375/0.1022, allocations: 91.89 kB / 355.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005714/0.1028, allocations: 458.5 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002411/0.1031, allocations: 146.6 kB / 355.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.1033, allocations: 195.3 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000294/0.1036, allocations: 243 kB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.687e-05/0.1037, allocations: 28 kB / 356.3 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.1038, allocations: 32 kB / 356.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.104, allocations: 87.67 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.1041, allocations: 125.5 kB / 356.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004115/0.1045, allocations: 450.7 kB / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.1045, allocations: 0 / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1045, allocations: 0 / 356.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.1045, allocations: 0 / 356.9 MB, free: 14.2 MB / 302.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.001193/0.1057, allocations: 0.7571 MB / 357.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1058, allocations: 12.03 kB / 357.7 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001144/0.1059, allocations: 83.42 kB / 357.8 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.106, allocations: 59.34 kB / 357.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005549/0.1066, allocations: 354 kB / 358.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.354e-05/0.1067, allocations: 58.7 kB / 358.3 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.101e-05/0.1067, allocations: 39.98 kB / 358.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000658/0.1074, allocations: 466.2 kB / 358.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.1074, allocations: 3.953 kB / 358.8 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.318e-05/0.1075, allocations: 16 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.1075, allocations: 8 kB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005391/0.1081, allocations: 291.8 kB / 359.1 MB, free: 11.91 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.002055/0.1101, allocations: 1.285 MB / 360.3 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.1113, allocations: 434.3 kB / 360.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.18e-05/0.1114, allocations: 7.984 kB / 360.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.1114, allocations: 42.66 kB / 360.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.633e-06/0.1114, allocations: 11.88 kB / 360.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.001098/0.1125, allocations: 0.6081 MB / 361.4 MB, free: 9.352 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001984/0.1127, allocations: 449 kB / 361.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005016/0.1132, allocations: 421.9 kB / 362.3 MB, free: 8.383 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.1133, allocations: 33.7 kB / 362.3 MB, free: 8.344 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000163/0.1135, allocations: 228.4 kB / 362.5 MB, free: 8.117 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.667e-05/0.1136, allocations: 118.3 kB / 362.7 MB, free: 8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.1136, allocations: 4 kB / 362.7 MB, free: 7.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.1137, allocations: 362.7 kB / 363 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002234/0.114, allocations: 108.6 kB / 363.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000323/0.1143, allocations: 260 kB / 363.4 MB, free: 7.219 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.1146, allocations: 163.2 kB / 363.5 MB, free: 7.055 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1146, allocations: 4 kB / 363.5 MB, free: 7.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007702/0.1154, allocations: 424.9 kB / 364 MB, free: 6.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.405e-05/0.1154, allocations: 29.7 kB / 364 MB, free: 6.582 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.1154, allocations: 4 kB / 364 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001608/0.1156, allocations: 53.7 kB / 364 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003104/0.1159, allocations: 71.89 kB / 364.1 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0025/0.1184, allocations: 2.764 MB / 366.9 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003689/0.1188, allocations: 51.58 kB / 366.9 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.953e-05/0.1188, allocations: 12 kB / 366.9 MB, free: 3.359 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.0002049/0.119, allocations: 165.8 kB / 367.1 MB, free: 3.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.119e-05/0.1191, allocations: 51.8 kB / 367.2 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.122e-05/0.1192, allocations: 52.7 kB / 367.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1192, allocations: 7.984 kB / 367.2 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.1193, allocations: 0 / 367.2 MB, free: 3.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007799/0.12, allocations: 0.657 MB / 367.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.1213, allocations: 0.8918 MB / 368.8 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.1213, allocations: 0 / 368.8 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003659/0.1217, allocations: 67.91 kB / 368.8 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.475e-05/0.1217, allocations: 0 / 368.8 MB, free: 1.297 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.1218, allocations: 11.98 kB / 368.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.1218, allocations: 7.953 kB / 368.8 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.1218, allocations: 0 / 368.8 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008006/0.1226, allocations: 0.5309 MB / 369.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001743/0.1228, allocations: 160.4 kB / 369.5 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.096e-05/0.1228, allocations: 8 kB / 369.5 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003013/0.1232, allocations: 23.92 kB / 369.6 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.916e-05/0.1232, allocations: 23.92 kB / 369.6 MB, free: 0.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.1232, allocations: 8 kB / 369.6 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000307/0.1235, allocations: 291.1 kB / 369.9 MB, free: 216 kB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1236, allocations: 0 / 369.9 MB, free: 216 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005198/0.1241, allocations: 139.8 kB / 370 MB, free: 76 kB / 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.2102/0.3342, allocations: 1.066 MB / 371.1 MB, free: 23.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001076/0.3354, allocations: 0.5613 MB / 371.6 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3354, allocations: 1 kB / 371.6 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002612/0.3356, allocations: 135.2 kB / 371.8 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006235/0.3363, allocations: 111.5 kB / 371.9 MB, free: 23.65 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002164/0.3385, allocations: 1.554 MB / 373.4 MB, free: 22.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.3387, allocations: 0.8315 MB / 374.3 MB, free: 22.04 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004185/0.3392, allocations: 53.67 kB / 374.3 MB, free: 22.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000196/0.3394, allocations: 159.2 kB / 374.5 MB, free: 22.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3394, allocations: 0 / 374.5 MB, free: 22.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.367, allocations: 10.86 MB / 385.3 MB, free: 19 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/0.3672, allocations: 221 kB / 385.6 MB, free: 18.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.146/2.513, allocations: 5.156 kB / 385.6 MB, free: 18.75 MB / 302.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