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/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.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.623/1.623, allocations: 171.2 MB / 186.8 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.000354, allocations: 8 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07052/0.0709, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3177/0.3886, allocations: 94.07 MB / 366.1 MB, free: 12.14 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002123/0.3889, allocations: 73.27 kB / 366.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5733/0.9622, allocations: 129.4 MB / 495.5 MB, free: 66.49 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.431e-06/0.9622, allocations: 0 / 495.5 MB, free: 66.49 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.217e-05/0.9623, allocations: 48 kB / 495.6 MB, free: 66.44 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.007636/0.97, allocations: 3.563 MB / 499.1 MB, free: 62.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.97, allocations: 8.031 kB / 499.2 MB, free: 62.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009045/0.971, allocations: 414.9 kB / 499.6 MB, free: 62.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005318/0.9763, allocations: 2.448 MB / 0.4902 GB, free: 59.87 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.491e-05/0.9764, allocations: 48.94 kB / 0.4903 GB, free: 59.82 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001658/0.9766, allocations: 59.91 kB / 0.4903 GB, free: 59.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.9783, allocations: 0.8534 MB / 0.4912 GB, free: 58.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2e-05/0.9783, allocations: 0 / 0.4912 GB, free: 58.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.9785, allocations: 23.98 kB / 0.4912 GB, free: 58.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.471e-05/0.9785, allocations: 23.94 kB / 0.4912 GB, free: 58.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001867/0.9804, allocations: 0.8592 MB / 0.4921 GB, free: 57.96 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006721/0.9871, allocations: 3.283 MB / 0.4953 GB, free: 54.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.9886, allocations: 0.6277 MB / 0.4959 GB, free: 53.96 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03509/1.024, allocations: 36.05 MB / 0.5311 GB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008532/1.025, allocations: 393.5 kB / 0.5315 GB, free: 12.38 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.885e-06/1.025, allocations: 0 / 0.5315 GB, free: 12.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002798/1.027, allocations: 1.489 MB / 0.5329 GB, free: 10.81 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.359e-05/1.028, allocations: 273 kB / 0.5332 GB, free: 10.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005043/1.033, allocations: 2.702 MB / 0.5358 GB, free: 7.785 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001606/1.033, allocations: 45.69 kB / 0.5359 GB, free: 7.734 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00196/1.035, allocations: 1.294 MB / 0.5371 GB, free: 6.434 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003817/1.035, allocations: 169.7 kB / 0.5373 GB, free: 6.266 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001106/1.035, allocations: 16 kB / 0.5373 GB, free: 6.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/1.035, allocations: 346.8 kB / 0.5376 GB, free: 5.902 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/1.037, allocations: 261.8 kB / 0.5379 GB, free: 5.648 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/1.038, allocations: 0.6713 MB / 0.5385 GB, free: 4.781 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001514/1.04, allocations: 344.5 kB / 0.5389 GB, free: 4.445 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/1.04, allocations: 4 kB / 0.5389 GB, free: 4.441 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003806/1.044, allocations: 0.9523 MB / 0.5398 GB, free: 3.484 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/1.044, allocations: 16.03 kB / 0.5398 GB, free: 3.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002052/1.044, allocations: 79.98 kB / 0.5399 GB, free: 3.391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.334e-05/1.044, allocations: 20 kB / 0.5399 GB, free: 3.371 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/1.045, allocations: 211.6 kB / 0.5401 GB, free: 3.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.112e-05/1.045, allocations: 31.88 kB / 0.5401 GB, free: 3.133 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003349/1.049, allocations: 126.9 kB / 0.5403 GB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/1.049, allocations: 63.98 kB / 0.5403 GB, free: 2.945 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 () * Number of clocked 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.002159/1.051, allocations: 461.5 kB / 0.5408 GB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001278/1.053, allocations: 399.1 kB / 0.5411 GB, free: 2.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007892/1.06, allocations: 1.29 MB / 0.5424 GB, free: 0.7891 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.614e-05/1.061, allocations: 4 kB / 0.5424 GB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.286e-06/1.061, allocations: 4 kB / 0.5424 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.449e-05/1.061, allocations: 7.938 kB / 0.5424 GB, free: 0.7734 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009568/1.07, allocations: 2.338 MB / 0.5447 GB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002316/1.07, allocations: 67.98 kB / 0.5448 GB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001178/1.072, allocations: 104 kB / 0.5449 GB, free: 14.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.681e-05/1.072, allocations: 7.938 kB / 0.5449 GB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/1.072, allocations: 35.94 kB / 0.5449 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.567e-06/1.072, allocations: 0 / 0.5449 GB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.219e-06/1.072, allocations: 4 kB / 0.5449 GB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006374/1.078, allocations: 1.443 MB / 0.5463 GB, free: 12.66 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002695/1.081, allocations: 0.5117 MB / 0.5468 GB, free: 12.13 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001371/1.082, allocations: 11.98 kB / 0.5468 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002584/1.085, allocations: 48.03 kB / 0.5469 GB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003477/1.086, allocations: 67.86 kB / 0.5469 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001797/1.086, allocations: 36 kB / 0.547 GB, free: 11.97 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.008556/1.094, allocations: 2.066 MB / 0.549 GB, free: 9.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.514e-06/1.094, allocations: 0 / 0.549 GB, free: 9.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004504/1.099, allocations: 0.6674 MB / 0.5496 GB, free: 9.242 MB / 362.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) * Number of clocked states: 0 () * 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.002919/1.102, allocations: 0.8943 MB / 0.5505 GB, free: 8.344 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004084/1.106, allocations: 0.8452 MB / 0.5513 GB, free: 7.477 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.955e-06/1.106, allocations: 0 / 0.5513 GB, free: 7.477 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002011/1.108, allocations: 467.2 kB / 0.5518 GB, free: 6.996 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005272/1.113, allocations: 0.5237 MB / 0.5523 GB, free: 6.469 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01807/1.131, allocations: 5.196 MB / 0.5574 GB, free: 1.223 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3043/1.436, allocations: 1.787 MB / 0.5591 GB, free: 82.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004604/1.436, allocations: 166.8 kB / 0.5593 GB, free: 82.52 MB / 362.7 MB Notification: Performance of SimCode: time 2.296e-06/1.436, allocations: 0 / 0.5593 GB, free: 82.52 MB / 362.7 MB Notification: Performance of Templates: time 0.06551/1.502, allocations: 38.32 MB / 0.5967 GB, free: 76.98 MB / 362.7 MB