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.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.585/1.585, allocations: 171.2 MB / 184.2 MB, free: 12.07 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.282e-05/2.293e-05, allocations: 4 kB / 228.8 MB, free: 15.44 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2044/0.2044, allocations: 38.76 MB / 267.6 MB, free: 9.434 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.32/0.5245, allocations: 94.12 MB / 361.7 MB, free: 80.62 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002217/0.5247, allocations: 72.08 kB / 361.8 MB, free: 80.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.775/1.3, allocations: 196.5 MB / 0.5452 GB, free: 45.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.693e-06/1.3, allocations: 0 / 0.5452 GB, free: 45.59 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001095/1.3, allocations: 88.03 kB / 0.5453 GB, free: 45.59 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.00893/1.309, allocations: 4.667 MB / 0.5498 GB, free: 42.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/1.309, allocations: 11.16 kB / 0.5498 GB, free: 42.81 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001254/1.31, allocations: 0.7484 MB / 0.5506 GB, free: 42.42 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01001/1.32, allocations: 4.501 MB / 0.555 GB, free: 40.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.092e-05/1.32, allocations: 75.86 kB / 0.555 GB, free: 40.45 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003929/1.321, allocations: 99.97 kB / 0.5551 GB, free: 40.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002776/1.324, allocations: 1.452 MB / 0.5566 GB, free: 39.74 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/1.324, allocations: 0 / 0.5566 GB, free: 39.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001941/1.324, allocations: 41.03 kB / 0.5566 GB, free: 39.71 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.221e-05/1.324, allocations: 39.48 kB / 0.5566 GB, free: 39.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002685/1.327, allocations: 1.357 MB / 0.558 GB, free: 39.31 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01361/1.34, allocations: 5.864 MB / 0.5637 GB, free: 35.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001663/1.342, allocations: 0.8852 MB / 0.5645 GB, free: 34.94 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/1.344, allocations: 1.157 MB / 0.5657 GB, free: 33.8 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3014/1.645, allocations: 71.9 MB / 0.6359 GB, free: 72.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009292/1.646, allocations: 0.513 MB / 0.6364 GB, free: 72.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 5.12e-06/1.646, allocations: 0 / 0.6364 GB, free: 72.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.002933/1.649, allocations: 1.462 MB / 0.6378 GB, free: 71.76 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/1.649, allocations: 481.6 kB / 0.6383 GB, free: 71.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00987/1.659, allocations: 4.794 MB / 0.643 GB, free: 70.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002357/1.659, allocations: 44.27 kB / 0.643 GB, free: 70.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002574/1.662, allocations: 2.36 MB / 0.6453 GB, free: 70.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004353/1.662, allocations: 291 kB / 0.6456 GB, free: 70.18 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/1.663, allocations: 27.22 kB / 0.6456 GB, free: 70.18 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/1.663, allocations: 378 kB / 0.646 GB, free: 69.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008303/1.664, allocations: 340.9 kB / 0.6463 GB, free: 69.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001163/1.665, allocations: 1.129 MB / 0.6474 GB, free: 68.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00112/1.666, allocations: 0.5186 MB / 0.6479 GB, free: 68.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.816e-05/1.666, allocations: 10.91 kB / 0.6479 GB, free: 68.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003175/1.669, allocations: 1.485 MB / 0.6494 GB, free: 68.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.753e-05/1.669, allocations: 16.41 kB / 0.6494 GB, free: 68.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002605/1.669, allocations: 163.7 kB / 0.6495 GB, free: 68.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.6e-05/1.669, allocations: 36.55 kB / 0.6496 GB, free: 68.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/1.671, allocations: 375.2 kB / 0.6499 GB, free: 68.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-05/1.671, allocations: 49.09 kB / 0.65 GB, free: 68.78 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00332/1.674, allocations: 197.1 kB / 0.6502 GB, free: 68.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003401/1.675, allocations: 126.6 kB / 0.6503 GB, free: 68.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0003731/1.675, allocations: 217.3 kB / 0.6505 GB, free: 68.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00114/1.676, allocations: 0.724 MB / 0.6512 GB, free: 68.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007424/1.684, allocations: 2.141 MB / 0.6533 GB, free: 68.11 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/1.684, allocations: 6.594 kB / 0.6533 GB, free: 68.11 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.602e-06/1.684, allocations: 3.562 kB / 0.6533 GB, free: 68.11 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/1.684, allocations: 2.438 kB / 0.6533 GB, free: 68.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008719/1.693, allocations: 3.735 MB / 0.6569 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002302/1.693, allocations: 139.4 kB / 0.6571 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/1.694, allocations: 160.4 kB / 0.6572 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/1.694, allocations: 5.938 kB / 0.6572 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001684/1.694, allocations: 62.94 kB / 0.6573 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.466e-06/1.694, allocations: 3.906 kB / 0.6573 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.264e-06/1.694, allocations: 1.828 kB / 0.6573 GB, free: 67.65 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003813/1.698, allocations: 2.106 MB / 0.6594 GB, free: 66.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002584/1.701, allocations: 0.9363 MB / 0.6603 GB, free: 66.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001466/1.702, allocations: 22.02 kB / 0.6603 GB, free: 66.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002664/1.705, allocations: 50.88 kB / 0.6603 GB, free: 66.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003124/1.705, allocations: 102.2 kB / 0.6604 GB, free: 66.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/1.705, allocations: 70.28 kB / 0.6605 GB, free: 66.42 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.008468/1.714, allocations: 3.635 MB / 0.6641 GB, free: 66.13 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.359e-06/1.714, allocations: 0 / 0.6641 GB, free: 66.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004041/1.718, allocations: 1.177 MB / 0.6652 GB, free: 66.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.002254/1.72, allocations: 1.24 MB / 0.6664 GB, free: 66.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002672/1.723, allocations: 1.32 MB / 0.6677 GB, free: 65.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.964e-06/1.723, allocations: 0.8125 kB / 0.6677 GB, free: 65.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/1.724, allocations: 0.7206 MB / 0.6684 GB, free: 65.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004974/1.729, allocations: 0.9629 MB / 0.6694 GB, free: 65.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01347/1.743, allocations: 6.141 MB / 0.6754 GB, free: 63.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003049/1.746, allocations: 2.724 MB / 0.678 GB, free: 62.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007325/1.747, allocations: 314.3 kB / 0.6783 GB, free: 62.75 MB / 378.7 MB Notification: Performance of SimCode: time 2.253e-06/1.747, allocations: 2.719 kB / 0.6783 GB, free: 62.75 MB / 378.7 MB Notification: Performance of Templates: time 0.1041/1.851, allocations: 68.92 MB / 0.7456 GB, free: 9.945 MB / 378.7 MB