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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001295/0.001295, allocations: 180.3 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.435/1.435, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009687/0.0009687, allocations: 98.69 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003178/0.0003178, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2509, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1017/0.3526, allocations: 79.46 MB / 481 MB, free: 1.008 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/0.3529, allocations: 75.89 kB / 481.1 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0111/0.364, allocations: 3.931 MB / 485 MB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.514e-06/0.3641, allocations: 0 / 485 MB, free: 12.99 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.833e-05/0.3641, allocations: 4 kB / 485 MB, free: 12.98 MB / 362.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.0009515/0.3651, allocations: 0.5184 MB / 485.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/0.3652, allocations: 8.031 kB / 485.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000122/0.3653, allocations: 66.84 kB / 485.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001697/0.3655, allocations: 27.72 kB / 485.7 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.3659, allocations: 223.7 kB / 485.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.3659, allocations: 20.44 kB / 485.9 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.681e-05/0.366, allocations: 16 kB / 485.9 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000552/0.3665, allocations: 233.8 kB / 486.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.3665, allocations: 3.953 kB / 486.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.3666, allocations: 7.938 kB / 486.2 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.3666, allocations: 12 kB / 486.2 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004258/0.367, allocations: 165.7 kB / 486.3 MB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.3685, allocations: 0.8205 MB / 487.1 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004112/0.369, allocations: 174.7 kB / 487.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.369, allocations: 0 / 487.3 MB, free: 10.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.751e-05/0.369, allocations: 34.5 kB / 487.3 MB, free: 10.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=16): time 1.002e-06/0.369, allocations: 4 kB / 487.4 MB, free: 10.47 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.0008917/0.3699, allocations: 347.5 kB / 487.7 MB, free: 10.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.37, allocations: 59.33 kB / 487.8 MB, free: 10.04 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001608/0.3702, allocations: 166.4 kB / 487.9 MB, free: 9.859 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.3702, allocations: 29.7 kB / 487.9 MB, free: 9.824 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.596e-05/0.3703, allocations: 144.1 kB / 488.1 MB, free: 9.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.406e-05/0.3703, allocations: 51.2 kB / 488.1 MB, free: 9.629 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.986e-06/0.3704, allocations: 4 kB / 488.1 MB, free: 9.625 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001334/0.3705, allocations: 326.8 kB / 488.5 MB, free: 9.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001589/0.3707, allocations: 52.34 kB / 488.5 MB, free: 9.246 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.3708, allocations: 96.14 kB / 488.6 MB, free: 9.141 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000154/0.371, allocations: 62.95 kB / 488.7 MB, free: 9.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.371, allocations: 0 / 488.7 MB, free: 9.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004652/0.3715, allocations: 222 kB / 488.9 MB, free: 8.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3715, allocations: 8.094 kB / 488.9 MB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.3715, allocations: 4 kB / 488.9 MB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/0.3717, allocations: 28.84 kB / 488.9 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001552/0.3719, allocations: 39.91 kB / 489 MB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001294/0.3732, allocations: 1.37 MB / 490.3 MB, free: 7.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002024/0.3734, allocations: 39.84 kB / 490.4 MB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.3734, allocations: 8.062 kB / 490.4 MB, free: 7.223 MB / 362.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.0001343/0.3736, allocations: 134 kB / 490.5 MB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.202e-05/0.3736, allocations: 19.75 kB / 490.5 MB, free: 7.062 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.698e-05/0.3737, allocations: 29.84 kB / 490.6 MB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.3737, allocations: 4 kB / 490.6 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.3737, allocations: 0 / 490.6 MB, free: 7.023 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.3737, allocations: 3.938 kB / 490.6 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007771/0.3745, allocations: 0.5303 MB / 491.1 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.023e-06/0.3745, allocations: 0 / 491.1 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001573/0.3747, allocations: 35.92 kB / 491.1 MB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001151/0.3748, allocations: 32.83 kB / 491.2 MB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.3748, allocations: 8 kB / 491.2 MB, free: 6.352 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/0.376, allocations: 1.366 MB / 492.5 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.376, allocations: 0 / 492.5 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006502/0.3767, allocations: 375.5 kB / 492.9 MB, free: 4.473 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.3768, allocations: 104.8 kB / 493 MB, free: 4.352 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.529e-05/0.3768, allocations: 8 kB / 493 MB, free: 4.344 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.3771, allocations: 32.03 kB / 493 MB, free: 4.312 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.3772, allocations: 15.97 kB / 493.1 MB, free: 4.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.3772, allocations: 4 kB / 493.1 MB, free: 4.293 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00011/0.3773, allocations: 123.2 kB / 493.2 MB, free: 4.172 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3773, allocations: 0 / 493.2 MB, free: 4.172 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003323/0.3776, allocations: 59.84 kB / 493.2 MB, free: 4.113 MB / 362.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.0009592/0.3786, allocations: 0.9153 MB / 494.2 MB, free: 3.172 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005287/0.3791, allocations: 258.6 kB / 494.4 MB, free: 2.906 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3792, allocations: 0 / 494.4 MB, free: 2.906 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002894/0.3795, allocations: 210.8 kB / 494.6 MB, free: 2.688 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.3798, allocations: 27.09 kB / 494.6 MB, free: 2.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00223/0.382, allocations: 1.689 MB / 496.3 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.3824, allocations: 0.7401 MB / 497.1 MB, free: 148 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.212e-05/0.3825, allocations: 17.55 kB / 497.1 MB, free: 132 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.221e-05/0.3826, allocations: 55.42 kB / 497.1 MB, free: 76 kB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3826, allocations: 0 / 497.1 MB, free: 76 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01902/0.4016, allocations: 3.969 MB / 0.4894 GB, free: 12.3 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002185/0.4019, allocations: 210.3 kB / 0.4896 GB, free: 12.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.717/2.118, allocations: 0 / 0.4896 GB, free: 12.07 MB / 378.7 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