Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.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.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs",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.0008578/0.0008578, allocations: 95.34 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.0009039/0.000904, allocations: 184 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.371/1.371, allocations: 223.2 MB / 241.1 MB, free: 5.383 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002694/0.0002694, allocations: 3.219 kB / 300.8 MB, free: 6.055 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1322, allocations: 50.44 MB / 351.2 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.003093/0.1354, allocations: 2.488 MB / 353.7 MB, free: 9.082 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.1372, allocations: 0.9207 MB / 354.6 MB, free: 8.16 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002128/0.1374, allocations: 11.94 kB / 354.7 MB, free: 8.148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.526e-05/0.1375, allocations: 47.56 kB / 354.7 MB, free: 8.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.1377, allocations: 119.6 kB / 354.8 MB, free: 7.984 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004308/0.1382, allocations: 135.8 kB / 355 MB, free: 7.852 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004883/0.1387, allocations: 387 kB / 355.3 MB, free: 7.473 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004354/0.1391, allocations: 153.9 kB / 355.5 MB, free: 7.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.1393, allocations: 131.4 kB / 355.6 MB, free: 7.176 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000192/0.1395, allocations: 143.1 kB / 355.7 MB, free: 7.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/0.1396, allocations: 16 kB / 355.8 MB, free: 7.02 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.227e-05/0.1396, allocations: 16 kB / 355.8 MB, free: 7.004 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.523e-05/0.1397, allocations: 59.72 kB / 355.8 MB, free: 6.945 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.092e-05/0.1398, allocations: 105.4 kB / 355.9 MB, free: 6.836 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.1403, allocations: 407 kB / 356.3 MB, free: 6.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1403, allocations: 0 / 356.3 MB, free: 6.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.544e-06/0.1403, allocations: 3.938 kB / 356.3 MB, free: 6.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.1403, allocations: 0 / 356.3 MB, free: 6.434 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009563/0.1413, allocations: 0.6586 MB / 357 MB, free: 5.727 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.731e-05/0.1413, allocations: 8.031 kB / 357 MB, free: 5.719 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002494/0.1416, allocations: 82.53 kB / 357.1 MB, free: 5.629 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.714e-05/0.1417, allocations: 63.28 kB / 357.2 MB, free: 5.566 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005147/0.1422, allocations: 382.7 kB / 357.5 MB, free: 5.156 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.1422, allocations: 33 kB / 357.6 MB, free: 5.125 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.844e-05/0.1423, allocations: 40 kB / 357.6 MB, free: 5.086 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007038/0.143, allocations: 487.4 kB / 358.1 MB, free: 4.535 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.782e-05/0.1431, allocations: 3.984 kB / 358.1 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.742e-05/0.1431, allocations: 16 kB / 358.1 MB, free: 4.516 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.1432, allocations: 15.95 kB / 358.1 MB, free: 4.5 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005154/0.1437, allocations: 250.1 kB / 358.4 MB, free: 4.254 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002589/0.1463, allocations: 2.834 MB / 361.2 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005507/0.1469, allocations: 162.7 kB / 361.3 MB, free: 1.105 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001754/0.1471, allocations: 85.09 kB / 361.4 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.1472, allocations: 34.56 kB / 361.5 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.322e-06/0.1472, allocations: 4 kB / 361.5 MB, free: 0.957 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.001264/0.1484, allocations: 0.6344 MB / 362.1 MB, free: 276 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.1485, allocations: 55.41 kB / 362.2 MB, free: 208 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004603/0.149, allocations: 345.5 kB / 362.5 MB, free: 15.85 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.149, allocations: 25.7 kB / 362.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.1492, allocations: 299 kB / 362.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.379e-05/0.1493, allocations: 67.09 kB / 362.9 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.067e-05/0.1493, allocations: 4 kB / 362.9 MB, free: 15.45 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001779/0.1495, allocations: 346.8 kB / 363.2 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.1496, allocations: 63.97 kB / 363.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002437/0.1499, allocations: 219.8 kB / 363.5 MB, free: 14.76 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacity.heatFlowToTemperature.y = $START.directCapacity.heatFlowToTemperature.y ($START.inverseCapacity.mass.T = $START.directCapacity.heatFlowToTemperature.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.0006434/0.1505, allocations: 284 kB / 363.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.1505, allocations: 4 kB / 363.8 MB, free: 14.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008315/0.1514, allocations: 354 kB / 364.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.1514, allocations: 12.12 kB / 364.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/0.1514, allocations: 7.984 kB / 364.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001753/0.1516, allocations: 36.84 kB / 364.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002608/0.1519, allocations: 75.91 kB / 364.3 MB, free: 13.97 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.1534, allocations: 1.471 MB / 365.7 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.1536, allocations: 19.98 kB / 365.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.631e-05/0.1536, allocations: 23.95 kB / 365.8 MB, free: 12.32 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: directCapacity.heatFlowToTemperature.y = $START.directCapacity.heatFlowToTemperature.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002473/0.1539, allocations: 177.7 kB / 365.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.87e-05/0.1539, allocations: 39.52 kB / 366 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.925e-05/0.154, allocations: 39.59 kB / 366 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.154, allocations: 0 / 366 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1541, allocations: 4 kB / 366 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1541, allocations: 0 / 366 MB, free: 12.05 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 postOpt removeSimpleEquations (simulation): time 0.001259/0.1553, allocations: 0.7663 MB / 366.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1553, allocations: 0 / 366.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001838/0.1555, allocations: 39.86 kB / 366.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.95e-05/0.1556, allocations: 32.8 kB / 366.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.1556, allocations: 0 / 366.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001019/0.1567, allocations: 1.335 MB / 368.2 MB, free: 9.664 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1567, allocations: 3.984 kB / 368.2 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006252/0.1573, allocations: 385.4 kB / 368.6 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.991e-05/0.1574, allocations: 104.7 kB / 368.7 MB, free: 9.137 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.1574, allocations: 4 kB / 368.7 MB, free: 9.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.1576, allocations: 15.94 kB / 368.7 MB, free: 9.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.688e-05/0.1576, allocations: 20.06 kB / 368.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.1576, allocations: 4 kB / 368.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002202/0.1579, allocations: 235.1 kB / 368.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1579, allocations: 0 / 368.9 MB, free: 8.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000457/0.1583, allocations: 68 kB / 369 MB, free: 8.801 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inverseCapacity.mass.T,capacitor3a.T,capacitor3b.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 (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007904/0.1591, allocations: 0.9855 MB / 370 MB, free: 7.781 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006739/0.1598, allocations: 310.3 kB / 370.3 MB, free: 7.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.1598, allocations: 1.375 kB / 370.3 MB, free: 7.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002335/0.1601, allocations: 186.6 kB / 370.5 MB, free: 7.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.1603, allocations: 37.61 kB / 370.5 MB, free: 7.234 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004725/0.1651, allocations: 5.564 MB / 376.1 MB, free: 1.52 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004108/0.1655, allocations: 0.8304 MB / 376.9 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000124/0.1656, allocations: 43.27 kB / 377 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001884/0.1658, allocations: 151.4 kB / 377.1 MB, free: 480 kB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1658, allocations: 0 / 377.1 MB, free: 480 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01955/0.1854, allocations: 6.068 MB / 383.2 MB, free: 10.58 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001845/0.1856, allocations: 209.9 kB / 383.4 MB, free: 10.34 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.914/2.1, allocations: 0 / 383.4 MB, free: 10.34 MB / 318.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs_res.mat does not exist to compare? outputFormat=mat