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.001454/0.001454, allocations: 177.8 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.058/2.058, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001117/0.001117, allocations: 92.09 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.505e-05/2.515e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4025/0.4026, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.132/0.5346, allocations: 79.67 MB / 442.1 MB, free: 6.543 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002814/0.535, allocations: 73.12 kB / 442.2 MB, free: 6.473 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02901/0.564, allocations: 6.403 MB / 448.6 MB, free: 80 kB / 331.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.564, allocations: 0 / 448.6 MB, free: 80 kB / 331.1 MB Notification: Performance of Transformations before backend: time 2.616e-05/0.5641, allocations: 8 kB / 448.6 MB, free: 72 kB / 331.1 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.002214/0.5663, allocations: 0.7125 MB / 449.3 MB, free: 15.31 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.5664, allocations: 8.031 kB / 449.3 MB, free: 15.3 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.5665, allocations: 43.53 kB / 449.3 MB, free: 15.26 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.5671, allocations: 301.3 kB / 449.6 MB, free: 14.93 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.208e-05/0.5671, allocations: 12 kB / 449.6 MB, free: 14.91 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.962e-05/0.5672, allocations: 24 kB / 449.7 MB, free: 14.89 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001016/0.5683, allocations: 333.4 kB / 450 MB, free: 14.57 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009707/0.5692, allocations: 370.1 kB / 450.4 MB, free: 14.18 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.075e-05/0.5693, allocations: 0 / 450.4 MB, free: 14.18 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.749e-05/0.5694, allocations: 0 / 450.4 MB, free: 14.18 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.772e-05/0.5694, allocations: 14.75 kB / 450.4 MB, free: 14.17 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004126/0.5735, allocations: 1.504 MB / 451.9 MB, free: 12.57 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.5749, allocations: 343.5 kB / 452.2 MB, free: 12.23 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004513/0.5753, allocations: 177.9 kB / 452.4 MB, free: 12.05 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.673e-05/0.5754, allocations: 12.3 kB / 452.4 MB, free: 12.04 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.042e-05/0.5755, allocations: 43.72 kB / 452.4 MB, free: 11.99 MB / 347.1 MB Notification: Performance of pre-optimization done (n=40): time 2.695e-06/0.5755, allocations: 0 / 452.4 MB, free: 11.99 MB / 347.1 MB Notification: Performance of matching and sorting (n=40): time 0.002148/0.5776, allocations: 485 kB / 452.9 MB, free: 11.5 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/0.5778, allocations: 162.2 kB / 453.1 MB, free: 11.31 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.5781, allocations: 214.3 kB / 453.3 MB, free: 11.09 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.5782, allocations: 25.7 kB / 453.3 MB, free: 11.06 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001891/0.5784, allocations: 258.8 kB / 453.6 MB, free: 10.81 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001598/0.5785, allocations: 135 kB / 453.7 MB, free: 10.68 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.5786, allocations: 0 / 453.7 MB, free: 10.68 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.5788, allocations: 334.8 kB / 454 MB, free: 10.34 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/0.5791, allocations: 120.8 kB / 454.1 MB, free: 10.22 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004498/0.5796, allocations: 205.8 kB / 454.3 MB, free: 9.984 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005142/0.5801, allocations: 131.9 kB / 454.5 MB, free: 9.855 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.5801, allocations: 0 / 454.5 MB, free: 9.855 MB / 347.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.002794/0.5829, allocations: 0.6091 MB / 455.1 MB, free: 9.234 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.583, allocations: 4 kB / 455.1 MB, free: 9.23 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.583, allocations: 4 kB / 455.1 MB, free: 9.227 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001424/0.5844, allocations: 247.5 kB / 455.3 MB, free: 8.98 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006934/0.5852, allocations: 91.88 kB / 455.4 MB, free: 8.891 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001788/0.587, allocations: 1.338 MB / 456.7 MB, free: 7.504 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008902/0.5879, allocations: 83.73 kB / 456.8 MB, free: 7.422 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.759e-05/0.588, allocations: 17.44 kB / 456.8 MB, free: 7.406 MB / 347.1 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.0001814/0.5882, allocations: 116.9 kB / 457 MB, free: 7.285 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002045/0.5902, allocations: 0.491 MB / 457.5 MB, free: 6.781 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.5903, allocations: 35.53 kB / 457.5 MB, free: 6.746 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002736/0.5931, allocations: 0.5877 MB / 458.1 MB, free: 6.145 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.238e-05/0.5931, allocations: 8 kB / 458.1 MB, free: 6.137 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.5932, allocations: 4 kB / 458.1 MB, free: 6.133 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.5932, allocations: 0 / 458.1 MB, free: 6.133 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000851/0.594, allocations: 401.6 kB / 458.5 MB, free: 5.703 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.5941, allocations: 4 kB / 458.5 MB, free: 5.699 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005932/0.5947, allocations: 67.94 kB / 458.5 MB, free: 5.633 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001385/0.5961, allocations: 254.4 kB / 458.8 MB, free: 5.379 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.616e-05/0.5962, allocations: 8 kB / 458.8 MB, free: 5.371 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/0.5979, allocations: 1.352 MB / 460.2 MB, free: 3.969 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.598, allocations: 0 / 460.2 MB, free: 3.969 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003214/0.6012, allocations: 0.8396 MB / 461 MB, free: 3.105 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001809/0.6014, allocations: 104.7 kB / 461.1 MB, free: 2.984 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.417e-05/0.6015, allocations: 3.953 kB / 461.1 MB, free: 2.98 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007054/0.6023, allocations: 56.84 kB / 461.2 MB, free: 2.926 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.469e-05/0.6024, allocations: 23.97 kB / 461.2 MB, free: 2.902 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.333e-05/0.6024, allocations: 16.03 kB / 461.2 MB, free: 2.887 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.0002374/0.6027, allocations: 166 kB / 461.4 MB, free: 2.727 MB / 347.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6027, allocations: 0 / 461.4 MB, free: 2.727 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006084/0.6033, allocations: 103.7 kB / 461.5 MB, free: 2.625 MB / 347.1 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.003626/0.6069, allocations: 1.381 MB / 462.8 MB, free: 1.211 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.001169/0.6082, allocations: 343.7 kB / 463.2 MB, free: 0.875 MB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/0.6082, allocations: 0 / 463.2 MB, free: 0.875 MB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006254/0.6088, allocations: 199 kB / 463.4 MB, free: 0.6836 MB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.6093, allocations: 29.91 kB / 463.4 MB, free: 0.6562 MB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002266/0.6116, allocations: 0.6656 MB / 464.1 MB, free: 15.94 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004931/0.6121, allocations: 0.8073 MB / 464.9 MB, free: 15.11 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002949/0.6125, allocations: 123.4 kB / 465 MB, free: 14.98 MB / 363.1 MB Notification: Performance of SimCode: time 1.583e-06/0.6125, allocations: 0 / 465 MB, free: 14.98 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.74/3.353, allocations: 8.262 MB / 473.3 MB, free: 6.754 MB / 363.1 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