Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.683/1.683, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003579/0.0003581, allocations: 15.98 kB / 233.2 MB, free: 3.055 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0723/0.07268, allocations: 38.77 MB / 271.9 MB, free: 12.2 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.008438/0.08117, allocations: 6.249 MB / 278.2 MB, free: 5.918 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02432/0.1055, allocations: 15.72 MB / 293.9 MB, free: 6.164 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.1066, allocations: 31.75 kB / 293.9 MB, free: 6.133 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002494/0.1091, allocations: 0.7156 MB / 294.6 MB, free: 5.414 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005746/0.1149, allocations: 1.546 MB / 296.2 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004245/0.1192, allocations: 1.075 MB / 297.3 MB, free: 2.785 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00644/0.1257, allocations: 2.755 MB / 300 MB, free: 24 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2223/0.348, allocations: 203.5 kB / 300.2 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007639/0.3488, allocations: 433.6 kB / 300.6 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006302/0.3495, allocations: 0.5022 MB / 301.1 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001205/0.3496, allocations: 23.38 kB / 301.2 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004293/0.3539, allocations: 1.2 MB / 302.4 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002199/0.3542, allocations: 143.8 kB / 302.5 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004466/0.3546, allocations: 328.4 kB / 302.8 MB, free: 10.89 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002179/0.3568, allocations: 1.512 MB / 304.3 MB, free: 10.73 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.3568, allocations: 1.406 kB / 304.3 MB, free: 10.73 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.164e-06/0.3568, allocations: 3.984 kB / 304.3 MB, free: 10.73 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.3569, allocations: 0 / 304.3 MB, free: 10.73 MB / 250.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.002933/0.3598, allocations: 1.806 MB / 306.2 MB, free: 9.621 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/0.3599, allocations: 13.88 kB / 306.2 MB, free: 9.621 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.3602, allocations: 193.3 kB / 306.4 MB, free: 9.523 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002424/0.3626, allocations: 1.285 MB / 307.6 MB, free: 9.098 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.513e-05/0.3626, allocations: 19.36 kB / 307.7 MB, free: 9.098 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/0.3628, allocations: 28.84 kB / 307.7 MB, free: 9.098 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00116/0.3639, allocations: 456.7 kB / 308.1 MB, free: 9.062 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.527e-05/0.364, allocations: 0 / 308.1 MB, free: 9.062 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.108e-05/0.364, allocations: 9.156 kB / 308.1 MB, free: 9.062 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.352e-05/0.3641, allocations: 12.03 kB / 308.2 MB, free: 9.062 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.3654, allocations: 0.5045 MB / 308.7 MB, free: 9.055 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003372/0.3688, allocations: 1.63 MB / 310.3 MB, free: 8.664 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001127/0.37, allocations: 415.5 kB / 310.7 MB, free: 8.633 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01682/0.3868, allocations: 15.31 MB / 326 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007686/0.3877, allocations: 279.8 kB / 326.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 3.74e-06/0.3877, allocations: 0 / 326.3 MB, free: 12.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.002625/0.3903, allocations: 0.9105 MB / 327.2 MB, free: 12.62 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.3904, allocations: 58.53 kB / 327.2 MB, free: 12.56 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0022/0.3926, allocations: 1.447 MB / 328.7 MB, free: 12.1 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.802e-05/0.3927, allocations: 33.27 kB / 328.7 MB, free: 12.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005322/0.3932, allocations: 0.6322 MB / 329.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001278/0.3934, allocations: 102.5 kB / 329.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.694e-05/0.3934, allocations: 6.938 kB / 329.5 MB, free: 11.77 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001764/0.3936, allocations: 331 kB / 329.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005748/0.3942, allocations: 184.7 kB / 330 MB, free: 11.41 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007148/0.3949, allocations: 376.4 kB / 330.3 MB, free: 11.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006014/0.3956, allocations: 222.4 kB / 330.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.8e-06/0.3956, allocations: 2.625 kB / 330.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001749/0.3973, allocations: 0.6407 MB / 331.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.3974, allocations: 8 kB / 331.2 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.334e-05/0.3975, allocations: 45.75 kB / 331.2 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004291/0.3979, allocations: 136 kB / 331.4 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005156/0.3985, allocations: 121.3 kB / 331.5 MB, free: 10.39 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008571/0.3993, allocations: 0.6737 MB / 332.2 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009197/0.4003, allocations: 76.78 kB / 332.2 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.604e-05/0.4004, allocations: 42.12 kB / 332.3 MB, free: 9.637 MB / 266.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.0006526/0.4011, allocations: 277.3 kB / 332.6 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003081/0.4014, allocations: 189.7 kB / 332.7 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002799/0.4042, allocations: 0.8001 MB / 333.5 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.192e-06/0.4042, allocations: 0 / 333.5 MB, free: 8.609 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.353e-06/0.4042, allocations: 4 kB / 333.6 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.521e-06/0.4043, allocations: 4 kB / 333.6 MB, free: 8.602 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/0.4075, allocations: 1.349 MB / 334.9 MB, free: 7.496 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.377e-05/0.4076, allocations: 34.44 kB / 334.9 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003116/0.4079, allocations: 59.14 kB / 335 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003382/0.4083, allocations: 126.1 kB / 335.1 MB, free: 7.305 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.166e-05/0.4083, allocations: 19.98 kB / 335.1 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008/0.4092, allocations: 0.6727 MB / 335.8 MB, free: 6.633 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.4092, allocations: 3.984 kB / 335.8 MB, free: 6.629 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001889/0.4111, allocations: 0.7541 MB / 336.6 MB, free: 5.945 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005969/0.4117, allocations: 271.9 kB / 336.8 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/0.4119, allocations: 7.688 kB / 336.8 MB, free: 5.676 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006055/0.4126, allocations: 43.52 kB / 336.9 MB, free: 5.637 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.4127, allocations: 39.2 kB / 336.9 MB, free: 5.602 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.144e-05/0.4128, allocations: 23.11 kB / 336.9 MB, free: 5.582 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001669/0.4145, allocations: 0.9483 MB / 337.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.19e-07/0.4145, allocations: 0 / 337.9 MB, free: 4.859 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001253/0.4158, allocations: 338.9 kB / 338.2 MB, free: 4.543 MB / 266.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.001026/0.4168, allocations: 0.5553 MB / 338.8 MB, free: 4.094 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.4185, allocations: 0.564 MB / 339.3 MB, free: 3.629 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.668e-06/0.4185, allocations: 0 / 339.3 MB, free: 3.629 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008761/0.4194, allocations: 312.7 kB / 339.6 MB, free: 3.359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001189/0.4206, allocations: 251.2 kB / 339.9 MB, free: 3.195 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004792/0.4254, allocations: 2.566 MB / 342.5 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001049/0.4265, allocations: 1.184 MB / 343.6 MB, free: 15.52 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002605/0.4268, allocations: 87.44 kB / 343.7 MB, free: 15.45 MB / 282.7 MB Notification: Performance of SimCode: time 1.703e-06/0.4268, allocations: 0 / 343.7 MB, free: 15.45 MB / 282.7 MB Notification: Performance of Templates: time 0.04334/0.4702, allocations: 24.74 MB / 368.5 MB, free: 7.074 MB / 298.7 MB