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.Inverter.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.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.823/1.823, allocations: 194.9 MB / 211.7 MB, free: 2.977 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000358/0.0003579, allocations: 8 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07889/0.07928, allocations: 44.5 MB / 308.4 MB, free: 1 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.435, allocations: 97.56 MB / 406 MB, free: 16.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.4353, allocations: 75.33 kB / 406.1 MB, free: 16.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2556/0.6909, allocations: 89.47 MB / 495.5 MB, free: 10.09 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.771e-06/0.691, allocations: 0 / 495.5 MB, free: 10.09 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.479e-05/0.691, allocations: 27.94 kB / 495.6 MB, free: 10.07 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.004946/0.696, allocations: 1.949 MB / 497.5 MB, free: 8.055 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.628e-05/0.696, allocations: 12.02 kB / 497.5 MB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004089/0.6965, allocations: 193.7 kB / 497.7 MB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002886/0.6994, allocations: 1.235 MB / 499 MB, free: 6.547 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.6994, allocations: 16.56 kB / 499 MB, free: 6.531 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001065/0.6996, allocations: 28 kB / 499 MB, free: 6.504 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001358/0.7009, allocations: 0.5142 MB / 499.5 MB, free: 5.969 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.701, allocations: 0 / 499.5 MB, free: 5.969 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.509e-05/0.701, allocations: 8 kB / 499.5 MB, free: 5.961 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.7011, allocations: 12 kB / 499.5 MB, free: 5.949 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001663/0.7027, allocations: 0.502 MB / 0.4883 GB, free: 5.449 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004343/0.7071, allocations: 1.65 MB / 0.4899 GB, free: 3.727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/0.7085, allocations: 423.2 kB / 0.4903 GB, free: 3.305 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02558/0.7341, allocations: 18.11 MB / 0.508 GB, free: 14.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008171/0.735, allocations: 275.2 kB / 0.5083 GB, free: 14.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=29): time 4.051e-06/0.735, allocations: 0 / 0.5083 GB, free: 14.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=29): time 0.002849/0.7379, allocations: 0.8962 MB / 0.5092 GB, free: 13.39 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.738, allocations: 158.2 kB / 0.5093 GB, free: 13.2 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002537/0.7406, allocations: 1.231 MB / 0.5105 GB, free: 11.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.753e-05/0.7407, allocations: 33.7 kB / 0.5105 GB, free: 11.9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007307/0.7415, allocations: 0.631 MB / 0.5112 GB, free: 11.27 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.7416, allocations: 102.7 kB / 0.5113 GB, free: 11.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.072e-05/0.7417, allocations: 12 kB / 0.5113 GB, free: 11.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.7419, allocations: 330.8 kB / 0.5116 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006351/0.7425, allocations: 177 kB / 0.5118 GB, free: 10.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008173/0.7434, allocations: 403.7 kB / 0.5121 GB, free: 10.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006805/0.7441, allocations: 220 kB / 0.5123 GB, free: 9.934 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.88e-06/0.7441, allocations: 4 kB / 0.5124 GB, free: 9.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001928/0.746, allocations: 0.6323 MB / 0.513 GB, free: 9.289 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.7461, allocations: 8 kB / 0.513 GB, free: 9.281 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.261e-05/0.7462, allocations: 43.98 kB / 0.513 GB, free: 9.238 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004236/0.7466, allocations: 129.3 kB / 0.5131 GB, free: 9.109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005524/0.7472, allocations: 123.8 kB / 0.5133 GB, free: 8.988 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009315/0.7481, allocations: 0.6812 MB / 0.5139 GB, free: 8.281 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.7493, allocations: 91.45 kB / 0.514 GB, free: 8.191 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.7494, allocations: 32 kB / 0.514 GB, free: 8.16 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.0008848/0.7503, allocations: 281.6 kB / 0.5143 GB, free: 7.875 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003769/0.7507, allocations: 189.7 kB / 0.5145 GB, free: 7.688 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003138/0.7538, allocations: 0.8127 MB / 0.5153 GB, free: 6.867 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.7539, allocations: 4 kB / 0.5153 GB, free: 6.863 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.738e-06/0.7539, allocations: 3.938 kB / 0.5153 GB, free: 6.859 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.7539, allocations: 0 / 0.5153 GB, free: 6.859 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003556/0.7575, allocations: 1.382 MB / 0.5166 GB, free: 5.406 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-05/0.7576, allocations: 32 kB / 0.5167 GB, free: 5.375 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003282/0.7579, allocations: 55.89 kB / 0.5167 GB, free: 5.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003544/0.7583, allocations: 124.9 kB / 0.5168 GB, free: 5.195 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.356e-05/0.7584, allocations: 23.98 kB / 0.5169 GB, free: 5.172 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008546/0.7593, allocations: 0.6694 MB / 0.5175 GB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.014e-06/0.7593, allocations: 4.031 kB / 0.5175 GB, free: 4.473 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.7612, allocations: 0.7703 MB / 0.5183 GB, free: 3.656 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007653/0.7621, allocations: 282.7 kB / 0.5185 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002289/0.7623, allocations: 8 kB / 0.5186 GB, free: 3.352 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006649/0.763, allocations: 43.95 kB / 0.5186 GB, free: 3.309 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.7631, allocations: 43.89 kB / 0.5186 GB, free: 3.266 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.745e-05/0.7632, allocations: 23.98 kB / 0.5187 GB, free: 3.242 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002076/0.7653, allocations: 0.9458 MB / 0.5196 GB, free: 2.277 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.07e-07/0.7653, allocations: 0 / 0.5196 GB, free: 2.277 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001565/0.7669, allocations: 363.7 kB / 0.5199 GB, free: 1.922 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.001332/0.7683, allocations: 0.6476 MB / 0.5206 GB, free: 1.266 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001836/0.7701, allocations: 0.5396 MB / 0.5211 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.225e-06/0.7702, allocations: 3.938 kB / 0.5211 GB, free: 0.7109 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009221/0.7711, allocations: 315.4 kB / 0.5214 GB, free: 400 kB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.7724, allocations: 238.9 kB / 0.5216 GB, free: 156 kB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2226/0.9951, allocations: 2.531 MB / 0.5241 GB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008286/0.9959, allocations: 1.185 MB / 0.5253 GB, free: 99.42 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/0.9962, allocations: 82.31 kB / 0.5253 GB, free: 99.42 MB / 410.7 MB Notification: Performance of SimCode: time 1.647e-06/0.9962, allocations: 0 / 0.5253 GB, free: 99.42 MB / 410.7 MB Notification: Performance of Templates: time 0.03635/1.033, allocations: 24.23 MB / 0.549 GB, free: 98.73 MB / 410.7 MB