Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingMOSInverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingMOSInverter,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_HeatingMOSInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.698/1.698, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003962/0.0003963, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08251/0.08296, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3467/0.4297, allocations: 71.12 MB / 343.2 MB, free: 1.742 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.4301, allocations: 76.33 kB / 343.3 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03057/0.4607, allocations: 6.487 MB / 349.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4607, allocations: 0 / 349.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.4608, allocations: 8 kB / 349.8 MB, free: 12.08 MB / 282.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.002329/0.4631, allocations: 0.7613 MB / 350.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.4632, allocations: 8.031 kB / 350.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001472/0.4633, allocations: 71.66 kB / 350.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.4635, allocations: 47.53 kB / 350.7 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005199/0.464, allocations: 306.5 kB / 351 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.986e-05/0.4641, allocations: 30.81 kB / 351 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000108/0.4642, allocations: 38.69 kB / 351.1 MB, free: 10.83 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/0.4661, allocations: 0.5262 MB / 351.6 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.4662, allocations: 0 / 351.6 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.79e-05/0.4663, allocations: 17.81 kB / 351.6 MB, free: 10.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.695e-05/0.4663, allocations: 8 kB / 351.6 MB, free: 10.4 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002602/0.4689, allocations: 0.5666 MB / 352.2 MB, free: 9.953 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004165/0.4732, allocations: 1.419 MB / 353.6 MB, free: 8.773 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/0.4752, allocations: 461.2 kB / 354.1 MB, free: 8.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.56e-05/0.4754, allocations: 12.27 kB / 354.1 MB, free: 8.418 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.4754, allocations: 38.45 kB / 354.1 MB, free: 8.375 MB / 282.7 MB Notification: Performance of pre-optimization done (n=40): time 3.396e-06/0.4754, allocations: 0 / 354.1 MB, free: 8.375 MB / 282.7 MB Notification: Performance of matching and sorting (n=40): time 0.008841/0.4843, allocations: 1.444 MB / 355.5 MB, free: 7.066 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.4844, allocations: 162.2 kB / 355.7 MB, free: 6.871 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005085/0.485, allocations: 234 kB / 355.9 MB, free: 6.668 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.818e-05/0.4851, allocations: 36.64 kB / 356 MB, free: 6.633 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001697/0.4853, allocations: 215.9 kB / 356.2 MB, free: 6.461 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001606/0.4854, allocations: 132 kB / 356.3 MB, free: 6.348 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.559e-05/0.4855, allocations: 7.25 kB / 356.3 MB, free: 6.348 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4856, allocations: 343.8 kB / 356.7 MB, free: 6.016 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009653/0.4866, allocations: 203.6 kB / 356.9 MB, free: 5.863 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001087/0.4877, allocations: 296 kB / 357.1 MB, free: 5.598 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001049/0.4888, allocations: 223.4 kB / 357.4 MB, free: 5.441 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.4888, allocations: 0 / 357.4 MB, free: 5.441 MB / 282.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004315/0.4931, allocations: 0.8275 MB / 358.2 MB, free: 4.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.449e-05/0.4932, allocations: 4 kB / 358.2 MB, free: 4.746 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.4933, allocations: 8 kB / 358.2 MB, free: 4.738 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00232/0.4956, allocations: 339.2 kB / 358.5 MB, free: 4.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000738/0.4964, allocations: 90.58 kB / 358.6 MB, free: 4.359 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002149/0.4985, allocations: 1.37 MB / 360 MB, free: 3.055 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009658/0.4995, allocations: 101.9 kB / 360.1 MB, free: 2.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-05/0.4996, allocations: 12 kB / 360.1 MB, free: 2.953 MB / 282.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.0003197/0.5, allocations: 158.2 kB / 360.3 MB, free: 2.816 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.5001, allocations: 35.62 kB / 360.3 MB, free: 2.781 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/0.5041, allocations: 0.7924 MB / 361.1 MB, free: 2.145 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/0.5042, allocations: 4 kB / 361.1 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.5042, allocations: 0 / 361.1 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.796e-05/0.5042, allocations: 7.984 kB / 361.1 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000952/0.5052, allocations: 459.2 kB / 361.5 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.5052, allocations: 0 / 361.5 MB, free: 1.734 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006092/0.5058, allocations: 71.89 kB / 361.6 MB, free: 1.664 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002246/0.5081, allocations: 336.6 kB / 361.9 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-05/0.5082, allocations: 15.36 kB / 362 MB, free: 1.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/0.5102, allocations: 1.372 MB / 363.3 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.5103, allocations: 48 / 363.3 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004912/0.5152, allocations: 1.109 MB / 364.4 MB, free: 15.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002991/0.5155, allocations: 151.5 kB / 364.6 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.631e-05/0.5156, allocations: 7.938 kB / 364.6 MB, free: 15.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007277/0.5164, allocations: 59.45 kB / 364.7 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.5165, allocations: 27.89 kB / 364.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.5165, allocations: 8 kB / 364.7 MB, free: 14.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004098/0.517, allocations: 192.7 kB / 364.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.517, allocations: 0 / 364.9 MB, free: 14.77 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006177/0.5176, allocations: 119.1 kB / 365 MB, free: 14.66 MB / 298.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.005296/0.5229, allocations: 1.663 MB / 366.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002383/0.5254, allocations: 0.5071 MB / 367.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.5254, allocations: 4.125 kB / 367.2 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.5266, allocations: 277.1 kB / 367.4 MB, free: 12.59 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005387/0.5272, allocations: 47.97 kB / 367.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009303/0.5365, allocations: 3.761 MB / 371.2 MB, free: 9.102 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.537, allocations: 0.8037 MB / 372 MB, free: 8.273 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003063/0.5373, allocations: 38.95 kB / 372.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002263/0.5376, allocations: 116.3 kB / 372.2 MB, free: 8.207 MB / 298.7 MB Notification: Performance of SimCode: time 9.62e-07/0.5376, allocations: 4 kB / 372.2 MB, free: 8.203 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04135/0.5789, allocations: 8.347 MB / 380.5 MB, free: 15.92 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002942/0.5793, allocations: 218.1 kB / 380.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.803/3.383, allocations: 4 kB / 380.8 MB, free: 15.67 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.HeatingMOSInverter_res.mat does not exist to compare? outputFormat=mat