Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.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.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",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.0009717/0.0009716, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.302/1.302, allocations: 221.3 MB / 235.5 MB, free: 2.918 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008267/0.0008266, allocations: 98.77 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.37e-05/2.381e-05, allocations: 4 kB / 343.9 MB, free: 4.223 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09204/0.09208, allocations: 50.42 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2806/0.3727, allocations: 81.73 MB / 476.1 MB, free: 5.762 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001912/0.3729, allocations: 67.97 kB / 476.1 MB, free: 5.695 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01758/0.3905, allocations: 6.586 MB / 482.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3905, allocations: 0 / 482.7 MB, free: 15.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.819e-05/0.3906, allocations: 8 kB / 482.7 MB, free: 15.08 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001264/0.3918, allocations: 0.7057 MB / 483.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.3919, allocations: 8.031 kB / 483.4 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.059e-05/0.392, allocations: 74.53 kB / 483.5 MB, free: 14.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.75e-05/0.3921, allocations: 51.44 kB / 483.6 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000496/0.3926, allocations: 326.1 kB / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.3926, allocations: 24.78 kB / 483.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.556e-05/0.3927, allocations: 36 kB / 483.9 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007239/0.3934, allocations: 437.4 kB / 484.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.3934, allocations: 4 kB / 484.4 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.353e-05/0.3935, allocations: 16 kB / 484.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.3935, allocations: 8 kB / 484.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006301/0.3942, allocations: 351.1 kB / 484.7 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002522/0.3967, allocations: 1.556 MB / 486.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007889/0.3975, allocations: 377.4 kB / 486.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002971/0.3978, allocations: 197 kB / 486.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.961e-05/0.3978, allocations: 4.328 kB / 486.9 MB, free: 10.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.537e-05/0.3979, allocations: 38.89 kB / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.553e-06/0.3979, allocations: 0 / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.001291/0.3992, allocations: 0.5161 MB / 487.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.998e-05/0.3993, allocations: 166.2 kB / 487.6 MB, free: 9.93 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002476/0.3995, allocations: 227.4 kB / 487.8 MB, free: 9.699 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.933e-05/0.3996, allocations: 33.7 kB / 487.8 MB, free: 9.66 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.3997, allocations: 208.3 kB / 488 MB, free: 9.453 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001106/0.3999, allocations: 134 kB / 488.2 MB, free: 9.32 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.313e-05/0.3999, allocations: 12 kB / 488.2 MB, free: 9.309 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.4, allocations: 350.8 kB / 488.5 MB, free: 8.957 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/0.4003, allocations: 124.9 kB / 488.6 MB, free: 8.832 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003043/0.4006, allocations: 218.7 kB / 488.9 MB, free: 8.582 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.4008, allocations: 139.8 kB / 489 MB, free: 8.445 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4009, allocations: 0 / 489 MB, free: 8.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0016/0.4025, allocations: 0.6586 MB / 489.7 MB, free: 7.773 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.196e-05/0.4025, allocations: 8 kB / 489.7 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.082e-06/0.4025, allocations: 0 / 489.7 MB, free: 7.766 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001143/0.4037, allocations: 293.5 kB / 489.9 MB, free: 7.473 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003594/0.404, allocations: 87.88 kB / 490 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001124/0.4052, allocations: 1.304 MB / 491.3 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004951/0.4057, allocations: 95.69 kB / 491.4 MB, free: 5.938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.44e-05/0.4057, allocations: 12 kB / 491.4 MB, free: 5.926 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 () * 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.0001482/0.4059, allocations: 128.9 kB / 491.6 MB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.059e-05/0.406, allocations: 39.56 kB / 491.6 MB, free: 5.754 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001667/0.4076, allocations: 0.638 MB / 492.2 MB, free: 5.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.4076, allocations: 4 kB / 492.3 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.4077, allocations: 0 / 492.3 MB, free: 5.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.662e-06/0.4077, allocations: 3.984 kB / 492.3 MB, free: 5.086 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005762/0.4083, allocations: 465.5 kB / 492.7 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.4083, allocations: 0 / 492.7 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003071/0.4086, allocations: 71.89 kB / 492.8 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001069/0.4097, allocations: 303.3 kB / 493.1 MB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.298e-05/0.4097, allocations: 8 kB / 493.1 MB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.4107, allocations: 1.308 MB / 494.4 MB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/0.4108, allocations: 4.172 kB / 494.4 MB, free: 2.84 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001824/0.4126, allocations: 0.875 MB / 495.3 MB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/0.4127, allocations: 108.6 kB / 495.4 MB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.702e-05/0.4128, allocations: 15.95 kB / 495.4 MB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003884/0.4132, allocations: 67.94 kB / 495.5 MB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.366e-05/0.4132, allocations: 28 kB / 495.5 MB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.398e-05/0.4133, allocations: 15.98 kB / 495.5 MB, free: 1.691 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000178/0.4135, allocations: 183.1 kB / 495.7 MB, free: 1.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4135, allocations: 0 / 495.7 MB, free: 1.512 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004068/0.4139, allocations: 115.8 kB / 495.8 MB, free: 1.398 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 () * 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.002203/0.4161, allocations: 1.425 MB / 497.2 MB, free: 15.94 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007945/0.4169, allocations: 359.5 kB / 497.6 MB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.385e-05/0.4169, allocations: 4.5 kB / 497.6 MB, free: 15.58 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003864/0.4173, allocations: 215.5 kB / 497.8 MB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003244/0.4177, allocations: 41.05 kB / 497.8 MB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001481/0.4192, allocations: 0.6751 MB / 498.5 MB, free: 14.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003995/0.4196, allocations: 0.8112 MB / 499.3 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001681/0.4198, allocations: 30.95 kB / 499.3 MB, free: 13.76 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.4199, allocations: 127.5 kB / 499.5 MB, free: 13.64 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.4199, allocations: 0 / 499.5 MB, free: 13.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02103/0.441, allocations: 8.358 MB / 0.4959 GB, free: 5.438 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001621/0.4412, allocations: 180 kB / 0.4961 GB, free: 5.219 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.42, allocations: 0 / 0.4961 GB, free: 5.219 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_HeatingMOSInverter.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat