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.000892/0.000892, allocations: 91.84 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.000901/0.0009011, allocations: 187.2 kB / 17.2 MB, free: 5.91 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.43/1.43, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002562/0.0002562, allocations: 5.375 kB / 300.8 MB, free: 6.004 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1036, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature): time 0.002513/0.1062, allocations: 2.024 MB / 353.2 MB, free: 9.641 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009987/0.1072, allocations: 0.6198 MB / 353.9 MB, free: 9.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001082/0.1073, allocations: 4 kB / 353.9 MB, free: 9.012 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.948e-05/0.1074, allocations: 27.77 kB / 353.9 MB, free: 8.984 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.1076, allocations: 83.75 kB / 354 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002169/0.1078, allocations: 47.94 kB / 354 MB, free: 8.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002566/0.108, allocations: 183.6 kB / 354.2 MB, free: 8.676 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000188/0.1082, allocations: 69.36 kB / 354.3 MB, free: 8.602 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.1084, allocations: 83.69 kB / 354.4 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.1085, allocations: 87.62 kB / 354.4 MB, free: 8.434 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.396e-05/0.1085, allocations: 8 kB / 354.4 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.685e-05/0.1086, allocations: 20 kB / 354.5 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.655e-05/0.1087, allocations: 35.83 kB / 354.5 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.641e-05/0.1087, allocations: 73.52 kB / 354.6 MB, free: 8.293 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000185/0.1089, allocations: 171.5 kB / 354.7 MB, free: 8.125 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.1089, allocations: 0 / 354.7 MB, free: 8.125 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1089, allocations: 0 / 354.7 MB, free: 8.125 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.109, allocations: 4 kB / 354.7 MB, free: 8.121 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.0009311/0.1099, allocations: 0.5223 MB / 355.3 MB, free: 7.551 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.051e-05/0.11, allocations: 8.031 kB / 355.3 MB, free: 7.543 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.832e-05/0.1101, allocations: 58.94 kB / 355.3 MB, free: 7.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001289/0.1102, allocations: 27.72 kB / 355.4 MB, free: 7.449 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.1105, allocations: 231.1 kB / 355.6 MB, free: 7.184 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.849e-05/0.1106, allocations: 24.38 kB / 355.6 MB, free: 7.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.14e-05/0.1106, allocations: 16 kB / 355.6 MB, free: 7.145 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004629/0.1111, allocations: 229.8 kB / 355.8 MB, free: 6.91 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.1111, allocations: 4 kB / 355.9 MB, free: 6.906 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.393e-05/0.1112, allocations: 7.984 kB / 355.9 MB, free: 6.898 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.898e-06/0.1112, allocations: 7.953 kB / 355.9 MB, free: 6.891 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003838/0.1116, allocations: 173.6 kB / 356 MB, free: 6.715 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001236/0.1128, allocations: 0.836 MB / 356.9 MB, free: 5.809 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004291/0.1132, allocations: 166.5 kB / 357 MB, free: 5.637 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.1133, allocations: 4 kB / 357 MB, free: 5.633 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.1133, allocations: 34.56 kB / 357.1 MB, free: 5.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=16): time 1.393e-06/0.1133, allocations: 0 / 357.1 MB, free: 5.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=16): time 0.000844/0.1142, allocations: 357.8 kB / 357.4 MB, free: 5.215 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.1142, allocations: 51.41 kB / 357.5 MB, free: 5.152 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.1144, allocations: 183.1 kB / 357.7 MB, free: 4.961 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.566e-05/0.1144, allocations: 29.7 kB / 357.7 MB, free: 4.926 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.49e-05/0.1145, allocations: 148.1 kB / 357.8 MB, free: 4.777 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.183e-05/0.1146, allocations: 59.19 kB / 357.9 MB, free: 4.719 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.636e-06/0.1146, allocations: 4 kB / 357.9 MB, free: 4.715 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.1147, allocations: 322.8 kB / 358.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.1149, allocations: 60.34 kB / 358.3 MB, free: 4.332 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.115, allocations: 97 kB / 358.4 MB, free: 4.223 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.1152, allocations: 62.27 kB / 358.4 MB, free: 4.164 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.1152, allocations: 4 kB / 358.4 MB, free: 4.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004502/0.1157, allocations: 230 kB / 358.6 MB, free: 3.926 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.1157, allocations: 8 kB / 358.7 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.682e-06/0.1157, allocations: 0 / 358.7 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000253/0.116, allocations: 32.84 kB / 358.7 MB, free: 3.883 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001532/0.1161, allocations: 39.91 kB / 358.7 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.1173, allocations: 1.367 MB / 360.1 MB, free: 2.344 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002091/0.1175, allocations: 47.84 kB / 360.1 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.1175, allocations: 4 kB / 360.1 MB, free: 2.293 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.0001381/0.1177, allocations: 133.8 kB / 360.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.058e-05/0.1177, allocations: 27.7 kB / 360.3 MB, free: 2.125 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.369e-05/0.1178, allocations: 21.86 kB / 360.3 MB, free: 2.102 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.1178, allocations: 4 kB / 360.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1178, allocations: 0 / 360.3 MB, free: 2.098 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.1178, allocations: 4 kB / 360.3 MB, free: 2.094 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007657/0.1186, allocations: 0.5264 MB / 360.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.1186, allocations: 0 / 360.9 MB, free: 1.508 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001472/0.1187, allocations: 35.92 kB / 360.9 MB, free: 1.473 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001034/0.1188, allocations: 28.84 kB / 360.9 MB, free: 1.441 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.1189, allocations: 8 kB / 360.9 MB, free: 1.434 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/0.1199, allocations: 1.371 MB / 362.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1199, allocations: 3.953 kB / 362.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006296/0.1206, allocations: 370 kB / 362.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.507e-05/0.1207, allocations: 100.9 kB / 362.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.729e-05/0.1207, allocations: 11.95 kB / 362.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002001/0.1209, allocations: 28.03 kB / 362.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.907e-05/0.121, allocations: 19.97 kB / 362.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.121, allocations: 4 kB / 362.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001028/0.1211, allocations: 123.2 kB / 362.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1211, allocations: 0 / 362.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003257/0.1215, allocations: 59.84 kB / 363 MB, free: 15.19 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.000895/0.1224, allocations: 0.9062 MB / 363.9 MB, free: 14.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005661/0.1229, allocations: 264.9 kB / 364.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.123, allocations: 0 / 364.2 MB, free: 13.99 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002765/0.1232, allocations: 204.9 kB / 364.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003101/0.1236, allocations: 20.19 kB / 364.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002055/0.1256, allocations: 1.853 MB / 366.2 MB, free: 11.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002853/0.1259, allocations: 0.7401 MB / 367 MB, free: 11.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.396e-05/0.126, allocations: 21.53 kB / 367 MB, free: 11.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.75e-05/0.1261, allocations: 55.42 kB / 367.1 MB, free: 11 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1261, allocations: 0 / 367.1 MB, free: 11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01612/0.1422, allocations: 3.92 MB / 371 MB, free: 7.281 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001811/0.1425, allocations: 207.7 kB / 371.2 MB, free: 7.047 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.852/1.995, allocations: 0 / 371.2 MB, free: 7.047 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