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.CascodeCircuit.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.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadModel(Modelica): time 2.025/2.025, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003553/0.0003553, allocations: 19.98 kB / 233.9 MB, free: 2.387 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08071/0.08109, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006636/0.08779, allocations: 4.177 MB / 276.8 MB, free: 7.344 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01449/0.1023, allocations: 7.441 MB / 284.2 MB, free: 15.88 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008044/0.1032, allocations: 19.88 kB / 284.3 MB, free: 15.86 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.1047, allocations: 298.6 kB / 284.6 MB, free: 15.57 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00335/0.1081, allocations: 0.7439 MB / 285.3 MB, free: 14.82 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002215/0.1104, allocations: 454.8 kB / 285.7 MB, free: 14.38 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004426/0.1149, allocations: 1.497 MB / 287.2 MB, free: 12.88 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004324/0.1154, allocations: 146.4 kB / 287.4 MB, free: 12.72 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005841/0.116, allocations: 250.8 kB / 287.6 MB, free: 12.47 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009423/0.1169, allocations: 278.3 kB / 287.9 MB, free: 12.2 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001864/0.1172, allocations: 20 kB / 287.9 MB, free: 12.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003713/0.1209, allocations: 0.5465 MB / 288.5 MB, free: 11.63 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002668/0.1212, allocations: 87.38 kB / 288.6 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004862/0.1217, allocations: 197.2 kB / 288.7 MB, free: 11.35 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002845/0.1246, allocations: 0.8414 MB / 289.6 MB, free: 10.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.1247, allocations: 4 kB / 289.6 MB, free: 10.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.388e-06/0.1247, allocations: 0 / 289.6 MB, free: 10.5 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.727e-05/0.1248, allocations: 0 / 289.6 MB, free: 10.5 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.004069/0.1289, allocations: 1.147 MB / 290.7 MB, free: 9.301 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.49e-05/0.129, allocations: 8.031 kB / 290.7 MB, free: 9.293 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003423/0.1293, allocations: 110.7 kB / 290.9 MB, free: 9.184 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003117/0.1325, allocations: 0.8131 MB / 291.7 MB, free: 8.316 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.19e-05/0.1326, allocations: 16.56 kB / 291.7 MB, free: 8.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.1327, allocations: 27.91 kB / 291.7 MB, free: 8.273 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001247/0.134, allocations: 311.6 kB / 292 MB, free: 7.957 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.238e-05/0.1341, allocations: 0 / 292 MB, free: 7.957 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.086e-05/0.1342, allocations: 12 kB / 292 MB, free: 7.945 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.829e-05/0.1342, allocations: 7.984 kB / 292 MB, free: 7.938 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.1354, allocations: 238.1 kB / 292.3 MB, free: 7.703 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004743/0.1402, allocations: 1.206 MB / 293.5 MB, free: 6.426 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000831/0.141, allocations: 194.6 kB / 293.7 MB, free: 6.227 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2635/0.4046, allocations: 8.615 MB / 302.3 MB, free: 28.96 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.4047, allocations: 39.48 kB / 302.3 MB, free: 28.93 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.517e-06/0.4047, allocations: 0 / 302.3 MB, free: 28.93 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.002575/0.4073, allocations: 0.6481 MB / 303 MB, free: 28.76 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.988e-05/0.4074, allocations: 79.89 kB / 303 MB, free: 28.66 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001414/0.4088, allocations: 0.7951 MB / 303.8 MB, free: 28.52 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.434e-05/0.4089, allocations: 30.02 kB / 303.9 MB, free: 28.48 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004299/0.4093, allocations: 444.5 kB / 304.3 MB, free: 28.15 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.024e-05/0.4094, allocations: 76.64 kB / 304.4 MB, free: 28.1 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.066e-05/0.4094, allocations: 4 kB / 304.4 MB, free: 28.1 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.49e-05/0.4095, allocations: 316.9 kB / 304.7 MB, free: 27.79 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.4098, allocations: 72.52 kB / 304.8 MB, free: 27.77 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003116/0.4101, allocations: 143.4 kB / 304.9 MB, free: 27.65 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003108/0.4104, allocations: 92.5 kB / 305 MB, free: 27.61 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.231e-06/0.4104, allocations: 4.375 kB / 305 MB, free: 27.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001002/0.4115, allocations: 403 kB / 305.4 MB, free: 27.43 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.4115, allocations: 14.62 kB / 305.4 MB, free: 27.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.327e-05/0.4115, allocations: 15.56 kB / 305.4 MB, free: 27.43 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005218/0.4121, allocations: 143.4 kB / 305.6 MB, free: 27.39 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002974/0.4124, allocations: 37.38 kB / 305.6 MB, free: 27.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007936/0.4132, allocations: 0.7066 MB / 306.3 MB, free: 26.8 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004499/0.4137, allocations: 29.7 kB / 306.3 MB, free: 26.78 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-05/0.4137, allocations: 16.12 kB / 306.3 MB, free: 26.78 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0003545/0.4141, allocations: 198.1 kB / 306.5 MB, free: 26.61 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001655/0.4143, allocations: 102.7 kB / 306.6 MB, free: 26.56 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001358/0.4156, allocations: 421.5 kB / 307 MB, free: 26.39 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.4157, allocations: 1.219 kB / 307.1 MB, free: 26.39 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.976e-05/0.4157, allocations: 13.31 kB / 307.1 MB, free: 26.39 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002815/0.416, allocations: 172.7 kB / 307.2 MB, free: 26.24 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.4162, allocations: 12.92 kB / 307.2 MB, free: 26.23 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000373/0.4166, allocations: 5.438 kB / 307.3 MB, free: 26.23 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.01e-05/0.4167, allocations: 21.03 kB / 307.3 MB, free: 26.22 MB / 250.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): (J2.cc.idrain, J2.cc.iGD, J2.cc.iGS) = Modelica.Electrical.Spice3.Internal.Jfet.jfetNoBypassCode_eval5(Modelica.Electrical.Spice3.Internal.Fet.Fet(300.15, 1.0, false, 0.0, 0.0, 0.0, 0.0, false, 1e-14, 1.0, 0.0, 0.0, 0.5, 0.7302833841653967, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586470905512062, 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), Modelica.Electrical.Spice3.Internal.Jfet.JfetModelLine(-2.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1e-14, 0.5, 1.0, 0.0, 1.0, 0.0, 0.0, 300.15, 0.0), 1, false, {J2.vGS, J1.Sinternal, 0.0}) Variables: 1: J2.cc.iGD:VARIABLE(start = 0.0 unit = "A" ) type: Real 2: J2.cc.iGS:VARIABLE(start = 0.0 unit = "A" ) type: Real 3: J1.Sinternal:VARIABLE(start = 0.0 unit = "V" ) 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): J1.vGD = U0.V - J1.Dinternal 2/2 (3): (J1.cc.idrain, J1.cc.iGD, J1.cc.iGS) = Modelica.Electrical.Spice3.Internal.Jfet.jfetNoBypassCode_eval2(Modelica.Electrical.Spice3.Internal.Fet.Fet(300.15, 1.0, false, 0.0, 0.0, 0.0, 0.0, false, 1e-14, 1.0, 0.0, 0.0, 0.5, 0.7302833841653967, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586470905512062, 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), Modelica.Electrical.Spice3.Internal.Jfet.JfetModelLine(-2.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1e-14, 0.5, 1.0, 0.0, 1.0, 0.0, 0.0, 300.15, 0.0), 1, false, {U0.V, J1.Dinternal, J1.Sinternal}) 3/5 (1): 0.0 = (-J1.cc.idrain) - J1.irs - J1.cc.iGS - J1.igsgmin 4/6 (1): 0.0 = J2.cc.idrain + J1.irs + (-J2.cc.iGD) - J2.igdgmin 5/7 (3): (J2.cc.idrain, J2.cc.iGD, J2.cc.iGS) = Modelica.Electrical.Spice3.Internal.Jfet.jfetNoBypassCode_eval5(Modelica.Electrical.Spice3.Internal.Fet.Fet(300.15, 1.0, false, 0.0, 0.0, 0.0, 0.0, false, 1e-14, 1.0, 0.0, 0.0, 0.5, 0.7302833841653967, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586470905512062, 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), Modelica.Electrical.Spice3.Internal.Jfet.JfetModelLine(-2.0, 0.0001, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 1e-14, 0.5, 1.0, 0.0, 1.0, 0.0, 0.0, 300.15, 0.0), 1, false, {J2.vGS, J1.Sinternal, 0.0}) 6/10 (1): J2.vGD = J2.vGS - J1.Sinternal 7/11 (1): J2.igdgmin = 1e-12 * J2.vGD 8/12 (1): J1.vGS = U0.V - J1.Sinternal 9/13 (1): J1.igsgmin = 1e-12 * J1.vGS 10/14 (1): 0.0 = J1.cc.idrain + UDD.i + (-J1.cc.iGD) - J1.igdgmin 11/15 (1): J1.igdgmin = 1e-12 * J1.vGD 12/16 (1): RC.v = J1.Dinternal - UDD.V 13/17 (1): RC.R * UDD.i = RC.v Variables: 1: UDD.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real 2: RC.v:VARIABLE(start = 0.0 unit = "V" ) "Voltage drop between the two pins (= p.v - n.v)" type: Real 3: J1.vGD:VARIABLE(unit = "V" ) type: Real 4: J1.igdgmin:VARIABLE(unit = "A" ) type: Real 5: J1.igsgmin:VARIABLE(unit = "A" ) type: Real 6: J1.vGS:VARIABLE(unit = "V" ) type: Real 7: J2.igdgmin:VARIABLE(unit = "A" ) type: Real 8: J2.vGD:VARIABLE(unit = "V" ) type: Real 9: J2.cc.iGD:VARIABLE(start = 0.0 unit = "A" ) type: Real 10: J2.cc.iGS:VARIABLE(start = 0.0 unit = "A" ) type: Real 11: J1.Sinternal:VARIABLE(start = 0.0 unit = "V" ) type: Real 12: J2.cc.idrain:VARIABLE(start = 0.0 unit = "A" ) type: Real 13: J1.irs:VARIABLE(unit = "A" ) type: Real 14: J1.cc.idrain:VARIABLE(start = 0.0 unit = "A" ) type: Real 15: J1.cc.iGD:VARIABLE(start = 0.0 unit = "A" ) type: Real 16: J1.cc.iGS:VARIABLE(start = 0.0 unit = "A" ) type: Real 17: J1.Dinternal:VARIABLE(unit = "V" ) 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.001524/0.4182, allocations: 0.5536 MB / 307.8 MB, free: 25.89 MB / 250.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.