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.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_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006948/0.0006951, allocations: 11.94 kB / 264.6 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09221, allocations: 44.5 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009035/0.1013, allocations: 6.257 MB / 315.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02662/0.128, allocations: 15.72 MB / 331 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00112/0.1291, allocations: 39.69 kB / 331.1 MB, free: 10.29 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003095/0.1323, allocations: 0.7079 MB / 331.8 MB, free: 9.574 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006608/0.1389, allocations: 1.546 MB / 333.3 MB, free: 8.023 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004799/0.1438, allocations: 1.079 MB / 334.4 MB, free: 6.941 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.007723/0.1515, allocations: 2.755 MB / 337.2 MB, free: 4.184 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005122/0.1521, allocations: 201.1 kB / 337.4 MB, free: 3.969 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008038/0.1529, allocations: 433.8 kB / 337.8 MB, free: 3.543 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000818/0.1537, allocations: 0.4971 MB / 338.3 MB, free: 3.043 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001501/0.1539, allocations: 27.98 kB / 338.3 MB, free: 3.016 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004944/0.1589, allocations: 1.206 MB / 339.5 MB, free: 1.809 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003056/0.1592, allocations: 139 kB / 339.7 MB, free: 1.672 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005327/0.1598, allocations: 328.8 kB / 340 MB, free: 1.344 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00282/0.1626, allocations: 1.511 MB / 341.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1626, allocations: 0 / 341.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.1626, allocations: 0 / 341.5 MB, free: 15.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.439e-05/0.1627, allocations: 0 / 341.5 MB, free: 15.83 MB / 298.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.004208/0.1669, allocations: 1.807 MB / 343.3 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.167, allocations: 8.031 kB / 343.3 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003289/0.1673, allocations: 197.6 kB / 343.5 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003108/0.1704, allocations: 1.289 MB / 344.8 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/0.1705, allocations: 16.56 kB / 344.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001229/0.1706, allocations: 28 kB / 344.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001479/0.1721, allocations: 445.2 kB / 345.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.1721, allocations: 8 kB / 345.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.637e-05/0.1722, allocations: 8 kB / 345.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.323e-05/0.1722, allocations: 15.98 kB / 345.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001916/0.1742, allocations: 0.5059 MB / 345.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004191/0.1784, allocations: 1.631 MB / 347.4 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00164/0.1801, allocations: 423.2 kB / 347.8 MB, free: 9.254 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02306/0.2031, allocations: 15.3 MB / 363.1 MB, free: 7.879 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001038/0.2042, allocations: 287 kB / 363.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 3.096e-06/0.2042, allocations: 0 / 363.4 MB, free: 7.586 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.003515/0.2078, allocations: 0.9001 MB / 364.3 MB, free: 6.656 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.2078, allocations: 59.41 kB / 364.4 MB, free: 6.586 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002479/0.2103, allocations: 1.444 MB / 365.8 MB, free: 5.105 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.394e-05/0.2104, allocations: 29.7 kB / 365.9 MB, free: 5.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008752/0.2113, allocations: 0.7266 MB / 366.6 MB, free: 4.34 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.2114, allocations: 106.7 kB / 366.7 MB, free: 4.234 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.061e-05/0.2115, allocations: 4 kB / 366.7 MB, free: 4.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2116, allocations: 326 kB / 367 MB, free: 3.906 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008003/0.2125, allocations: 177 kB / 367.2 MB, free: 3.734 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009753/0.2134, allocations: 379.4 kB / 367.5 MB, free: 3.27 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008594/0.2143, allocations: 224.1 kB / 367.8 MB, free: 3.051 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.2143, allocations: 0 / 367.8 MB, free: 3.051 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002568/0.2169, allocations: 0.798 MB / 368.6 MB, free: 2.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.217, allocations: 10.34 kB / 368.6 MB, free: 2.234 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.561e-05/0.2171, allocations: 39.94 kB / 368.6 MB, free: 2.195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004804/0.2176, allocations: 136.8 kB / 368.7 MB, free: 2.059 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007521/0.2183, allocations: 120.2 kB / 368.9 MB, free: 1.941 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008717/0.2192, allocations: 0.6734 MB / 369.5 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009829/0.2202, allocations: 83.47 kB / 369.6 MB, free: 1.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.875e-05/0.2203, allocations: 36 kB / 369.7 MB, free: 1.125 MB / 314.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.000639/0.221, allocations: 281.6 kB / 369.9 MB, free: 0.8398 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002954/0.2213, allocations: 189.8 kB / 370.1 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2434/0.4648, allocations: 0.786 MB / 370.9 MB, free: 65.92 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.4648, allocations: 3.25 kB / 370.9 MB, free: 65.92 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.271e-05/0.4649, allocations: 34.61 kB / 370.9 MB, free: 65.92 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007059/0.4656, allocations: 276 kB / 371.2 MB, free: 65.78 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003217/0.466, allocations: 15.41 kB / 371.2 MB, free: 65.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007759/0.4668, allocations: 37.64 kB / 371.3 MB, free: 65.78 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002003/0.467, allocations: 46.78 kB / 371.3 MB, free: 65.78 MB / 314.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (3): (mn.cc.idrain, mn.cc.iBD, mn.cc.iBS) = Modelica.Electrical.Spice3.Internal.Mos.mosCalcNoBypassCode_eval11(Modelica.Electrical.Spice3.Internal.Mosfet.Mosfet(300.15, 0.0001, 0.0001, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 1, 0.0, 0.0, false), 1, Modelica.Electrical.Spice3.Internal.Mos1.Mos1Calc(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2e-05, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 0.0001, 0.0, 0.0, 2e-05, 600.0, 0.6, 0.0, 0.0, 1e-14, 1e-14, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.4, 0.0, 0.7302822997684491, 0.7302822997684491, 0.4686291501015239, 0.3535533905932738, 0.25, 0.0, 0.0, 0.0, 0.02586467196237054, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), Modelica.Electrical.Spice3.Internal.Mos.MosModelLineParams(0.0, 0.0, 0.8, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.5, 0.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 600.0, 0.0, 1e-14, 0.0, 1.0, 0.0, 1.0, 2e-05, 0.0, 300.15), Modelica.Electrical.Spice3.Internal.SpiceConstants(1.035943139907e-10, 3.453133e-11, 1.6021918e-19, 273.15, 1.3806226e-23, 300.15, 1.414213562373095, 0.02586467196237054, 8.617248696441961e-05, 2.718281828459045, 1e-12, 300.15, 300.15, 0.0, 0.0, 0.0001, 0.0001, 1e-10, 1e-15, 1e-10, 0.001), Modelica.Electrical.Spice3.Internal.Mos.MosModelLineVariables(0.0, 0.0, 0.6, 0.0, 2e-05), false, {mp.G.v, 0.0, mp.Sinternal, 0.0}) Variables: 1: mn.cc.iBD:VARIABLE(start = 0.0 unit = "A" ) type: Real 2: mn.cc.iBS:VARIABLE(start = 0.0 unit = "A" ) type: Real 3: mn.cc.idrain:VARIABLE(start = 0.0 unit = "A" ) type: Real [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): mp.ibsgmin = 1e-12 * (mp.B.v - mp.Sinternal) 2/2 (1): 0.0 = (-mp.cc.idrain) - mp.irs - mp.cc.iBS - mp.ibsgmin 3/3 (3): (mp.cc.idrain, mp.cc.iBD, mp.cc.iBS) = Modelica.Electrical.Spice3.Internal.Mos.mosCalcNoBypassCode_eval5(Modelica.Electrical.Spice3.Internal.Mosfet.Mosfet(300.15, 0.0001, 0.0001, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 1, 1, 0.0, 0.0, false), -1, Modelica.Electrical.Spice3.Internal.Mos1.Mos1Calc(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2e-05, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 0.0001, 0.0, 0.0, 2e-05, 600.0, 0.6, 0.0, 0.0, 1e-14, 1e-14, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.4, 0.0, 0.7302822997684491, 0.7302822997684491, 0.4686291501015239, 0.3535533905932738, 0.25, 0.0, 0.0, 0.0, 0.02586467196237054, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), Modelica.Electrical.Spice3.Internal.Mos.MosModelLineParams(0.0, 0.0, 0.8, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.5, 0.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 600.0, 0.0, 1e-14, 0.0, 1.0, 0.0, 1.0, 2e-05, 0.0, 300.15), Modelica.Electrical.Spice3.Internal.SpiceConstants(1.035943139907e-10, 3.453133e-11, 1.6021918e-19, 273.15, 1.3806226e-23, 300.15, 1.414213562373095, 0.02586467196237054, 8.617248696441961e-05, 2.718281828459045, 1e-12, 300.15, 300.15, 0.0, 0.0, 0.0001, 0.0001, 1e-10, 1e-15, 1e-10, 0.001), Modelica.Electrical.Spice3.Internal.Mos.MosModelLineVariables(0.0, 0.0, 0.6, 0.0, 2e-05), false, {mp.G.v, mp.B.v, mp.B.v, mp.Sinternal}) 4/6 (3): (mn.cc.idrain, mn.cc.iBD, mn.cc.iBS) = Modelica.Electrical.Spice3.Internal.Mos.mosCalcNoBypassCode_eval11(Modelica.Electrical.Spice3.Internal.Mosfet.Mosfet(300.15, 0.0001, 0.0001, 0.0, 0.0, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0, 0, 1, 0.0, 0.0, false), 1, Modelica.Electrical.Spice3.Internal.Mos1.Mos1Calc(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 2e-05, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1, 0.0001, 0.0, 0.0, 2e-05, 600.0, 0.6, 0.0, 0.0, 1e-14, 1e-14, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8, 0.4, 0.0, 0.7302822997684491, 0.7302822997684491, 0.4686291501015239, 0.3535533905932738, 0.25, 0.0, 0.0, 0.0, 0.02586467196237054, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), Modelica.Electrical.Spice3.Internal.Mos.MosModelLineParams(0.0, 0.0, 0.8, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 0.0, 1.0, 0.0, 0.5, 0.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 600.0, 0.0, 1e-14, 0.0, 1.0, 0.0, 1.0, 2e-05, 0.0, 300.15), Modelica.Electrical.Spice3.Internal.SpiceConstants(1.035943139907e-10, 3.453133e-11, 1.6021918e-19, 273.15, 1.3806226e-23, 300.15, 1.414213562373095, 0.02586467196237054, 8.617248696441961e-05, 2.718281828459045, 1e-12, 300.15, 300.15, 0.0, 0.0, 0.0001, 0.0001, 1e-10, 1e-15, 1e-10, 0.001), Modelica.Electrical.Spice3.Internal.Mos.MosModelLineVariables(0.0, 0.0, 0.6, 0.0, 2e-05), false, {mp.G.v, 0.0, mp.Sinternal, 0.0}) 5/9 (1): 0.0 = mn.cc.idrain + mp.irs + (-mn.cc.iBD) - mn.ibdgmin 6/10 (1): mn.ibdgmin = (-1e-12) * mp.Sinternal Variables: 1: mn.ibdgmin:VARIABLE(unit = "A" ) type: Real 2: mp.irs:VARIABLE(unit = "A" ) type: Real 3: mn.cc.iBD:VARIABLE(start = 0.0 unit = "A" ) type: Real 4: mn.cc.iBS:VARIABLE(start = 0.0 unit = "A" ) type: Real 5: mn.cc.idrain:VARIABLE(start = 0.0 unit = "A" ) type: Real 6: mp.cc.iBD:VARIABLE(start = 0.0 unit = "A" ) type: Real 7: mp.cc.idrain:VARIABLE(start = 0.0 unit = "A" ) type: Real 8: mp.Sinternal:VARIABLE(start = 0.0 unit = "V" ) type: Real 9: mp.cc.iBS:VARIABLE(start = 0.0 unit = "A" ) type: Real 10: mp.ibsgmin:VARIABLE(unit = "A" ) type: Real [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9703:5-9704:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001881/0.4689, allocations: 0.5409 MB / 371.8 MB, free: 65.55 MB / 314.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.