Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter.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.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.991/1.991, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003454/0.0003456, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09641/0.09678, allocations: 44.49 MB / 309 MB, free: 1.059 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4838/0.5806, allocations: 97.55 MB / 406.5 MB, free: 12.99 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002848/0.5809, allocations: 75.19 kB / 406.6 MB, free: 12.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.318/0.8989, allocations: 89.47 MB / 496.1 MB, free: 8.207 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.385e-06/0.899, allocations: 3.938 kB / 496.1 MB, free: 8.203 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.566e-05/0.8991, allocations: 24 kB / 496.1 MB, free: 8.18 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.0126/0.9117, allocations: 1.961 MB / 498 MB, free: 6.156 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.9118, allocations: 8.031 kB / 498.1 MB, free: 6.148 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000571/0.9124, allocations: 193.7 kB / 498.2 MB, free: 5.957 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01099/0.9234, allocations: 1.235 MB / 499.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.323e-05/0.9235, allocations: 24.48 kB / 499.5 MB, free: 4.629 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.9237, allocations: 28 kB / 499.5 MB, free: 4.602 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003523/0.9272, allocations: 0.5026 MB / 0.4883 GB, free: 4.078 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.9273, allocations: 0 / 0.4883 GB, free: 4.078 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001013/0.9274, allocations: 12 kB / 0.4883 GB, free: 4.066 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.106e-05/0.9274, allocations: 15.98 kB / 0.4883 GB, free: 4.051 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002658/0.9301, allocations: 0.5059 MB / 0.4888 GB, free: 3.547 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006287/0.9364, allocations: 1.65 MB / 0.4904 GB, free: 1.824 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.9382, allocations: 411.3 kB / 0.4908 GB, free: 1.414 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02942/0.9677, allocations: 18.11 MB / 0.5085 GB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001065/0.9688, allocations: 275.1 kB / 0.5088 GB, free: 12.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 2.915e-06/0.9688, allocations: 0 / 0.5088 GB, free: 12.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.003771/0.9726, allocations: 0.9001 MB / 0.5097 GB, free: 11.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000122/0.9728, allocations: 166.2 kB / 0.5098 GB, free: 11.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003124/0.9759, allocations: 1.444 MB / 0.5112 GB, free: 9.82 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000112/0.9761, allocations: 33.7 kB / 0.5113 GB, free: 9.781 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000831/0.9769, allocations: 0.6388 MB / 0.5119 GB, free: 9.137 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001594/0.9771, allocations: 102.7 kB / 0.512 GB, free: 9.035 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/0.9771, allocations: 4 kB / 0.512 GB, free: 9.031 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.9773, allocations: 330.8 kB / 0.5123 GB, free: 8.699 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008573/0.9782, allocations: 181 kB / 0.5125 GB, free: 8.523 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001014/0.9792, allocations: 399.7 kB / 0.5129 GB, free: 8.027 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009138/0.9801, allocations: 220.1 kB / 0.5131 GB, free: 7.812 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.9802, allocations: 0 / 0.5131 GB, free: 7.812 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002386/0.9826, allocations: 0.6438 MB / 0.5137 GB, free: 7.16 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.9826, allocations: 8 kB / 0.5137 GB, free: 7.152 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.842e-05/0.9827, allocations: 36 kB / 0.5137 GB, free: 7.117 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004788/0.9832, allocations: 141.5 kB / 0.5139 GB, free: 6.977 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007736/0.984, allocations: 115.8 kB / 0.514 GB, free: 6.863 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009343/0.985, allocations: 0.6773 MB / 0.5146 GB, free: 6.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001266/0.9862, allocations: 79.41 kB / 0.5147 GB, free: 6.082 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001236/0.9864, allocations: 43.92 kB / 0.5148 GB, free: 6.039 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0008491/0.9873, allocations: 283.9 kB / 0.515 GB, free: 5.754 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003779/0.9877, allocations: 189.7 kB / 0.5152 GB, free: 5.566 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003669/0.9913, allocations: 0.8127 MB / 0.516 GB, free: 4.742 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.567e-06/0.9914, allocations: 4 kB / 0.516 GB, free: 4.738 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.9914, allocations: 4 kB / 0.516 GB, free: 4.734 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.715e-06/0.9914, allocations: 4 kB / 0.516 GB, free: 4.73 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004161/0.9956, allocations: 1.375 MB / 0.5174 GB, free: 3.285 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.146e-05/0.9957, allocations: 35.98 kB / 0.5174 GB, free: 3.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004738/0.9962, allocations: 51.95 kB / 0.5174 GB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003994/0.9966, allocations: 132.8 kB / 0.5176 GB, free: 3.066 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.727e-05/0.9967, allocations: 19.98 kB / 0.5176 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009036/0.9976, allocations: 0.6694 MB / 0.5182 GB, free: 2.352 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.9976, allocations: 0 / 0.5182 GB, free: 2.352 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002349/1, allocations: 0.7359 MB / 0.519 GB, free: 1.586 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007151/1.001, allocations: 290.6 kB / 0.5192 GB, free: 1.281 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003114/1.001, allocations: 8 kB / 0.5193 GB, free: 1.273 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008761/1.002, allocations: 47.95 kB / 0.5193 GB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/1.002, allocations: 35.95 kB / 0.5193 GB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.919e-05/1.002, allocations: 20 kB / 0.5194 GB, free: 1.172 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002035/1.004, allocations: 0.9497 MB / 0.5203 GB, free: 208 kB / 410.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.004, allocations: 0 / 0.5203 GB, free: 208 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.3187/1.323, allocations: 354.3 kB / 0.5206 GB, free: 101.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001507/1.325, allocations: 0.6456 MB / 0.5212 GB, free: 101.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002392/1.327, allocations: 0.5439 MB / 0.5218 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.327, allocations: 0 / 0.5218 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001208/1.328, allocations: 324.6 kB / 0.5221 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001524/1.33, allocations: 234.5 kB / 0.5223 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005809/1.336, allocations: 2.545 MB / 0.5248 GB, free: 99.85 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007497/1.336, allocations: 1.181 MB / 0.5259 GB, free: 99.14 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000329/1.337, allocations: 82.92 kB / 0.526 GB, free: 99.14 MB / 410.7 MB Notification: Performance of SimCode: time 2.014e-06/1.337, allocations: 0 / 0.526 GB, free: 99.14 MB / 410.7 MB Notification: Performance of Templates: time 0.04823/1.385, allocations: 24.23 MB / 0.5497 GB, free: 98.36 MB / 410.7 MB