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.InvertersApartRecord.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.InvertersApartRecord,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.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.78/1.78, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003612, allocations: 8 kB / 233.2 MB, free: 3.023 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07145/0.07183, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3224/0.3943, allocations: 94.04 MB / 366 MB, free: 12.12 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.3945, allocations: 82.7 kB / 366.1 MB, free: 12.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5613/0.9558, allocations: 127.5 MB / 493.7 MB, free: 68.33 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.752e-06/0.9559, allocations: 0 / 493.7 MB, free: 68.33 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.696e-05/0.9559, allocations: 44 kB / 493.7 MB, free: 68.29 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.006819/0.9628, allocations: 3.426 MB / 497.1 MB, free: 64.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.9628, allocations: 12.03 kB / 497.1 MB, free: 64.78 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006091/0.9635, allocations: 399.1 kB / 497.5 MB, free: 64.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004924/0.9684, allocations: 2.395 MB / 499.9 MB, free: 61.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.568e-05/0.9685, allocations: 44.89 kB / 500 MB, free: 61.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000176/0.9687, allocations: 48 kB / 0.4883 GB, free: 61.83 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.9704, allocations: 0.8612 MB / 0.4891 GB, free: 60.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.9705, allocations: 0 / 0.4891 GB, free: 60.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.9706, allocations: 27.98 kB / 0.4892 GB, free: 60.9 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.856e-05/0.9706, allocations: 19.98 kB / 0.4892 GB, free: 60.88 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001843/0.9725, allocations: 0.8554 MB / 0.49 GB, free: 60.03 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007348/0.9799, allocations: 3.193 MB / 0.4931 GB, free: 56.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/0.9814, allocations: 0.6104 MB / 0.4937 GB, free: 56.13 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03541/1.017, allocations: 36.02 MB / 0.5289 GB, free: 14.97 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008869/1.018, allocations: 381.7 kB / 0.5293 GB, free: 14.58 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.225e-06/1.018, allocations: 3.938 kB / 0.5293 GB, free: 14.58 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.002863/1.021, allocations: 1.485 MB / 0.5307 GB, free: 13.01 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.488e-05/1.021, allocations: 269 kB / 0.531 GB, free: 12.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004947/1.026, allocations: 2.556 MB / 0.5335 GB, free: 10.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/1.026, allocations: 37.7 kB / 0.5335 GB, free: 10.08 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/1.027, allocations: 1.236 MB / 0.5347 GB, free: 8.84 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/1.027, allocations: 161.7 kB / 0.5349 GB, free: 8.68 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.069e-05/1.027, allocations: 20 kB / 0.5349 GB, free: 8.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.095e-05/1.027, allocations: 346.8 kB / 0.5352 GB, free: 8.312 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007396/1.028, allocations: 261.8 kB / 0.5355 GB, free: 8.059 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008868/1.029, allocations: 0.6673 MB / 0.5361 GB, free: 7.195 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008321/1.03, allocations: 352.5 kB / 0.5365 GB, free: 6.855 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.945e-06/1.03, allocations: 4 kB / 0.5365 GB, free: 6.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002243/1.032, allocations: 0.9477 MB / 0.5374 GB, free: 5.895 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/1.032, allocations: 12 kB / 0.5374 GB, free: 5.883 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001309/1.032, allocations: 80.83 kB / 0.5375 GB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.684e-05/1.033, allocations: 20 kB / 0.5375 GB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008515/1.033, allocations: 215.6 kB / 0.5377 GB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.948e-05/1.033, allocations: 35.81 kB / 0.5377 GB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001817/1.035, allocations: 122.9 kB / 0.5379 GB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001593/1.035, allocations: 75.98 kB / 0.5379 GB, free: 5.344 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.001324/1.037, allocations: 437.5 kB / 0.5384 GB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005366/1.037, allocations: 383.4 kB / 0.5387 GB, free: 4.527 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004222/1.042, allocations: 1.284 MB / 0.54 GB, free: 3.238 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/1.042, allocations: 8 kB / 0.54 GB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.54e-06/1.042, allocations: 0 / 0.54 GB, free: 3.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.343e-06/1.042, allocations: 7.953 kB / 0.54 GB, free: 3.223 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0052/1.047, allocations: 2.253 MB / 0.5422 GB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000116/1.047, allocations: 71.98 kB / 0.5423 GB, free: 0.8242 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005915/1.048, allocations: 103.9 kB / 0.5424 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.628e-06/1.048, allocations: 4 kB / 0.5424 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-05/1.048, allocations: 35.94 kB / 0.5424 GB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.84e-06/1.048, allocations: 4 kB / 0.5424 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/1.048, allocations: 0 / 0.5424 GB, free: 0.6797 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003318/1.051, allocations: 1.424 MB / 0.5438 GB, free: 15.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001663/1.053, allocations: 0.5606 MB / 0.5443 GB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006861/1.054, allocations: 8 kB / 0.5443 GB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001182/1.055, allocations: 43.95 kB / 0.5444 GB, free: 14.56 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/1.055, allocations: 59.94 kB / 0.5444 GB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/1.055, allocations: 40.06 kB / 0.5445 GB, free: 14.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004683/1.06, allocations: 1.959 MB / 0.5464 GB, free: 12.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.109e-06/1.06, allocations: 0 / 0.5464 GB, free: 12.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002524/1.062, allocations: 0.6479 MB / 0.547 GB, free: 11.86 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.001711/1.064, allocations: 0.8498 MB / 0.5479 GB, free: 11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002368/1.066, allocations: 0.8451 MB / 0.5487 GB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/1.066, allocations: 8.125 kB / 0.5487 GB, free: 10.13 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/1.068, allocations: 459.1 kB / 0.5491 GB, free: 9.656 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002639/1.07, allocations: 0.504 MB / 0.5496 GB, free: 9.148 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01047/1.081, allocations: 4.993 MB / 0.5545 GB, free: 4.113 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001944/1.083, allocations: 1.732 MB / 0.5562 GB, free: 2.355 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004722/1.083, allocations: 163.4 kB / 0.5563 GB, free: 2.195 MB / 362.7 MB Notification: Performance of SimCode: time 1.757e-06/1.083, allocations: 0 / 0.5563 GB, free: 2.195 MB / 362.7 MB Notification: Performance of Templates: time 0.2733/1.357, allocations: 36.99 MB / 0.5925 GB, free: 79.76 MB / 362.7 MB