Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.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.ControlledTemperature,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",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.001008/0.001008, allocations: 87.98 kB / 16.31 MB, free: 6.449 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.001242/0.001242, allocations: 181 kB / 17.21 MB, free: 6.32 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.414/1.414, allocations: 223.3 MB / 241.2 MB, free: 5.254 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000264/0.0002642, allocations: 6.344 kB / 300.9 MB, free: 5.523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1214, allocations: 50.42 MB / 351.3 MB, free: 11.31 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.002946/0.1244, allocations: 2.113 MB / 353.4 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001012/0.1255, allocations: 0.6158 MB / 354.1 MB, free: 8.559 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.1256, allocations: 8 kB / 354.1 MB, free: 8.551 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000119/0.1257, allocations: 27.77 kB / 354.1 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.1258, allocations: 55.53 kB / 354.1 MB, free: 8.469 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000228/0.1261, allocations: 51.89 kB / 354.2 MB, free: 8.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003332/0.1264, allocations: 238.8 kB / 354.4 MB, free: 8.184 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.1266, allocations: 81.33 kB / 354.5 MB, free: 8.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000107/0.1267, allocations: 75.72 kB / 354.6 MB, free: 8.023 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.1269, allocations: 99.53 kB / 354.7 MB, free: 7.926 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.869e-05/0.1269, allocations: 12 kB / 354.7 MB, free: 7.914 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.229e-05/0.127, allocations: 12 kB / 354.7 MB, free: 7.902 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.976e-05/0.1271, allocations: 35.84 kB / 354.7 MB, free: 7.867 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.645e-05/0.1271, allocations: 65.58 kB / 354.8 MB, free: 7.797 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.1274, allocations: 187.5 kB / 355 MB, free: 7.613 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1274, allocations: 0 / 355 MB, free: 7.613 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1274, allocations: 0 / 355 MB, free: 7.613 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.1274, allocations: 0 / 355 MB, free: 7.613 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0008964/0.1283, allocations: 0.5145 MB / 355.5 MB, free: 7.051 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1284, allocations: 8.031 kB / 355.5 MB, free: 7.043 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001017/0.1285, allocations: 66.88 kB / 355.6 MB, free: 6.969 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001009/0.1286, allocations: 31.72 kB / 355.6 MB, free: 6.938 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002859/0.1289, allocations: 227.1 kB / 355.8 MB, free: 6.676 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.1289, allocations: 16.44 kB / 355.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/0.129, allocations: 20 kB / 355.9 MB, free: 6.641 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004917/0.1295, allocations: 233.8 kB / 356.1 MB, free: 6.402 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1295, allocations: 0 / 356.1 MB, free: 6.402 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.458e-05/0.1295, allocations: 16 kB / 356.1 MB, free: 6.387 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.1296, allocations: 7.953 kB / 356.1 MB, free: 6.379 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003616/0.1299, allocations: 165.6 kB / 356.3 MB, free: 6.211 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00131/0.1312, allocations: 0.8322 MB / 357.1 MB, free: 5.309 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003944/0.1317, allocations: 174.6 kB / 357.3 MB, free: 5.129 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001758/0.1318, allocations: 84.81 kB / 357.4 MB, free: 5.043 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.1319, allocations: 4 kB / 357.4 MB, free: 5.039 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.1319, allocations: 38.56 kB / 357.4 MB, free: 4.992 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.302e-06/0.1319, allocations: 0 / 357.4 MB, free: 4.992 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009343/0.1329, allocations: 353.6 kB / 357.7 MB, free: 4.621 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.1329, allocations: 55.41 kB / 357.8 MB, free: 4.555 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001648/0.1331, allocations: 179.1 kB / 358 MB, free: 4.367 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.1331, allocations: 33.7 kB / 358 MB, free: 4.328 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.867e-05/0.1332, allocations: 140.1 kB / 358.1 MB, free: 4.188 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.689e-05/0.1333, allocations: 63.19 kB / 358.2 MB, free: 4.125 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.348e-06/0.1333, allocations: 4 kB / 358.2 MB, free: 4.121 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002742/0.1336, allocations: 322.8 kB / 358.5 MB, free: 3.797 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.1337, allocations: 56.34 kB / 358.6 MB, free: 3.742 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.1339, allocations: 107.2 kB / 358.7 MB, free: 3.625 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001501/0.1341, allocations: 54.17 kB / 358.7 MB, free: 3.574 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.1341, allocations: 4 kB / 358.7 MB, free: 3.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004665/0.1345, allocations: 230 kB / 359 MB, free: 3.336 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.1346, allocations: 8 kB / 359 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.794e-06/0.1346, allocations: 0 / 359 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002177/0.1348, allocations: 36.97 kB / 359 MB, free: 3.289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.135, allocations: 39.91 kB / 359.1 MB, free: 3.25 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001417/0.1364, allocations: 1.363 MB / 360.4 MB, free: 1.754 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.1366, allocations: 39.69 kB / 360.5 MB, free: 1.715 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.1367, allocations: 12 kB / 360.5 MB, free: 1.703 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.onOffController.y,onOffController.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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.0001408/0.1368, allocations: 133.9 kB / 360.6 MB, free: 1.562 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/0.1369, allocations: 15.81 kB / 360.6 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.152e-05/0.1369, allocations: 21.88 kB / 360.6 MB, free: 1.523 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.087e-06/0.1369, allocations: 3.984 kB / 360.6 MB, free: 1.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.1369, allocations: 4 kB / 360.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.1369, allocations: 0 / 360.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008093/0.1378, allocations: 0.5225 MB / 361.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.1378, allocations: 0 / 361.2 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.1379, allocations: 39.91 kB / 361.2 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001056/0.138, allocations: 24.84 kB / 361.2 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.499e-05/0.1381, allocations: 4 kB / 361.2 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.1394, allocations: 1.37 MB / 362.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1394, allocations: 7.891 kB / 362.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006606/0.1401, allocations: 366.5 kB / 363 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.619e-05/0.1402, allocations: 108.8 kB / 363.1 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.1402, allocations: 7.984 kB / 363.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/0.1404, allocations: 23.98 kB / 363.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.187e-05/0.1405, allocations: 20.03 kB / 363.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.417e-06/0.1405, allocations: 4 kB / 363.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001216/0.1407, allocations: 131.2 kB / 363.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1407, allocations: 0 / 363.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003282/0.141, allocations: 55.84 kB / 363.3 MB, free: 14.62 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (heatCapacitor.T) * Number of discrete variables: 1 (onOffController.y) * Number of discrete states: 1 (onOffController.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 0.001032/0.142, allocations: 0.9046 MB / 364.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005237/0.1426, allocations: 270.6 kB / 364.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.1426, allocations: 4 kB / 364.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002752/0.1429, allocations: 198.8 kB / 364.7 MB, free: 13.2 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003787/0.1433, allocations: 32.17 kB / 364.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.1453, allocations: 1.241 MB / 366 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005848/0.1459, allocations: 0.7398 MB / 366.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.032e-05/0.146, allocations: 13.55 kB / 366.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.852e-05/0.1461, allocations: 55.42 kB / 366.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1461, allocations: 4 kB / 366.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01864/0.1648, allocations: 3.936 MB / 370.7 MB, free: 7.297 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001931/0.165, allocations: 224 kB / 370.9 MB, free: 7.055 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.9/2.065, allocations: 0 / 370.9 MB, free: 7.055 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat does not exist to compare? outputFormat=mat