Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001415/0.001415, allocations: 93.55 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001591/0.001591, allocations: 204.7 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.3 MB / 245.9 MB, free: 12.03 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002247, allocations: 4 kB / 306.7 MB, free: 1.488 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1249, allocations: 51.49 MB / 358.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.002961/0.128, allocations: 2.027 MB / 360.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.1292, allocations: 0.6627 MB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001113/0.1293, allocations: 4 kB / 360.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001033/0.1294, allocations: 19.84 kB / 360.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002543/0.1297, allocations: 79.75 kB / 361 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000233/0.1299, allocations: 51.88 kB / 361 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000269/0.1303, allocations: 183.5 kB / 361.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.1305, allocations: 90.36 kB / 361.3 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000108/0.1306, allocations: 75.72 kB / 361.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.1307, allocations: 91.61 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.1308, allocations: 12 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.25e-05/0.1308, allocations: 19.92 kB / 361.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.688e-05/0.1309, allocations: 31.91 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.118e-05/0.131, allocations: 65.58 kB / 361.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.1312, allocations: 187.7 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.1312, allocations: 0 / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1312, allocations: 4 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.919e-06/0.1312, allocations: 0 / 361.8 MB, free: 10.39 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0009823/0.1322, allocations: 0.5107 MB / 362.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.1322, allocations: 8.031 kB / 362.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.057e-05/0.1323, allocations: 58.98 kB / 362.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.1325, allocations: 27.7 kB / 362.4 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.1327, allocations: 226.3 kB / 362.6 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.1328, allocations: 24.39 kB / 362.6 MB, free: 9.441 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.13e-05/0.1328, allocations: 27.98 kB / 362.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.1332, allocations: 225.8 kB / 362.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1333, allocations: 0 / 362.9 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.1333, allocations: 12 kB / 362.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.1333, allocations: 4 kB / 362.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003913/0.1337, allocations: 169.6 kB / 363.1 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001405/0.1351, allocations: 0.836 MB / 363.9 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.1355, allocations: 181 kB / 364.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.362e-05/0.1355, allocations: 0 / 364.1 MB, free: 7.914 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.954e-05/0.1355, allocations: 34.84 kB / 364.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of pre-optimization done (n=16): time 1.022e-06/0.1356, allocations: 0 / 364.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008985/0.1365, allocations: 347.3 kB / 364.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.1366, allocations: 55.41 kB / 364.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001481/0.1367, allocations: 183.1 kB / 364.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.232e-05/0.1367, allocations: 29.7 kB / 364.7 MB, free: 7.211 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001187/0.1369, allocations: 148 kB / 364.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.509e-05/0.1369, allocations: 51.27 kB / 364.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.787e-06/0.1369, allocations: 4 kB / 364.9 MB, free: 7.008 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.1371, allocations: 326.8 kB / 365.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.1373, allocations: 60.28 kB / 365.3 MB, free: 6.621 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/0.1374, allocations: 96.56 kB / 365.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002122/0.1377, allocations: 63.98 kB / 365.4 MB, free: 6.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1377, allocations: 7.922 kB / 365.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004477/0.1381, allocations: 232.5 kB / 365.7 MB, free: 6.211 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.965e-05/0.1382, allocations: 4 kB / 365.7 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.1382, allocations: 4 kB / 365.7 MB, free: 6.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001768/0.1384, allocations: 28.83 kB / 365.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.1385, allocations: 43.92 kB / 365.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001317/0.1399, allocations: 1.375 MB / 367.1 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001945/0.1401, allocations: 43.75 kB / 367.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.369e-05/0.1401, allocations: 8 kB / 367.2 MB, free: 4.57 MB / 302.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.0001241/0.1402, allocations: 141.3 kB / 367.3 MB, free: 4.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.759e-05/0.1403, allocations: 15.91 kB / 367.3 MB, free: 4.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.137e-05/0.1403, allocations: 21.88 kB / 367.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1403, allocations: 0 / 367.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.1403, allocations: 8 kB / 367.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1403, allocations: 0 / 367.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008154/0.1412, allocations: 0.5264 MB / 367.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1412, allocations: 0 / 367.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001437/0.1413, allocations: 27.98 kB / 367.9 MB, free: 3.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001146/0.1414, allocations: 40.78 kB / 367.9 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.1415, allocations: 0 / 367.9 MB, free: 3.727 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.1427, allocations: 1.374 MB / 369.3 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1427, allocations: 0 / 369.3 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007802/0.1435, allocations: 370.4 kB / 369.7 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.439e-05/0.1436, allocations: 100.9 kB / 369.8 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.472e-05/0.1437, allocations: 4 kB / 369.8 MB, free: 1.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002131/0.1439, allocations: 40.02 kB / 369.8 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.997e-05/0.144, allocations: 15.97 kB / 369.8 MB, free: 1.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.626e-06/0.144, allocations: 0 / 369.8 MB, free: 1.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001074/0.1441, allocations: 131.2 kB / 370 MB, free: 1.531 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1441, allocations: 0 / 370 MB, free: 1.531 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003192/0.1444, allocations: 63.84 kB / 370 MB, free: 1.469 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.0009333/0.1454, allocations: 0.8991 MB / 370.9 MB, free: 0.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006137/0.146, allocations: 270.8 kB / 371.2 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.146, allocations: 4 kB / 371.2 MB, free: 268 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002695/0.1463, allocations: 198.5 kB / 371.4 MB, free: 56 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002634/0.1466, allocations: 43.75 kB / 371.4 MB, free: 12 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1818/0.3284, allocations: 1.83 MB / 373.3 MB, free: 18.03 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002289/0.3287, allocations: 0.7419 MB / 374 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001003/0.3288, allocations: 12.34 kB / 374 MB, free: 17.34 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.581e-05/0.3289, allocations: 57.12 kB / 374.1 MB, free: 17.33 MB / 302.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3289, allocations: 0.5625 kB / 374.1 MB, free: 17.33 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01925/0.3481, allocations: 3.907 MB / 378 MB, free: 17.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.3485, allocations: 212.3 kB / 378.2 MB, free: 16.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.868/2.217, allocations: 0 / 378.2 MB, free: 16.83 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat does not exist to compare? outputFormat=mat