Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.753/1.753, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003551, allocations: 8 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07961/0.08, allocations: 44.51 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4459, allocations: 98.03 MB / 406.5 MB, free: 16.61 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003153/0.4463, allocations: 74.88 kB / 406.5 MB, free: 16.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.919/1.365, allocations: 193.4 MB / 0.5859 GB, free: 72.39 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.192e-06/1.365, allocations: 0 / 0.5859 GB, free: 72.39 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001211/1.365, allocations: 84.94 kB / 0.586 GB, free: 72.39 MB / 410.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.0129/1.378, allocations: 6.068 MB / 0.5919 GB, free: 68.79 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/1.378, allocations: 7.656 kB / 0.5919 GB, free: 68.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00149/1.38, allocations: 0.7588 MB / 0.5926 GB, free: 68.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01132/1.391, allocations: 4.547 MB / 0.5971 GB, free: 66.45 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.371e-05/1.391, allocations: 80.09 kB / 0.5971 GB, free: 66.42 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004492/1.392, allocations: 101.8 kB / 0.5972 GB, free: 66.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003318/1.395, allocations: 1.527 MB / 0.5987 GB, free: 65.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.377e-05/1.395, allocations: 3.5 kB / 0.5987 GB, free: 65.71 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003341/1.396, allocations: 34.34 kB / 0.5988 GB, free: 65.69 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.017e-05/1.396, allocations: 41.03 kB / 0.5988 GB, free: 65.68 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003751/1.4, allocations: 1.523 MB / 0.6003 GB, free: 65.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01491/1.415, allocations: 5.873 MB / 0.606 GB, free: 62.6 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002433/1.417, allocations: 1.017 MB / 0.607 GB, free: 62.16 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07426/1.491, allocations: 71.6 MB / 0.6769 GB, free: 5.852 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001487/1.493, allocations: 0.5794 MB / 0.6775 GB, free: 5.262 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 5.44e-06/1.493, allocations: 0 / 0.6775 GB, free: 5.262 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.005593/1.498, allocations: 2.586 MB / 0.68 GB, free: 2.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003092/1.499, allocations: 479.2 kB / 0.6805 GB, free: 1.941 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2636/1.763, allocations: 4.864 MB / 0.6852 GB, free: 90.3 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002239/1.763, allocations: 43.39 kB / 0.6853 GB, free: 90.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002454/1.765, allocations: 2.357 MB / 0.6876 GB, free: 89.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004168/1.766, allocations: 300.2 kB / 0.6879 GB, free: 89.84 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/1.766, allocations: 31.12 kB / 0.6879 GB, free: 89.84 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001097/1.766, allocations: 369.6 kB / 0.6883 GB, free: 89.52 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/1.767, allocations: 418 kB / 0.6887 GB, free: 89.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00162/1.769, allocations: 1.202 MB / 0.6898 GB, free: 88.53 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001428/1.77, allocations: 0.589 MB / 0.6904 GB, free: 88.52 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.297e-05/1.77, allocations: 6.562 kB / 0.6904 GB, free: 88.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.004507/1.775, allocations: 1.639 MB / 0.692 GB, free: 88.43 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.732e-05/1.775, allocations: 15.53 kB / 0.692 GB, free: 88.43 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003162/1.775, allocations: 164.8 kB / 0.6922 GB, free: 88.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.573e-05/1.775, allocations: 36.94 kB / 0.6922 GB, free: 88.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/1.777, allocations: 369.1 kB / 0.6926 GB, free: 88.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.984e-05/1.777, allocations: 51.86 kB / 0.6926 GB, free: 88.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003572/1.781, allocations: 206.8 kB / 0.6928 GB, free: 88.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005018/1.781, allocations: 122.7 kB / 0.6929 GB, free: 88.38 MB / 426.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 () * Number of clocked 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.003074/1.784, allocations: 0.7298 MB / 0.6936 GB, free: 88.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001329/1.786, allocations: 0.7211 MB / 0.6943 GB, free: 87.89 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009038/1.795, allocations: 2.28 MB / 0.6966 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/1.795, allocations: 7.656 kB / 0.6966 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/1.795, allocations: 2.531 kB / 0.6966 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/1.795, allocations: 7.656 kB / 0.6966 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01061/1.806, allocations: 3.877 MB / 0.7004 GB, free: 87.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.00023/1.806, allocations: 146.3 kB / 0.7005 GB, free: 87.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001047/1.807, allocations: 160.2 kB / 0.7007 GB, free: 87.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-05/1.807, allocations: 5.906 kB / 0.7007 GB, free: 87.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001514/1.807, allocations: 59.58 kB / 0.7007 GB, free: 87.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.611e-06/1.807, allocations: 6.281 kB / 0.7007 GB, free: 87.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.66e-06/1.807, allocations: 3.953 kB / 0.7007 GB, free: 87.29 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005025/1.812, allocations: 2.32 MB / 0.703 GB, free: 86.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002633/1.815, allocations: 0.9314 MB / 0.7039 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001416/1.816, allocations: 26.97 kB / 0.7039 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002323/1.819, allocations: 52.06 kB / 0.704 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002729/1.819, allocations: 99.06 kB / 0.7041 GB, free: 86.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/1.819, allocations: 73.44 kB / 0.7042 GB, free: 86.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.008814/1.828, allocations: 3.706 MB / 0.7078 GB, free: 85.82 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.588e-06/1.828, allocations: 0 / 0.7078 GB, free: 85.82 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004257/1.832, allocations: 1.182 MB / 0.7089 GB, free: 85.8 MB / 426.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) * Number of clocked states: 0 () * 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.002192/1.834, allocations: 1.238 MB / 0.7101 GB, free: 85.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003526/1.838, allocations: 1.471 MB / 0.7116 GB, free: 85.43 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.995e-06/1.838, allocations: 1.656 kB / 0.7116 GB, free: 85.43 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001575/1.84, allocations: 0.7925 MB / 0.7124 GB, free: 85.18 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004966/1.845, allocations: 0.9574 MB / 0.7133 GB, free: 85.12 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/1.862, allocations: 9.355 MB / 0.7224 GB, free: 80.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003793/1.866, allocations: 2.723 MB / 0.7251 GB, free: 79.94 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007302/1.866, allocations: 320.7 kB / 0.7254 GB, free: 79.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.677e-06/1.866, allocations: 0 / 0.7254 GB, free: 79.93 MB / 426.7 MB Notification: Performance of Templates: time 0.107/1.973, allocations: 68.97 MB / 0.7927 GB, free: 41.95 MB / 426.7 MB