Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Inverter.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.788/1.788, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003376/0.0003377, allocations: 12 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08011/0.08047, allocations: 38.77 MB / 272.6 MB, free: 11.53 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.00956/0.09008, allocations: 6.256 MB / 278.9 MB, free: 5.242 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02756/0.1177, allocations: 15.72 MB / 294.6 MB, free: 5.484 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001157/0.1189, allocations: 31.75 kB / 294.6 MB, free: 5.453 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003166/0.1221, allocations: 0.7156 MB / 295.4 MB, free: 4.734 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006572/0.1287, allocations: 1.546 MB / 296.9 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005015/0.1338, allocations: 1.075 MB / 298 MB, free: 2.105 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2224/0.3562, allocations: 2.744 MB / 300.7 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005522/0.3569, allocations: 204.3 kB / 300.9 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008869/0.3578, allocations: 435.6 kB / 301.3 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008234/0.3586, allocations: 0.5008 MB / 301.8 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001581/0.3588, allocations: 23.09 kB / 301.9 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005282/0.3641, allocations: 1.2 MB / 303.1 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004397/0.3646, allocations: 141.9 kB / 303.2 MB, free: 11.27 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006492/0.3652, allocations: 325.1 kB / 303.5 MB, free: 11.24 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003237/0.3685, allocations: 1.513 MB / 305 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.3686, allocations: 0 / 305 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.3686, allocations: 5.469 kB / 305 MB, free: 11.08 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.778e-05/0.3686, allocations: 0 / 305 MB, free: 11.08 MB / 250.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.004676/0.3733, allocations: 1.811 MB / 306.9 MB, free: 9.953 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.032e-05/0.3734, allocations: 8.688 kB / 306.9 MB, free: 9.953 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003838/0.3738, allocations: 192.3 kB / 307 MB, free: 9.855 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003442/0.3773, allocations: 1.289 MB / 308.3 MB, free: 9.43 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.341e-05/0.3773, allocations: 17.31 kB / 308.4 MB, free: 9.43 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001292/0.3775, allocations: 31.02 kB / 308.4 MB, free: 9.43 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.3789, allocations: 452.6 kB / 308.8 MB, free: 9.395 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.3789, allocations: 0 / 308.8 MB, free: 9.395 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.643e-05/0.379, allocations: 7.969 kB / 308.8 MB, free: 9.395 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.146e-05/0.379, allocations: 13.67 kB / 308.8 MB, free: 9.395 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001828/0.3809, allocations: 0.5088 MB / 309.4 MB, free: 9.383 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004164/0.3851, allocations: 1.628 MB / 311 MB, free: 8.992 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.3866, allocations: 414.9 kB / 311.4 MB, free: 8.961 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02175/0.4084, allocations: 15.31 MB / 326.7 MB, free: 13.33 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009872/0.4094, allocations: 282.4 kB / 327 MB, free: 13.21 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 3.737e-06/0.4095, allocations: 0 / 327 MB, free: 13.21 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.003422/0.4129, allocations: 0.9105 MB / 327.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.413, allocations: 61.95 kB / 328 MB, free: 12.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002357/0.4153, allocations: 1.439 MB / 329.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 9.561e-05/0.4155, allocations: 35.31 kB / 329.4 MB, free: 12.3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007523/0.4162, allocations: 0.7202 MB / 330.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001512/0.4164, allocations: 97.42 kB / 330.2 MB, free: 11.94 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.192e-05/0.4164, allocations: 8.75 kB / 330.2 MB, free: 11.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.4166, allocations: 323 kB / 330.6 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008128/0.4174, allocations: 187.8 kB / 330.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009287/0.4184, allocations: 372.6 kB / 331.1 MB, free: 11.07 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008585/0.4193, allocations: 223.7 kB / 331.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.522e-06/0.4193, allocations: 0 / 331.3 MB, free: 10.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002609/0.4219, allocations: 0.7977 MB / 332.1 MB, free: 10.28 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.086e-05/0.422, allocations: 8 kB / 332.1 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.442e-05/0.4221, allocations: 40.03 kB / 332.2 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004589/0.4225, allocations: 132.8 kB / 332.3 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007471/0.4233, allocations: 118.2 kB / 332.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008992/0.4242, allocations: 0.6835 MB / 333.1 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.4255, allocations: 82.72 kB / 333.2 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.465e-05/0.4256, allocations: 39.98 kB / 333.2 MB, free: 9.25 MB / 266.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.0006815/0.4263, allocations: 276.6 kB / 333.5 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003212/0.4266, allocations: 189.7 kB / 333.7 MB, free: 8.879 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00337/0.43, allocations: 0.7929 MB / 334.5 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.4301, allocations: 0 / 334.5 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.439e-05/0.4302, allocations: 34.19 kB / 334.5 MB, free: 8.199 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008316/0.431, allocations: 280.5 kB / 334.8 MB, free: 7.926 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003148/0.4313, allocations: 15.97 kB / 334.8 MB, free: 7.918 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007581/0.4321, allocations: 35.47 kB / 334.8 MB, free: 7.887 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.4323, allocations: 45.77 kB / 334.9 MB, free: 7.848 MB / 266.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.7302833841653967, 0.7302833841653967, 0.4686291501015239, 0.3535533905932738, 0.25, 0.0, 0.0, 0.0, 0.02586470905512062, 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.02586470905512062, 8.61726105451295e-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.7302833841653967, 0.7302833841653967, 0.4686291501015239, 0.3535533905932738, 0.25, 0.0, 0.0, 0.0, 0.02586470905512062, 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.02586470905512062, 8.61726105451295e-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.7302833841653967, 0.7302833841653967, 0.4686291501015239, 0.3535533905932738, 0.25, 0.0, 0.0, 0.0, 0.02586470905512062, 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.02586470905512062, 8.61726105451295e-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.001842/0.4342, allocations: 0.5475 MB / 335.4 MB, free: 7.289 MB / 266.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.