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.CascodeCircuit.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.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003702/0.0003701, allocations: 12 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1102, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.007023/0.1173, allocations: 4.178 MB / 313.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.1317, allocations: 7.438 MB / 320.6 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008311/0.1326, allocations: 19.88 kB / 320.6 MB, free: 5.375 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.1339, allocations: 310.6 kB / 320.9 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003477/0.1374, allocations: 0.7322 MB / 321.7 MB, free: 4.336 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002269/0.1397, allocations: 466.7 kB / 322.1 MB, free: 3.879 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004416/0.1442, allocations: 1.485 MB / 323.6 MB, free: 2.391 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004101/0.1447, allocations: 151 kB / 323.7 MB, free: 2.234 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000583/0.1453, allocations: 238.9 kB / 324 MB, free: 2 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006201/0.1459, allocations: 290.2 kB / 324.3 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.864e-05/0.146, allocations: 16 kB / 324.3 MB, free: 1.699 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002744/0.1488, allocations: 0.5426 MB / 324.8 MB, free: 1.156 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.149, allocations: 83.44 kB / 324.9 MB, free: 1.074 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003512/0.1493, allocations: 205.1 kB / 325.1 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001843/0.1512, allocations: 0.8452 MB / 325.9 MB, free: 20 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.1512, allocations: 0 / 325.9 MB, free: 20 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.1512, allocations: 0 / 325.9 MB, free: 20 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.1513, allocations: 4 kB / 325.9 MB, free: 16 kB / 266.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.003102/0.1544, allocations: 1.147 MB / 327.1 MB, free: 14.82 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.668e-05/0.1545, allocations: 8.031 kB / 327.1 MB, free: 14.81 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002593/0.1547, allocations: 110.7 kB / 327.2 MB, free: 14.7 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002431/0.1572, allocations: 0.8167 MB / 328 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.001e-05/0.1572, allocations: 20.56 kB / 328 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.651e-05/0.1574, allocations: 24 kB / 328.1 MB, free: 13.78 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.1584, allocations: 315.6 kB / 328.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.1584, allocations: 0 / 328.4 MB, free: 13.46 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.204e-05/0.1585, allocations: 12 kB / 328.4 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.819e-05/0.1585, allocations: 4 kB / 328.4 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009186/0.1595, allocations: 238.1 kB / 328.6 MB, free: 13.21 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00347/0.163, allocations: 1.194 MB / 329.8 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007405/0.1637, allocations: 202.5 kB / 330 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01754/0.1813, allocations: 8.62 MB / 338.6 MB, free: 1.727 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.226e-05/0.1814, allocations: 34.5 kB / 338.7 MB, free: 1.684 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 4.108e-06/0.1814, allocations: 0 / 338.7 MB, free: 1.684 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.003577/0.185, allocations: 0.6544 MB / 339.3 MB, free: 1 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.938e-05/0.1851, allocations: 81.11 kB / 339.4 MB, free: 0.9023 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001969/0.1871, allocations: 0.7908 MB / 340.2 MB, free: 96 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.197e-05/0.1872, allocations: 29.7 kB / 340.2 MB, free: 60 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006582/0.1879, allocations: 414.7 kB / 340.6 MB, free: 15.65 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.188, allocations: 82.75 kB / 340.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.119e-05/0.1881, allocations: 4 kB / 340.7 MB, free: 15.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002115/0.1883, allocations: 326.8 kB / 341 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000347/0.1886, allocations: 68.2 kB / 341.1 MB, free: 15.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004283/0.1891, allocations: 146.3 kB / 341.2 MB, free: 15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004135/0.1895, allocations: 96.48 kB / 341.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.47e-06/0.1895, allocations: 0 / 341.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001193/0.1908, allocations: 310.1 kB / 341.6 MB, free: 14.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/0.1908, allocations: 15.92 kB / 341.7 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-05/0.1909, allocations: 12 kB / 341.7 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007279/0.1916, allocations: 149 kB / 341.8 MB, free: 14.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003729/0.192, allocations: 27.98 kB / 341.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.1933, allocations: 0.7052 MB / 342.5 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006777/0.194, allocations: 31.69 kB / 342.6 MB, free: 13.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-05/0.1941, allocations: 20.05 kB / 342.6 MB, free: 13.61 MB / 298.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.0005534/0.1947, allocations: 197.7 kB / 342.8 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.195, allocations: 102.8 kB / 342.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001938/0.1969, allocations: 419.6 kB / 343.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.1969, allocations: 0 / 343.3 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.685e-05/0.197, allocations: 12 kB / 343.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003921/0.1974, allocations: 171.8 kB / 343.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002089/0.1976, allocations: 7.953 kB / 343.5 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005744/0.1982, allocations: 12 kB / 343.5 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.6e-05/0.1983, allocations: 19.91 kB / 343.5 MB, free: 12.64 MB / 298.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.7302822997684491, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586467196237054, 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.7302822997684491, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586467196237054, 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.7302822997684491, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586467196237054, 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.002157/0.2005, allocations: 0.5586 MB / 344.1 MB, free: 12.07 MB / 298.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.