Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 2.043/2.043, allocations: 194.8 MB / 211.7 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005823/0.0005825, allocations: 8 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1198/0.1204, allocations: 44.5 MB / 309 MB, free: 384 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4519/0.5724, allocations: 98.02 MB / 407.1 MB, free: 13.17 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002793/0.5728, allocations: 80.89 kB / 407.1 MB, free: 13.16 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9707/1.543, allocations: 193.4 MB / 0.5865 GB, free: 72.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.775e-06/1.544, allocations: 0 / 0.5865 GB, free: 72.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001471/1.544, allocations: 82.78 kB / 0.5866 GB, free: 72.79 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.01717/1.561, allocations: 6.065 MB / 0.5925 GB, free: 69.01 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/1.561, allocations: 11.66 kB / 0.5925 GB, free: 69.01 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001843/1.563, allocations: 0.7519 MB / 0.5932 GB, free: 68.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01323/1.576, allocations: 4.56 MB / 0.5977 GB, free: 66.67 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.171e-05/1.576, allocations: 65.91 kB / 0.5977 GB, free: 66.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000534/1.577, allocations: 97 kB / 0.5978 GB, free: 66.6 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004126/1.581, allocations: 1.534 MB / 0.5993 GB, free: 65.93 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.518e-05/1.581, allocations: 0 / 0.5993 GB, free: 65.93 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/1.581, allocations: 38 kB / 0.5994 GB, free: 65.91 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.831e-05/1.581, allocations: 50.09 kB / 0.5994 GB, free: 65.89 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004691/1.586, allocations: 1.516 MB / 0.6009 GB, free: 65.48 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01797/1.604, allocations: 5.866 MB / 0.6066 GB, free: 62.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002929/1.607, allocations: 1.028 MB / 0.6076 GB, free: 62.37 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0926/1.7, allocations: 71.59 MB / 0.6775 GB, free: 3.746 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001808/1.701, allocations: 0.5716 MB / 0.6781 GB, free: 3.16 MB / 426.7 MB Notification: Performance of pre-optimization done (n=85): time 4.819e-06/1.701, allocations: 0 / 0.6781 GB, free: 3.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=85): time 0.006925/1.708, allocations: 2.593 MB / 0.6806 GB, free: 424 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2919/2, allocations: 475.7 kB / 0.6811 GB, free: 92.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01384/2.014, allocations: 5.753 MB / 0.6867 GB, free: 91.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002891/2.015, allocations: 41.52 kB / 0.6867 GB, free: 91.82 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003865/2.018, allocations: 2.936 MB / 0.6896 GB, free: 91.56 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005468/2.019, allocations: 298.5 kB / 0.6899 GB, free: 91.42 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/2.019, allocations: 23.88 kB / 0.6899 GB, free: 91.42 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001165/2.019, allocations: 371.3 kB / 0.6903 GB, free: 91.11 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001437/2.021, allocations: 417.2 kB / 0.6907 GB, free: 91.11 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001954/2.023, allocations: 1.203 MB / 0.6918 GB, free: 90.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001976/2.025, allocations: 0.5826 MB / 0.6924 GB, free: 90.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.172e-05/2.025, allocations: 9.141 kB / 0.6924 GB, free: 90.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006906/2.032, allocations: 2.243 MB / 0.6946 GB, free: 89.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.008e-05/2.032, allocations: 15.25 kB / 0.6946 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003833/2.032, allocations: 166.6 kB / 0.6948 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.45e-05/2.032, allocations: 39.5 kB / 0.6948 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002422/2.035, allocations: 369.7 kB / 0.6952 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.836e-05/2.035, allocations: 52.58 kB / 0.6952 GB, free: 89.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004023/2.039, allocations: 197.8 kB / 0.6954 GB, free: 89.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005851/2.04, allocations: 129.4 kB / 0.6955 GB, free: 89.66 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.003177/2.043, allocations: 0.7262 MB / 0.6962 GB, free: 89.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001568/2.044, allocations: 0.7215 MB / 0.697 GB, free: 89.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01467/2.059, allocations: 2.288 MB / 0.6992 GB, free: 89.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-05/2.059, allocations: 7.203 kB / 0.6992 GB, free: 89.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.176e-05/2.059, allocations: 2.25 kB / 0.6992 GB, free: 89.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.567e-05/2.059, allocations: 3.375 kB / 0.6992 GB, free: 89.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01714/2.076, allocations: 3.885 MB / 0.703 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000522/2.077, allocations: 140.8 kB / 0.7031 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/2.079, allocations: 163.4 kB / 0.7033 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.84e-05/2.079, allocations: 3.844 kB / 0.7033 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003545/2.08, allocations: 62.77 kB / 0.7033 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.175e-05/2.08, allocations: 1.531 kB / 0.7033 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/2.08, allocations: 7.797 kB / 0.7034 GB, free: 88.57 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009072/2.089, allocations: 2.221 MB / 0.7055 GB, free: 87.98 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004201/2.093, allocations: 0.931 MB / 0.7064 GB, free: 87.46 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002599/2.096, allocations: 21 kB / 0.7065 GB, free: 87.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005078/2.101, allocations: 49.09 kB / 0.7065 GB, free: 87.46 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006766/2.102, allocations: 105.2 kB / 0.7066 GB, free: 87.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003046/2.102, allocations: 68.69 kB / 0.7067 GB, free: 87.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01477/2.117, allocations: 3.712 MB / 0.7103 GB, free: 87.2 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.894e-06/2.117, allocations: 0 / 0.7103 GB, free: 87.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006575/2.123, allocations: 1.174 MB / 0.7114 GB, free: 87.19 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.003913/2.127, allocations: 1.243 MB / 0.7126 GB, free: 87.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006299/2.134, allocations: 1.475 MB / 0.7141 GB, free: 86.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/2.134, allocations: 2.719 kB / 0.7141 GB, free: 86.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002899/2.137, allocations: 0.7899 MB / 0.7149 GB, free: 86.57 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008952/2.146, allocations: 0.9533 MB / 0.7158 GB, free: 86.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02913/2.175, allocations: 9.265 MB / 0.7248 GB, free: 82.14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004796/2.18, allocations: 2.719 MB / 0.7275 GB, free: 81.29 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.006973/2.187, allocations: 0.7344 MB / 0.7282 GB, free: 81.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00122/2.188, allocations: 305.4 kB / 0.7285 GB, free: 81.11 MB / 426.7 MB Notification: Performance of SimCode: time 1.953e-06/2.188, allocations: 0 / 0.7285 GB, free: 81.11 MB / 426.7 MB Notification: Performance of Templates: time 0.2196/2.408, allocations: 54.6 MB / 0.7818 GB, free: 52 MB / 426.7 MB