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.000789/0.000789, allocations: 91.38 kB / 16.31 MB, free: 5.602 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.0008612/0.0008612, allocations: 180.9 kB / 17.21 MB, free: 5.52 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.2 MB, free: 344 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003905, allocations: 4 kB / 300.9 MB, free: 6.379 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.127, allocations: 50.42 MB / 351.3 MB, free: 3.945 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs): time 0.003015/0.1301, allocations: 2.571 MB / 353.9 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1315, allocations: 0.9089 MB / 354.8 MB, free: 456 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001941/0.1317, allocations: 11.94 kB / 354.8 MB, free: 444 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.1319, allocations: 63.42 kB / 354.9 MB, free: 380 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001655/0.1321, allocations: 75.28 kB / 355 MB, free: 304 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000426/0.1326, allocations: 151.7 kB / 355.1 MB, free: 152 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005484/0.1331, allocations: 490 kB / 355.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003122/0.1334, allocations: 158 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.1336, allocations: 135.3 kB / 355.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.1338, allocations: 143.2 kB / 356 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.542e-05/0.1339, allocations: 12 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.134, allocations: 31.94 kB / 356.1 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.974e-05/0.134, allocations: 51.72 kB / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.874e-05/0.1341, allocations: 109.5 kB / 356.2 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004044/0.1346, allocations: 403.2 kB / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.1346, allocations: 0 / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1346, allocations: 0 / 356.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1346, allocations: 0 / 356.6 MB, free: 14.62 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.0009127/0.1355, allocations: 0.6625 MB / 357.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.1356, allocations: 8.031 kB / 357.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.772e-05/0.1357, allocations: 82.47 kB / 357.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.369e-05/0.1358, allocations: 63.3 kB / 357.4 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004821/0.1363, allocations: 382.7 kB / 357.8 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.711e-05/0.1363, allocations: 29 kB / 357.8 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.994e-05/0.1364, allocations: 40 kB / 357.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007109/0.1371, allocations: 491.4 kB / 358.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.1371, allocations: 4 kB / 358.3 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.289e-05/0.1371, allocations: 16 kB / 358.4 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.1372, allocations: 23.89 kB / 358.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004634/0.1376, allocations: 250.2 kB / 358.6 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002128/0.1398, allocations: 2.831 MB / 361.5 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003906/0.1402, allocations: 165.9 kB / 361.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001379/0.1403, allocations: 72.88 kB / 361.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001835/0.1405, allocations: 85.09 kB / 361.8 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.823e-05/0.1406, allocations: 38.5 kB / 361.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.532e-06/0.1406, allocations: 0 / 361.8 MB, free: 9.059 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001302/0.1419, allocations: 0.6407 MB / 362.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.1419, allocations: 55.41 kB / 362.5 MB, free: 8.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003974/0.1423, allocations: 341.5 kB / 362.8 MB, free: 7.953 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.1424, allocations: 29.7 kB / 362.9 MB, free: 7.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002171/0.1426, allocations: 307 kB / 363.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.704e-05/0.1426, allocations: 63.11 kB / 363.2 MB, free: 7.551 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.063e-05/0.1427, allocations: 4 kB / 363.2 MB, free: 7.547 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001477/0.1428, allocations: 346.8 kB / 363.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.1429, allocations: 67.95 kB / 363.6 MB, free: 7.133 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00022/0.1432, allocations: 215.9 kB / 363.8 MB, free: 6.852 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.0005826/0.1438, allocations: 288.5 kB / 364.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1438, allocations: 0 / 364.1 MB, free: 6.555 MB / 302.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005533/0.1443, allocations: 363.8 kB / 364.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1444, allocations: 8 kB / 364.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1444, allocations: 4.688 kB / 364.5 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001308/0.1445, allocations: 36.84 kB / 364.5 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.1448, allocations: 75.91 kB / 364.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001195/0.146, allocations: 1.467 MB / 366.1 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.1461, allocations: 23.95 kB / 366.1 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.307e-05/0.1462, allocations: 19.98 kB / 366.1 MB, free: 4.422 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.0002038/0.1464, allocations: 169.7 kB / 366.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.359e-05/0.1465, allocations: 35.53 kB / 366.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.695e-05/0.1465, allocations: 39.66 kB / 366.4 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.1466, allocations: 7.938 kB / 366.4 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.1466, allocations: 3.938 kB / 366.4 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1466, allocations: 3.984 kB / 366.4 MB, free: 4.152 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009266/0.1475, allocations: 0.7101 MB / 367.1 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.604e-06/0.1475, allocations: 0 / 367.1 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.1477, allocations: 39.92 kB / 367.1 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.09e-05/0.1478, allocations: 24.8 kB / 367.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.93e-05/0.1478, allocations: 11.98 kB / 367.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009513/0.1488, allocations: 1.32 MB / 368.5 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/0.1488, allocations: 0 / 368.5 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004918/0.1493, allocations: 376.5 kB / 368.8 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.576e-05/0.1494, allocations: 104.7 kB / 368.9 MB, free: 1.328 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.1494, allocations: 4 kB / 369 MB, free: 1.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.1495, allocations: 19.94 kB / 369 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.609e-05/0.1496, allocations: 11.92 kB / 369 MB, free: 1.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.1496, allocations: 4 kB / 369 MB, free: 1.289 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.1498, allocations: 239.2 kB / 369.2 MB, free: 1.059 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1498, allocations: 0 / 369.2 MB, free: 1.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004065/0.1502, allocations: 68 kB / 369.3 MB, free: 0.9922 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.000744/0.151, allocations: 0.8994 MB / 370.2 MB, free: 64 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.1814/0.3324, allocations: 302.5 kB / 370.5 MB, free: 24.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.3324, allocations: 0 / 370.5 MB, free: 24.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002655/0.3327, allocations: 190.9 kB / 370.7 MB, free: 24.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004693/0.3332, allocations: 47.69 kB / 370.7 MB, free: 24.58 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.3371, allocations: 2.253 MB / 373 MB, free: 23.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.3375, allocations: 0.8118 MB / 373.8 MB, free: 22.8 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001561/0.3376, allocations: 37.38 kB / 373.8 MB, free: 22.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.3378, allocations: 156.5 kB / 374 MB, free: 22.79 MB / 302.1 MB Notification: Performance of SimCode: time 1.573e-06/0.3378, allocations: 5.469 kB / 374 MB, free: 22.78 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02039/0.3582, allocations: 6.105 MB / 380.1 MB, free: 21.96 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000211/0.3585, allocations: 211.8 kB / 380.3 MB, free: 21.72 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.964/2.322, allocations: 3.938 kB / 380.3 MB, free: 21.72 MB / 302.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