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.952/1.952, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.0003591, allocations: 12 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09552/0.0959, allocations: 44.49 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00935/0.1053, allocations: 6.253 MB / 315.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.02798/0.1334, allocations: 15.73 MB / 331 MB, free: 11 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001296/0.1347, allocations: 31.75 kB / 331 MB, free: 10.97 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003151/0.1379, allocations: 0.7196 MB / 331.7 MB, free: 10.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007242/0.1452, allocations: 1.542 MB / 333.3 MB, free: 8.703 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005479/0.1507, allocations: 1.075 MB / 334.3 MB, free: 7.625 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.008601/0.1594, allocations: 2.763 MB / 337.1 MB, free: 4.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005882/0.16, allocations: 201.1 kB / 337.3 MB, free: 4.645 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009141/0.1609, allocations: 433.9 kB / 337.7 MB, free: 4.219 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007791/0.1617, allocations: 0.5048 MB / 338.2 MB, free: 3.711 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001469/0.1619, allocations: 24 kB / 338.2 MB, free: 3.688 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00551/0.1674, allocations: 1.199 MB / 339.4 MB, free: 2.488 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000372/0.1679, allocations: 143 kB / 339.6 MB, free: 2.348 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006648/0.1685, allocations: 324.8 kB / 339.9 MB, free: 2.023 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003069/0.1716, allocations: 1.511 MB / 341.4 MB, free: 0.5078 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1717, allocations: 4 kB / 341.4 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.813e-06/0.1717, allocations: 4 kB / 341.4 MB, free: 0.5 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.36e-05/0.1717, allocations: 0 / 341.4 MB, free: 0.5 MB / 282.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.004382/0.1761, allocations: 1.807 MB / 343.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.694e-05/0.1762, allocations: 12.03 kB / 343.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003394/0.1766, allocations: 189.7 kB / 343.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003277/0.1798, allocations: 1.289 MB / 344.7 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.222e-05/0.1799, allocations: 24.5 kB / 344.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/0.1801, allocations: 27.98 kB / 344.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001534/0.1816, allocations: 449.2 kB / 345.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.1816, allocations: 0 / 345.2 MB, free: 12.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.74e-05/0.1817, allocations: 12 kB / 345.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.199e-05/0.1818, allocations: 12 kB / 345.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001929/0.1837, allocations: 0.502 MB / 345.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004622/0.1883, allocations: 1.639 MB / 347.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001773/0.1902, allocations: 411.3 kB / 347.8 MB, free: 9.934 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02371/0.2139, allocations: 15.31 MB / 363.1 MB, free: 8.547 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001101/0.2151, allocations: 279.1 kB / 363.3 MB, free: 8.262 MB / 314.7 MB Notification: Performance of pre-optimization done (n=29): time 4.028e-06/0.2151, allocations: 0 / 363.3 MB, free: 8.262 MB / 314.7 MB Notification: Performance of matching and sorting (n=29): time 0.003694/0.2188, allocations: 0.904 MB / 364.3 MB, free: 7.328 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.2189, allocations: 59.39 kB / 364.3 MB, free: 7.258 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002743/0.2217, allocations: 1.448 MB / 365.8 MB, free: 5.773 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.2218, allocations: 29.7 kB / 365.8 MB, free: 5.738 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007453/0.2226, allocations: 0.6349 MB / 366.4 MB, free: 5.102 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.2227, allocations: 98.67 kB / 366.5 MB, free: 5.004 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.625e-05/0.2228, allocations: 12 kB / 366.5 MB, free: 4.992 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.223, allocations: 334.8 kB / 366.9 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008489/0.2238, allocations: 173 kB / 367 MB, free: 4.488 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000994/0.2248, allocations: 379.4 kB / 367.4 MB, free: 4.023 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009239/0.2258, allocations: 228 kB / 367.6 MB, free: 3.801 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.783e-06/0.2258, allocations: 4 kB / 367.6 MB, free: 3.797 MB / 314.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00231/0.2281, allocations: 0.6399 MB / 368.3 MB, free: 3.148 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.2282, allocations: 8.125 kB / 368.3 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001062/0.2283, allocations: 51.92 kB / 368.3 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005111/0.2288, allocations: 136.8 kB / 368.5 MB, free: 2.953 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007485/0.2296, allocations: 115.8 kB / 368.6 MB, free: 2.84 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009266/0.2305, allocations: 0.6773 MB / 369.2 MB, free: 2.137 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001106/0.2317, allocations: 87.47 kB / 369.3 MB, free: 2.051 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.985e-05/0.2318, allocations: 32 kB / 369.4 MB, free: 2.02 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.0007071/0.2325, allocations: 279.8 kB / 369.6 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002832/0.2328, allocations: 185.8 kB / 369.8 MB, free: 1.555 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003482/0.2363, allocations: 0.7894 MB / 370.6 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/0.2363, allocations: 0 / 370.6 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.224e-05/0.2364, allocations: 43.98 kB / 370.7 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007783/0.2372, allocations: 282.6 kB / 370.9 MB, free: 424 kB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003179/0.2376, allocations: 15.95 kB / 370.9 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007785/0.2383, allocations: 39.94 kB / 371 MB, free: 368 kB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001873/0.2386, allocations: 39.95 kB / 371 MB, free: 328 kB / 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.2434/0.482, allocations: 0.5403 MB / 371.6 MB, free: 65.5 MB / 314.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.