Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",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.001527/0.001527, allocations: 185.9 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 1.934/1.934, allocations: 205.4 MB / 222.5 MB, free: 9.137 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.001171/0.001171, allocations: 100.3 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004449/0.000445, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3483, allocations: 47.58 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.4774, allocations: 80.42 MB / 455.1 MB, free: 348 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.4777, allocations: 75.95 kB / 455.1 MB, free: 272 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03045/0.5082, allocations: 6.463 MB / 461.6 MB, free: 9.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.5082, allocations: 0 / 461.6 MB, free: 9.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.695e-05/0.5083, allocations: 8 kB / 461.6 MB, free: 9.762 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.002395/0.5107, allocations: 0.7523 MB / 462.4 MB, free: 8.961 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.377e-05/0.5108, allocations: 12.03 kB / 462.4 MB, free: 8.949 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001632/0.5109, allocations: 74.53 kB / 462.4 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.5111, allocations: 47.44 kB / 462.5 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005328/0.5116, allocations: 297.4 kB / 462.8 MB, free: 8.488 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.198e-05/0.5117, allocations: 29 kB / 462.8 MB, free: 8.461 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.5118, allocations: 36 kB / 462.8 MB, free: 8.426 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.5138, allocations: 0.5318 MB / 463.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.655e-05/0.5139, allocations: 224 / 463.4 MB, free: 7.871 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.656e-05/0.514, allocations: 16 kB / 463.4 MB, free: 7.855 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.514, allocations: 11.94 kB / 463.4 MB, free: 7.844 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002668/0.5167, allocations: 0.5582 MB / 464 MB, free: 7.289 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004397/0.5211, allocations: 1.575 MB / 465.5 MB, free: 5.598 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002048/0.5232, allocations: 466.1 kB / 466 MB, free: 5.137 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.376e-05/0.5233, allocations: 16.27 kB / 466 MB, free: 5.121 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/0.5234, allocations: 34.89 kB / 466 MB, free: 5.078 MB / 346.7 MB Notification: Performance of pre-optimization done (n=40): time 2.916e-06/0.5234, allocations: 4 kB / 466 MB, free: 5.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=40): time 0.008861/0.5323, allocations: 1.444 MB / 467.5 MB, free: 3.582 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/0.5324, allocations: 166.2 kB / 467.6 MB, free: 3.383 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005165/0.533, allocations: 234.1 kB / 467.9 MB, free: 3.148 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.891e-05/0.5331, allocations: 33.7 kB / 467.9 MB, free: 3.109 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.5333, allocations: 262.7 kB / 468.2 MB, free: 2.852 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000176/0.5335, allocations: 141.9 kB / 468.3 MB, free: 2.711 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.652e-05/0.5335, allocations: 8 kB / 468.3 MB, free: 2.703 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.5337, allocations: 330.8 kB / 468.6 MB, free: 2.371 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.5347, allocations: 204.7 kB / 468.8 MB, free: 2.168 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.5359, allocations: 298.5 kB / 469.1 MB, free: 1.844 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001063/0.5369, allocations: 215.9 kB / 469.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.537, allocations: 0 / 469.3 MB, free: 1.633 MB / 346.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0043/0.5413, allocations: 0.8149 MB / 470.1 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.5414, allocations: 4 kB / 470.2 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.5414, allocations: 8.031 kB / 470.2 MB, free: 0.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002291/0.5437, allocations: 337.4 kB / 470.5 MB, free: 468 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000756/0.5445, allocations: 87.83 kB / 470.6 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002124/0.5466, allocations: 1.364 MB / 471.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009403/0.5476, allocations: 91.67 kB / 472 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.334e-05/0.5477, allocations: 19.94 kB / 472 MB, free: 14.85 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 31 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003193/0.548, allocations: 157.7 kB / 472.2 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.5481, allocations: 35.62 kB / 472.2 MB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004031/0.5522, allocations: 0.7864 MB / 473 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.444e-05/0.5522, allocations: 4 kB / 473 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.5522, allocations: 4 kB / 473 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.396e-05/0.5523, allocations: 3.984 kB / 473 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.5533, allocations: 473 kB / 473.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.5533, allocations: 0 / 473.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006213/0.554, allocations: 63.89 kB / 473.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002264/0.5562, allocations: 341.4 kB / 473.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.825e-05/0.5564, allocations: 11.98 kB / 473.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002221/0.5586, allocations: 1.379 MB / 475.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5587, allocations: 192 / 475.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005164/0.5638, allocations: 1.109 MB / 476.4 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.5641, allocations: 108.6 kB / 476.5 MB, free: 10.22 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.5642, allocations: 19.92 kB / 476.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007555/0.5649, allocations: 56.02 kB / 476.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.5651, allocations: 27.95 kB / 476.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.831e-05/0.5651, allocations: 12 kB / 476.6 MB, free: 10.11 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004004/0.5655, allocations: 186 kB / 476.8 MB, free: 9.926 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.5656, allocations: 0 / 476.8 MB, free: 9.926 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006223/0.5662, allocations: 115.7 kB / 476.9 MB, free: 9.812 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Capacitor1.v,HeatCapacitor1.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005544/0.5718, allocations: 1.662 MB / 478.6 MB, free: 8.113 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.5743, allocations: 0.5034 MB / 479.1 MB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.5743, allocations: 0 / 479.1 MB, free: 7.609 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.5755, allocations: 280.2 kB / 479.3 MB, free: 7.336 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005098/0.5761, allocations: 38.61 kB / 479.4 MB, free: 7.301 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009797/0.5859, allocations: 3.807 MB / 483.2 MB, free: 3.398 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005012/0.5864, allocations: 0.8037 MB / 484 MB, free: 2.566 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003346/0.5868, allocations: 123.4 kB / 484.1 MB, free: 2.449 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5868, allocations: 0 / 484.1 MB, free: 2.449 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.728/3.315, allocations: 8.328 MB / 492.4 MB, free: 10.12 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat