Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.822/1.822, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003541, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0788/0.07918, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008386/0.08762, allocations: 6.249 MB / 314.6 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02522/0.1129, allocations: 15.72 MB / 330.3 MB, free: 10.99 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001368/0.1143, allocations: 27.75 kB / 330.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002697/0.117, allocations: 0.7196 MB / 331.1 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005883/0.123, allocations: 1.554 MB / 332.6 MB, free: 8.68 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004335/0.1273, allocations: 1.067 MB / 333.7 MB, free: 7.609 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006651/0.134, allocations: 2.767 MB / 336.5 MB, free: 4.84 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005493/0.1346, allocations: 205.1 kB / 336.7 MB, free: 4.621 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008101/0.1355, allocations: 425.9 kB / 337.1 MB, free: 4.203 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008176/0.1363, allocations: 0.5048 MB / 337.6 MB, free: 3.695 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001358/0.1365, allocations: 24 kB / 337.6 MB, free: 3.672 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004688/0.1412, allocations: 1.203 MB / 338.8 MB, free: 2.469 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002768/0.1415, allocations: 143 kB / 338.9 MB, free: 2.328 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005539/0.1421, allocations: 328.8 kB / 339.3 MB, free: 2 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002896/0.145, allocations: 1.504 MB / 340.8 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.586e-06/0.145, allocations: 7.938 kB / 340.8 MB, free: 496 kB / 282.7 MB Notification: Performance of FrontEnd: time 3.099e-06/0.145, allocations: 0 / 340.8 MB, free: 496 kB / 282.7 MB Notification: Performance of Transformations before backend: time 3.504e-05/0.1451, allocations: 0 / 340.8 MB, free: 496 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003518/0.1486, allocations: 1.811 MB / 342.6 MB, free: 14.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.1487, allocations: 8.031 kB / 342.6 MB, free: 14.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000327/0.149, allocations: 193.7 kB / 342.8 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00288/0.1519, allocations: 1.286 MB / 344.1 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.285e-05/0.152, allocations: 20.56 kB / 344.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001126/0.1521, allocations: 27.94 kB / 344.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.1534, allocations: 461.2 kB / 344.6 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.1535, allocations: 3.984 kB / 344.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.896e-05/0.1535, allocations: 8 kB / 344.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.1536, allocations: 11.98 kB / 344.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001483/0.1551, allocations: 0.502 MB / 345.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003783/0.1589, allocations: 1.631 MB / 346.7 MB, free: 10.33 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001261/0.1602, allocations: 419.3 kB / 347.1 MB, free: 9.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0212/0.1814, allocations: 15.31 MB / 362.4 MB, free: 8.531 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008068/0.1823, allocations: 279.1 kB / 362.7 MB, free: 8.246 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 4.598e-06/0.1823, allocations: 0 / 362.7 MB, free: 8.246 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.002769/0.1851, allocations: 0.9079 MB / 363.6 MB, free: 7.309 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.559e-05/0.1852, allocations: 55.41 kB / 363.7 MB, free: 7.242 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00245/0.1877, allocations: 1.448 MB / 365.1 MB, free: 5.758 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.353e-05/0.1878, allocations: 33.7 kB / 365.2 MB, free: 5.719 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006941/0.1885, allocations: 0.6349 MB / 365.8 MB, free: 5.082 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001561/0.1887, allocations: 98.66 kB / 365.9 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.246e-05/0.1887, allocations: 12 kB / 365.9 MB, free: 4.973 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.1889, allocations: 326.8 kB / 366.2 MB, free: 4.645 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006372/0.1896, allocations: 181 kB / 366.4 MB, free: 4.469 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007691/0.1903, allocations: 383.4 kB / 366.8 MB, free: 4 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006745/0.191, allocations: 228 kB / 367 MB, free: 3.777 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.468e-06/0.1911, allocations: 0 / 367 MB, free: 3.777 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001867/0.1929, allocations: 0.6473 MB / 367.6 MB, free: 3.121 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.953e-05/0.193, allocations: 8 kB / 367.7 MB, free: 3.113 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.958e-05/0.1931, allocations: 36 kB / 367.7 MB, free: 3.078 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004249/0.1935, allocations: 133.4 kB / 367.8 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005574/0.1941, allocations: 119.8 kB / 367.9 MB, free: 2.828 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009041/0.195, allocations: 0.685 MB / 368.6 MB, free: 2.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000842/0.1959, allocations: 83.47 kB / 368.7 MB, free: 2.035 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.907e-05/0.196, allocations: 32 kB / 368.7 MB, free: 2.004 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006272/0.1967, allocations: 289.6 kB / 369 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003328/0.197, allocations: 185.8 kB / 369.2 MB, free: 1.527 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00285/0.1999, allocations: 0.7894 MB / 370 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.1999, allocations: 7.984 kB / 370 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.873e-06/0.2, allocations: 0 / 370 MB, free: 0.7188 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.2, allocations: 3.953 kB / 370 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2056/0.4056, allocations: 1.343 MB / 371.3 MB, free: 65.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.125e-05/0.4058, allocations: 38.77 kB / 371.4 MB, free: 65.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003466/0.4061, allocations: 54.58 kB / 371.4 MB, free: 65.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003656/0.4065, allocations: 135.8 kB / 371.6 MB, free: 65.32 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.426e-05/0.4066, allocations: 19.06 kB / 371.6 MB, free: 65.32 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007009/0.4073, allocations: 0.665 MB / 372.2 MB, free: 64.8 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.128e-06/0.4073, allocations: 1.938 kB / 372.2 MB, free: 64.8 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001886/0.4092, allocations: 0.7532 MB / 373 MB, free: 64.59 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005053/0.4098, allocations: 277.5 kB / 373.3 MB, free: 64.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002174/0.41, allocations: 11.92 kB / 373.3 MB, free: 64.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006175/0.4106, allocations: 40.58 kB / 373.3 MB, free: 64.41 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001569/0.4108, allocations: 43.58 kB / 373.4 MB, free: 64.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.67e-05/0.4109, allocations: 24.83 kB / 373.4 MB, free: 64.41 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001865/0.4128, allocations: 0.9487 MB / 374.3 MB, free: 64.15 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.4128, allocations: 0 / 374.3 MB, free: 64.15 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001224/0.4141, allocations: 330.2 kB / 374.7 MB, free: 64.13 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001012/0.4151, allocations: 0.5522 MB / 375.2 MB, free: 64.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001667/0.4168, allocations: 0.5623 MB / 375.8 MB, free: 63.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.2e-06/0.4168, allocations: 1.188 kB / 375.8 MB, free: 63.87 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008509/0.4177, allocations: 314.9 kB / 376.1 MB, free: 63.76 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/0.4189, allocations: 245.9 kB / 376.3 MB, free: 63.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00445/0.4233, allocations: 2.557 MB / 378.9 MB, free: 62.3 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008117/0.4242, allocations: 1.18 MB / 380.1 MB, free: 61.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002727/0.4245, allocations: 90.8 kB / 380.2 MB, free: 61.59 MB / 314.7 MB Notification: Performance of SimCode: time 2.067e-06/0.4245, allocations: 0 / 380.2 MB, free: 61.59 MB / 314.7 MB Notification: Performance of Templates: time 0.03566/0.4602, allocations: 24.74 MB / 404.9 MB, free: 41.39 MB / 314.7 MB