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.InvertersExtendedModel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 1.552/1.552, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.986e-05/1.993e-05, allocations: 4 kB / 222.5 MB, free: 8.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06847/0.06851, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3077/0.3763, allocations: 93.32 MB / 354.6 MB, free: 11.27 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.3766, allocations: 67.84 kB / 354.7 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5552/0.9318, allocations: 124 MB / 478.7 MB, free: 71.98 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.011e-06/0.9319, allocations: 0 / 478.7 MB, free: 71.98 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.009e-05/0.932, allocations: 46.62 kB / 478.7 MB, free: 71.98 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004885/0.9369, allocations: 2.799 MB / 481.5 MB, free: 69.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.9369, allocations: 8.031 kB / 481.5 MB, free: 69.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005568/0.9375, allocations: 414.9 kB / 481.9 MB, free: 68.71 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00459/0.9421, allocations: 2.428 MB / 484.4 MB, free: 66.31 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.9422, allocations: 12 kB / 484.4 MB, free: 66.3 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001698/0.9423, allocations: 43.86 kB / 484.4 MB, free: 66.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00126/0.9436, allocations: 0.6861 MB / 485.1 MB, free: 65.57 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.9448, allocations: 0.7206 MB / 485.8 MB, free: 64.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.9449, allocations: 3.938 kB / 485.8 MB, free: 64.81 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.181e-05/0.945, allocations: 0 / 485.8 MB, free: 64.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.945, allocations: 19.98 kB / 485.8 MB, free: 64.79 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006191/0.9512, allocations: 3.173 MB / 489 MB, free: 61.58 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007696/0.952, allocations: 471.9 kB / 489.5 MB, free: 61.1 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007735/0.9528, allocations: 0.5654 MB / 490 MB, free: 60.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03557/0.9884, allocations: 36.19 MB / 0.5139 GB, free: 19.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005361/0.989, allocations: 305.7 kB / 0.5142 GB, free: 18.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.14e-06/0.989, allocations: 0 / 0.5142 GB, free: 18.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.0015/0.9905, allocations: 0.7998 MB / 0.515 GB, free: 18.15 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.84e-05/0.9906, allocations: 273 kB / 0.5152 GB, free: 17.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004085/0.9947, allocations: 2.453 MB / 0.5176 GB, free: 15.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001155/0.9949, allocations: 29.69 kB / 0.5177 GB, free: 15.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.9961, allocations: 1.294 MB / 0.5189 GB, free: 14.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003587/0.9965, allocations: 161.8 kB / 0.5191 GB, free: 13.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000118/0.9967, allocations: 0 / 0.5191 GB, free: 13.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.9968, allocations: 350.8 kB / 0.5194 GB, free: 13.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008917/0.9978, allocations: 178.6 kB / 0.5196 GB, free: 13.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.999, allocations: 0.5781 MB / 0.5201 GB, free: 12.57 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/1, allocations: 272.2 kB / 0.5204 GB, free: 12.31 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.156e-05/1, allocations: 4 kB / 0.5204 GB, free: 12.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003546/1.004, allocations: 0.7134 MB / 0.5211 GB, free: 11.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.548e-05/1.004, allocations: 15.94 kB / 0.5211 GB, free: 11.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000286/1.004, allocations: 83.98 kB / 0.5212 GB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.053e-05/1.004, allocations: 20.75 kB / 0.5212 GB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001961/1.006, allocations: 207.7 kB / 0.5214 GB, free: 11.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.34e-05/1.007, allocations: 27.94 kB / 0.5214 GB, free: 11.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004153/1.011, allocations: 107 kB / 0.5215 GB, free: 11.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002914/1.011, allocations: 75.97 kB / 0.5216 GB, free: 11.06 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004212/1.011, allocations: 144.6 kB / 0.5218 GB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009231/1.012, allocations: 399.1 kB / 0.5221 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008281/1.021, allocations: 1.129 MB / 0.5232 GB, free: 9.387 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.947e-05/1.021, allocations: 4 kB / 0.5232 GB, free: 9.383 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/1.021, allocations: 4 kB / 0.5232 GB, free: 9.379 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.597e-05/1.021, allocations: 7.984 kB / 0.5232 GB, free: 9.371 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008748/1.03, allocations: 2.088 MB / 0.5253 GB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002535/1.03, allocations: 71.98 kB / 0.5254 GB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001402/1.031, allocations: 103.9 kB / 0.5255 GB, free: 7.07 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.69e-05/1.031, allocations: 3.938 kB / 0.5255 GB, free: 7.066 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001618/1.032, allocations: 35.92 kB / 0.5255 GB, free: 7.031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.088e-05/1.032, allocations: 4 kB / 0.5255 GB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.922e-06/1.032, allocations: 0 / 0.5255 GB, free: 7.027 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/1.036, allocations: 1.213 MB / 0.5267 GB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005027/1.041, allocations: 0.5117 MB / 0.5272 GB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001258/1.042, allocations: 7.953 kB / 0.5272 GB, free: 5.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002953/1.045, allocations: 40.02 kB / 0.5272 GB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003381/1.046, allocations: 59.94 kB / 0.5273 GB, free: 5.133 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001958/1.046, allocations: 35.98 kB / 0.5273 GB, free: 5.098 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.007084/1.053, allocations: 1.82 MB / 0.5291 GB, free: 3.285 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.52e-06/1.053, allocations: 0 / 0.5291 GB, free: 3.285 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004287/1.057, allocations: 0.6204 MB / 0.5297 GB, free: 2.664 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002983/1.06, allocations: 0.993 MB / 0.5307 GB, free: 1.746 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002596/1.063, allocations: 0.6641 MB / 0.5313 GB, free: 1.059 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.22e-06/1.063, allocations: 4 kB / 0.5313 GB, free: 1.055 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/1.064, allocations: 383.1 kB / 0.5317 GB, free: 0.6562 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005514/1.07, allocations: 0.5136 MB / 0.5322 GB, free: 144 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.218/1.288, allocations: 3.325 MB / 0.5354 GB, free: 73.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001761/1.29, allocations: 1.781 MB / 0.5372 GB, free: 72.93 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004761/1.29, allocations: 168 kB / 0.5373 GB, free: 72.93 MB / 346.7 MB Notification: Performance of SimCode: time 1.709e-06/1.29, allocations: 0 / 0.5373 GB, free: 72.93 MB / 346.7 MB Notification: Performance of Templates: time 0.06302/1.353, allocations: 38.17 MB / 0.5746 GB, free: 66.81 MB / 346.7 MB