Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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: 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_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 1.806/1.806, allocations: 171.1 MB / 186.7 MB, free: 1.113 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004867/0.0004865, allocations: 12 kB / 233.9 MB, free: 292 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09054/0.09105, allocations: 38.77 MB / 272.6 MB, free: 9.438 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4269/0.518, allocations: 94.06 MB / 366.7 MB, free: 4.508 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003199/0.5184, allocations: 88.53 kB / 366.8 MB, free: 4.422 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6513/1.17, allocations: 129.4 MB / 496.2 MB, free: 55.14 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.17, allocations: 0 / 496.2 MB, free: 55.14 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.625e-05/1.17, allocations: 48 kB / 496.2 MB, free: 55.09 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.009538/1.179, allocations: 3.563 MB / 499.8 MB, free: 51.46 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/1.18, allocations: 8.031 kB / 499.8 MB, free: 51.45 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001109/1.181, allocations: 414.9 kB / 0.4885 GB, free: 51.04 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007031/1.188, allocations: 2.456 MB / 0.4909 GB, free: 48.51 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.624e-05/1.188, allocations: 36.95 kB / 0.4909 GB, free: 48.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002569/1.188, allocations: 55.91 kB / 0.491 GB, free: 48.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002453/1.191, allocations: 0.8612 MB / 0.4918 GB, free: 47.53 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/1.191, allocations: 0 / 0.4918 GB, free: 47.53 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001247/1.191, allocations: 27.98 kB / 0.4918 GB, free: 47.5 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.115e-05/1.191, allocations: 19.98 kB / 0.4918 GB, free: 47.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002661/1.193, allocations: 0.8631 MB / 0.4927 GB, free: 46.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009383/1.203, allocations: 3.275 MB / 0.4959 GB, free: 43.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002059/1.205, allocations: 0.6181 MB / 0.4965 GB, free: 42.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04674/1.252, allocations: 36.04 MB / 0.5317 GB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001143/1.253, allocations: 393.5 kB / 0.5321 GB, free: 1.043 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.939e-06/1.253, allocations: 0 / 0.5321 GB, free: 1.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.004167/1.257, allocations: 1.489 MB / 0.5335 GB, free: 15.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000189/1.257, allocations: 273 kB / 0.5338 GB, free: 15.14 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008069/1.266, allocations: 3.186 MB / 0.5369 GB, free: 11.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001974/1.266, allocations: 41.69 kB / 0.5369 GB, free: 11.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002554/1.268, allocations: 1.58 MB / 0.5385 GB, free: 10.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003741/1.269, allocations: 165.7 kB / 0.5386 GB, free: 10.15 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.028e-05/1.269, allocations: 19.94 kB / 0.5387 GB, free: 10.13 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001715/1.269, allocations: 341.9 kB / 0.539 GB, free: 9.793 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/1.27, allocations: 261.9 kB / 0.5392 GB, free: 9.539 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001547/1.272, allocations: 0.6674 MB / 0.5399 GB, free: 8.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/1.273, allocations: 348.5 kB / 0.5402 GB, free: 8.336 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.168e-05/1.273, allocations: 4 kB / 0.5402 GB, free: 8.332 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004197/1.277, allocations: 1.288 MB / 0.5415 GB, free: 7.035 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.569e-05/1.277, allocations: 8 kB / 0.5415 GB, free: 7.027 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001887/1.278, allocations: 79.98 kB / 0.5416 GB, free: 6.949 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.419e-05/1.278, allocations: 20 kB / 0.5416 GB, free: 6.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001392/1.279, allocations: 224.1 kB / 0.5418 GB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.859e-05/1.279, allocations: 27.88 kB / 0.5418 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/1.281, allocations: 127 kB / 0.5419 GB, free: 6.559 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002599/1.282, allocations: 64 kB / 0.542 GB, free: 6.496 MB / 362.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.001807/1.283, allocations: 465.4 kB / 0.5424 GB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/1.284, allocations: 399.1 kB / 0.5428 GB, free: 5.637 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006161/1.291, allocations: 1.294 MB / 0.5441 GB, free: 4.336 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.657e-05/1.291, allocations: 4 kB / 0.5441 GB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/1.291, allocations: 3.938 kB / 0.5441 GB, free: 4.328 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/1.291, allocations: 7.938 kB / 0.5441 GB, free: 4.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007356/1.298, allocations: 2.334 MB / 0.5464 GB, free: 1.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001629/1.298, allocations: 67.98 kB / 0.5464 GB, free: 1.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009158/1.299, allocations: 103.9 kB / 0.5465 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/1.299, allocations: 0 / 0.5465 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/1.299, allocations: 40 kB / 0.5466 GB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/1.299, allocations: 4 kB / 0.5466 GB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.299, allocations: 4 kB / 0.5466 GB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004556/1.304, allocations: 1.376 MB / 0.5479 GB, free: 304 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2798/1.584, allocations: 0.507 MB / 0.5484 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001069/1.585, allocations: 12.77 kB / 0.5484 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001951/1.587, allocations: 49.61 kB / 0.5485 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003785/1.587, allocations: 60.98 kB / 0.5485 GB, free: 80.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/1.588, allocations: 41.3 kB / 0.5486 GB, free: 80.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006942/1.594, allocations: 2.069 MB / 0.5506 GB, free: 80.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.595, allocations: 2.719 kB / 0.5506 GB, free: 80.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003219/1.598, allocations: 0.6678 MB / 0.5513 GB, free: 80.47 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.00233/1.6, allocations: 0.8776 MB / 0.5521 GB, free: 80.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003071/1.603, allocations: 0.8484 MB / 0.5529 GB, free: 80.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/1.603, allocations: 0.5 kB / 0.5529 GB, free: 80.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/1.605, allocations: 463.1 kB / 0.5534 GB, free: 80.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/1.608, allocations: 0.5242 MB / 0.5539 GB, free: 80.09 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01145/1.62, allocations: 5.147 MB / 0.5589 GB, free: 77.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002012/1.622, allocations: 1.785 MB / 0.5607 GB, free: 76.97 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002712/1.625, allocations: 386.6 kB / 0.561 GB, free: 76.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005643/1.625, allocations: 161 kB / 0.5612 GB, free: 76.94 MB / 362.7 MB Notification: Performance of SimCode: time 1.743e-06/1.625, allocations: 0 / 0.5612 GB, free: 76.94 MB / 362.7 MB Notification: Performance of Templates: time 0.114/1.739, allocations: 32.87 MB / 0.5933 GB, free: 73.62 MB / 362.7 MB