Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002136/0.002136, allocations: 185.8 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.062/2.062, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001161, allocations: 88.38 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004102/0.0004102, allocations: 8 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.3452, allocations: 47.58 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.13/0.4752, allocations: 78.31 MB / 452.9 MB, free: 2.332 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.4755, allocations: 67.97 kB / 453 MB, free: 2.266 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01744/0.493, allocations: 3.877 MB / 456.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.493, allocations: 3.938 kB / 456.9 MB, free: 14.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.195e-05/0.493, allocations: 8 kB / 456.9 MB, free: 14.36 MB / 346.7 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.001185/0.4942, allocations: 0.5146 MB / 457.4 MB, free: 13.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.4943, allocations: 8.031 kB / 457.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001298/0.4944, allocations: 62.98 kB / 457.5 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.4946, allocations: 27.7 kB / 457.5 MB, free: 13.69 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004062/0.495, allocations: 225.1 kB / 457.7 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.4951, allocations: 24.38 kB / 457.7 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.184e-05/0.4951, allocations: 16 kB / 457.8 MB, free: 13.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000735/0.4959, allocations: 237.8 kB / 458 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.4959, allocations: 0 / 458 MB, free: 13.15 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.785e-05/0.496, allocations: 8 kB / 458 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.496, allocations: 8 kB / 458 MB, free: 13.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00067/0.4967, allocations: 169.6 kB / 458.2 MB, free: 12.97 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002056/0.4988, allocations: 0.8254 MB / 459 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006612/0.4995, allocations: 170.7 kB / 459.2 MB, free: 11.9 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.833e-05/0.4995, allocations: 3.938 kB / 459.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.09e-05/0.4996, allocations: 34.56 kB / 459.2 MB, free: 11.85 MB / 346.7 MB Notification: Performance of pre-optimization done (n=16): time 2.986e-06/0.4996, allocations: 0 / 459.2 MB, free: 11.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.001409/0.501, allocations: 359.5 kB / 459.6 MB, free: 11.47 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.5011, allocations: 55.41 kB / 459.6 MB, free: 11.41 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002201/0.5013, allocations: 157.8 kB / 459.8 MB, free: 11.24 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.353e-05/0.5013, allocations: 29.7 kB / 459.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/0.5015, allocations: 206.5 kB / 460 MB, free: 11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.98e-05/0.5016, allocations: 55.2 kB / 460.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.383e-05/0.5016, allocations: 0 / 460.1 MB, free: 10.95 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.5017, allocations: 318.8 kB / 460.4 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/0.502, allocations: 64.28 kB / 460.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.5023, allocations: 92.27 kB / 460.5 MB, free: 10.47 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.5026, allocations: 59.98 kB / 460.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.5026, allocations: 0 / 460.6 MB, free: 10.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0008161/0.5034, allocations: 222.1 kB / 460.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.363e-05/0.5035, allocations: 8 kB / 460.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.5035, allocations: 0 / 460.8 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002705/0.5038, allocations: 28.84 kB / 460.8 MB, free: 10.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002712/0.504, allocations: 31.98 kB / 460.9 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001664/0.5057, allocations: 1.371 MB / 462.2 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.5061, allocations: 47.86 kB / 462.3 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.5062, allocations: 4 kB / 462.3 MB, free: 8.555 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (18): * Single equations (assignments): 17 * 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.0002027/0.5064, allocations: 129.8 kB / 462.4 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.587e-05/0.5064, allocations: 19.75 kB / 462.4 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.826e-05/0.5065, allocations: 21.88 kB / 462.4 MB, free: 8.375 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.5065, allocations: 7.984 kB / 462.5 MB, free: 8.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.5066, allocations: 4 kB / 462.5 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.5066, allocations: 0 / 462.5 MB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001274/0.5078, allocations: 0.5302 MB / 463 MB, free: 7.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.5079, allocations: 7.984 kB / 463 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002923/0.5082, allocations: 27.98 kB / 463 MB, free: 7.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002062/0.5084, allocations: 36.73 kB / 463.1 MB, free: 7.699 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.09e-05/0.5084, allocations: 4 kB / 463.1 MB, free: 7.695 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001667/0.5101, allocations: 1.367 MB / 464.4 MB, free: 6.199 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.5101, allocations: 3.938 kB / 464.4 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.5113, allocations: 376.7 kB / 464.8 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001397/0.5114, allocations: 104.9 kB / 464.9 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.956e-05/0.5115, allocations: 4 kB / 464.9 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003572/0.5118, allocations: 35.97 kB / 464.9 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.916e-05/0.5119, allocations: 15.98 kB / 465 MB, free: 5.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.512, allocations: 7.984 kB / 465 MB, free: 5.629 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001586/0.5121, allocations: 124.3 kB / 465.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5121, allocations: 0 / 465.1 MB, free: 5.508 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004566/0.5126, allocations: 59.84 kB / 465.1 MB, free: 5.449 MB / 346.7 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.001465/0.5141, allocations: 0.8966 MB / 466 MB, free: 4.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008729/0.515, allocations: 270.8 kB / 466.3 MB, free: 4.242 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.515, allocations: 0 / 466.3 MB, free: 4.242 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004409/0.5155, allocations: 198.6 kB / 466.5 MB, free: 4.035 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.5159, allocations: 35.14 kB / 466.5 MB, free: 4.004 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/0.5192, allocations: 1.721 MB / 468.3 MB, free: 2.215 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000418/0.5196, allocations: 0.7362 MB / 469 MB, free: 1.453 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001531/0.5198, allocations: 55.42 kB / 469 MB, free: 1.398 MB / 346.7 MB Notification: Performance of SimCode: time 1.432e-06/0.5198, allocations: 8 kB / 469.1 MB, free: 1.391 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.822/3.342, allocations: 3.99 MB / 473 MB, free: 13.41 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_HeatTransfer_Examples_ControlledTemperature.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.HeatTransfer.Examples.ControlledTemperature_res.mat does not exist to compare? outputFormat=mat