Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.71/1.71, allocations: 171.1 MB / 187.3 MB, free: 1.102 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000337/0.000337, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08138/0.08174, allocations: 38.77 MB / 272.6 MB, free: 12.22 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009854/0.09165, allocations: 6.249 MB / 278.8 MB, free: 5.934 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02742/0.1191, allocations: 15.72 MB / 294.5 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00113/0.1203, allocations: 35.75 kB / 294.6 MB, free: 6.145 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002945/0.1233, allocations: 0.7117 MB / 295.3 MB, free: 5.43 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006917/0.1302, allocations: 1.55 MB / 296.8 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005568/0.1358, allocations: 1.079 MB / 297.9 MB, free: 2.793 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.008754/0.1447, allocations: 2.759 MB / 300.7 MB, free: 28 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2315/0.3762, allocations: 202.5 kB / 300.9 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001063/0.3773, allocations: 429.3 kB / 301.3 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000922/0.3783, allocations: 0.507 MB / 301.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.3785, allocations: 23.09 kB / 301.8 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005991/0.3845, allocations: 1.199 MB / 303 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004684/0.385, allocations: 141.3 kB / 303.1 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007294/0.3857, allocations: 327.9 kB / 303.5 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00374/0.3895, allocations: 1.513 MB / 305 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3895, allocations: 1.062 kB / 305 MB, free: 10.88 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.3896, allocations: 5.406 kB / 305 MB, free: 10.88 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.664e-05/0.3896, allocations: 0 / 305 MB, free: 10.88 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.005391/0.395, allocations: 1.804 MB / 306.8 MB, free: 9.766 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.08e-05/0.3951, allocations: 11.66 kB / 306.8 MB, free: 9.766 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005831/0.3957, allocations: 193.2 kB / 307 MB, free: 9.668 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004176/0.3999, allocations: 1.286 MB / 308.3 MB, free: 9.242 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.865e-05/0.4, allocations: 17.84 kB / 308.3 MB, free: 9.242 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001381/0.4001, allocations: 31.53 kB / 308.3 MB, free: 9.242 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001595/0.4018, allocations: 454.4 kB / 308.8 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.4018, allocations: 2.906 kB / 308.8 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.676e-05/0.4019, allocations: 12.06 kB / 308.8 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.405e-05/0.4019, allocations: 10.31 kB / 308.8 MB, free: 9.207 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.4039, allocations: 0.5067 MB / 309.3 MB, free: 9.199 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004671/0.4086, allocations: 1.625 MB / 310.9 MB, free: 8.809 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.4103, allocations: 413 kB / 311.3 MB, free: 8.777 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02188/0.4322, allocations: 15.32 MB / 326.6 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009977/0.4332, allocations: 281.4 kB / 326.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 3.376e-06/0.4332, allocations: 0 / 326.9 MB, free: 13.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=29): time 0.003614/0.4369, allocations: 0.9097 MB / 327.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.437, allocations: 60.41 kB / 327.9 MB, free: 12.68 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002761/0.4397, allocations: 1.446 MB / 329.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001577/0.44, allocations: 36.36 kB / 329.4 MB, free: 12.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006479/0.4406, allocations: 0.6303 MB / 330 MB, free: 11.95 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.4408, allocations: 96.59 kB / 330.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.392e-05/0.4409, allocations: 11.33 kB / 330.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.441, allocations: 333.7 kB / 330.4 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008485/0.4419, allocations: 181 kB / 330.6 MB, free: 11.52 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009693/0.4429, allocations: 375.8 kB / 331 MB, free: 11.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008635/0.4438, allocations: 225.2 kB / 331.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.4438, allocations: 0 / 331.2 MB, free: 11.2 MB / 266.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002318/0.4461, allocations: 0.6459 MB / 331.8 MB, free: 10.76 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.4462, allocations: 9.094 kB / 331.8 MB, free: 10.75 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001035/0.4463, allocations: 44.06 kB / 331.9 MB, free: 10.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004955/0.4468, allocations: 136 kB / 332 MB, free: 10.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007818/0.4476, allocations: 126.7 kB / 332.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008938/0.4485, allocations: 0.6679 MB / 332.8 MB, free: 9.832 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001442/0.45, allocations: 78.73 kB / 332.9 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/0.4501, allocations: 46.95 kB / 332.9 MB, free: 9.727 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.000828/0.4509, allocations: 276.8 kB / 333.2 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004112/0.4514, allocations: 190.8 kB / 333.4 MB, free: 9.355 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00354/0.4549, allocations: 0.7923 MB / 334.2 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.617e-05/0.455, allocations: 3.984 kB / 334.2 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.143e-05/0.4551, allocations: 36 kB / 334.2 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.4561, allocations: 282.3 kB / 334.5 MB, free: 8.398 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003126/0.4564, allocations: 7.734 kB / 334.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007721/0.4572, allocations: 39.72 kB / 334.5 MB, free: 8.359 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.4574, allocations: 43.66 kB / 334.6 MB, free: 8.32 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.001916/0.4594, allocations: 0.5514 MB / 335.1 MB, free: 7.762 MB / 266.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.