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.001696/0.001696, allocations: 181.6 kB / 13.66 MB, free: 1.664 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.07/2.07, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001108/0.001108, allocations: 94.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.286e-05/3.303e-05, allocations: 4 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09686/0.09693, allocations: 47.57 MB / 369.2 MB, free: 2.137 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4119/0.5089, allocations: 80.33 MB / 449.5 MB, free: 12.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.5092, allocations: 71.53 kB / 449.6 MB, free: 12.53 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0305/0.5397, allocations: 6.452 MB / 456 MB, free: 6.941 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.5398, allocations: 0.6562 kB / 456 MB, free: 6.941 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.589e-05/0.5398, allocations: 8 kB / 456 MB, free: 6.934 MB / 330.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.002319/0.5421, allocations: 0.713 MB / 456.7 MB, free: 6.203 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.181e-05/0.5422, allocations: 8.031 kB / 456.8 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000176/0.5424, allocations: 72.84 kB / 456.8 MB, free: 6.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.5426, allocations: 49.81 kB / 456.9 MB, free: 6.09 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005897/0.5432, allocations: 301.8 kB / 457.2 MB, free: 5.785 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.332e-05/0.5433, allocations: 28.91 kB / 457.2 MB, free: 5.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/0.5434, allocations: 41.19 kB / 457.2 MB, free: 5.742 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.5446, allocations: 429.9 kB / 457.7 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.5447, allocations: 0 / 457.7 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.89e-05/0.5447, allocations: 15.44 kB / 457.7 MB, free: 5.422 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.49e-05/0.5448, allocations: 8 kB / 457.7 MB, free: 5.414 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001062/0.5458, allocations: 352.2 kB / 458 MB, free: 5.195 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004368/0.5502, allocations: 1.569 MB / 459.6 MB, free: 3.828 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0014/0.5517, allocations: 363 kB / 459.9 MB, free: 3.574 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005131/0.5522, allocations: 198.3 kB / 460.1 MB, free: 3.449 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.183e-05/0.5523, allocations: 12.3 kB / 460.2 MB, free: 3.438 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.5524, allocations: 42.83 kB / 460.2 MB, free: 3.391 MB / 330.7 MB Notification: Performance of pre-optimization done (n=40): time 3.296e-06/0.5524, allocations: 0 / 460.2 MB, free: 3.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=40): time 0.002238/0.5546, allocations: 0.5095 MB / 460.7 MB, free: 2.992 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001146/0.5548, allocations: 165.3 kB / 460.9 MB, free: 2.797 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004034/0.5552, allocations: 226.8 kB / 461.1 MB, free: 2.605 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.5553, allocations: 33.64 kB / 461.1 MB, free: 2.57 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/0.5555, allocations: 260.4 kB / 461.4 MB, free: 2.352 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001722/0.5557, allocations: 141.9 kB / 461.5 MB, free: 2.227 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.5558, allocations: 10.75 kB / 461.5 MB, free: 2.223 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.5559, allocations: 330.4 kB / 461.8 MB, free: 1.898 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004031/0.5563, allocations: 122.5 kB / 462 MB, free: 1.824 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004922/0.5569, allocations: 223.4 kB / 462.2 MB, free: 1.633 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000461/0.5573, allocations: 135.9 kB / 462.3 MB, free: 1.543 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.5574, allocations: 4 kB / 462.3 MB, free: 1.539 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00294/0.5603, allocations: 0.6402 MB / 463 MB, free: 0.9062 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.4e-05/0.5604, allocations: 11.44 kB / 463 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.5604, allocations: 48 / 463 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/0.5625, allocations: 301.4 kB / 463.3 MB, free: 0.5977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007448/0.5633, allocations: 91.88 kB / 463.4 MB, free: 0.5078 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/0.565, allocations: 1.304 MB / 464.7 MB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009535/0.566, allocations: 95.73 kB / 464.8 MB, free: 15.06 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.769e-05/0.5661, allocations: 12 kB / 464.8 MB, free: 15.05 MB / 346.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 () * 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.0001982/0.5663, allocations: 132.9 kB / 464.9 MB, free: 14.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.5664, allocations: 35.62 kB / 464.9 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002938/0.5694, allocations: 0.6265 MB / 465.6 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-05/0.5695, allocations: 4 kB / 465.6 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.5695, allocations: 0 / 465.6 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.243e-05/0.5695, allocations: 0 / 465.6 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.5706, allocations: 472.9 kB / 466 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.5706, allocations: 4 kB / 466 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006436/0.5713, allocations: 67.89 kB / 466.1 MB, free: 13.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001988/0.5733, allocations: 291 kB / 466.4 MB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.859e-05/0.5734, allocations: 12 kB / 466.4 MB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001707/0.5751, allocations: 1.32 MB / 467.7 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.5752, allocations: 0 / 467.7 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003423/0.5786, allocations: 0.8748 MB / 468.6 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001718/0.5788, allocations: 108.7 kB / 468.7 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.914e-05/0.579, allocations: 16 kB / 468.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007308/0.5797, allocations: 56.02 kB / 468.8 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001098/0.5798, allocations: 27.95 kB / 468.8 MB, free: 10.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.87e-05/0.5799, allocations: 12 kB / 468.8 MB, free: 10.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002876/0.5802, allocations: 175.1 kB / 469 MB, free: 10.66 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5802, allocations: 4 kB / 469 MB, free: 10.66 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006165/0.5808, allocations: 119.7 kB / 469.1 MB, free: 10.54 MB / 346.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 () * 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.004015/0.5849, allocations: 1.42 MB / 470.5 MB, free: 9.086 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001385/0.5863, allocations: 367.7 kB / 470.9 MB, free: 8.727 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.5864, allocations: 0 / 470.9 MB, free: 8.727 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007425/0.5871, allocations: 207.9 kB / 471.1 MB, free: 8.523 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000517/0.5876, allocations: 42.45 kB / 471.1 MB, free: 8.484 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002429/0.5901, allocations: 0.7139 MB / 471.8 MB, free: 7.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005113/0.5906, allocations: 0.8037 MB / 472.6 MB, free: 6.898 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003154/0.591, allocations: 123.4 kB / 472.8 MB, free: 6.777 MB / 346.7 MB Notification: Performance of SimCode: time 1.433e-06/0.591, allocations: 0 / 472.8 MB, free: 6.777 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.823/3.414, allocations: 8.345 MB / 481.1 MB, free: 14.42 MB / 362.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