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.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_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadModel(Modelica): time 1.796/1.796, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005435/0.0005437, allocations: 8 kB / 233.8 MB, free: 3.078 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1136, allocations: 38.77 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.009794/0.1235, allocations: 4.174 MB / 276.7 MB, free: 8.035 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02461/0.1482, allocations: 7.438 MB / 284.2 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001299/0.1496, allocations: 23.81 kB / 284.2 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002396/0.152, allocations: 302.6 kB / 284.5 MB, free: 260 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004821/0.1569, allocations: 0.7361 MB / 285.2 MB, free: 15.52 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003173/0.1602, allocations: 454.7 kB / 285.7 MB, free: 15.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.006072/0.1663, allocations: 1.501 MB / 287.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006421/0.1671, allocations: 143 kB / 287.3 MB, free: 13.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008549/0.168, allocations: 246.8 kB / 287.6 MB, free: 13.17 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008891/0.1689, allocations: 274.3 kB / 287.8 MB, free: 12.9 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001768/0.1691, allocations: 23.98 kB / 287.8 MB, free: 12.88 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003759/0.1729, allocations: 0.5503 MB / 288.4 MB, free: 12.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002986/0.1733, allocations: 79.45 kB / 288.5 MB, free: 12.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005547/0.1739, allocations: 201.1 kB / 288.7 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003075/0.177, allocations: 0.8452 MB / 289.5 MB, free: 11.2 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.1771, allocations: 4 kB / 289.5 MB, free: 11.19 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.298e-06/0.1771, allocations: 0 / 289.5 MB, free: 11.19 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.654e-05/0.1772, allocations: 0 / 289.5 MB, free: 11.19 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.004762/0.1819, allocations: 1.151 MB / 290.7 MB, free: 9.988 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.842e-05/0.1821, allocations: 8.031 kB / 290.7 MB, free: 9.98 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005622/0.1826, allocations: 114.7 kB / 290.8 MB, free: 9.867 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003592/0.1863, allocations: 0.8092 MB / 291.6 MB, free: 9.004 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.456e-05/0.1864, allocations: 20.56 kB / 291.6 MB, free: 8.984 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001453/0.1866, allocations: 27.91 kB / 291.6 MB, free: 8.957 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001397/0.188, allocations: 311.6 kB / 292 MB, free: 8.641 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.772e-05/0.1881, allocations: 0 / 292 MB, free: 8.641 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.143e-05/0.1882, allocations: 8 kB / 292 MB, free: 8.633 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-05/0.1883, allocations: 15.98 kB / 292 MB, free: 8.617 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.1896, allocations: 238.1 kB / 292.2 MB, free: 8.383 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00523/0.1949, allocations: 1.198 MB / 293.4 MB, free: 7.113 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001325/0.1963, allocations: 202.6 kB / 293.6 MB, free: 6.906 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2823/0.4787, allocations: 8.597 MB / 302.2 MB, free: 29.66 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.858e-05/0.4788, allocations: 37.31 kB / 302.2 MB, free: 29.62 MB / 250.7 MB Notification: Performance of pre-optimization done (n=23): time 3.587e-06/0.4788, allocations: 2.25 kB / 302.2 MB, free: 29.62 MB / 250.7 MB Notification: Performance of matching and sorting (n=23): time 0.002663/0.4815, allocations: 0.6442 MB / 302.9 MB, free: 29.46 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.502e-05/0.4816, allocations: 83.89 kB / 303 MB, free: 29.36 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001576/0.4832, allocations: 0.7928 MB / 303.8 MB, free: 29.21 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.4832, allocations: 32.52 kB / 303.8 MB, free: 29.18 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003607/0.4836, allocations: 427.4 kB / 304.2 MB, free: 28.82 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.26e-05/0.4837, allocations: 76.94 kB / 304.3 MB, free: 28.77 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.156e-05/0.4837, allocations: 5.25 kB / 304.3 MB, free: 28.76 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.919e-05/0.4838, allocations: 321.4 kB / 304.6 MB, free: 28.45 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.4841, allocations: 72.7 kB / 304.7 MB, free: 28.42 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.4844, allocations: 146.3 kB / 304.8 MB, free: 28.3 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.4847, allocations: 98.42 kB / 304.9 MB, free: 28.27 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.4847, allocations: 0.5938 kB / 304.9 MB, free: 28.27 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009957/0.4857, allocations: 320.4 kB / 305.2 MB, free: 28.12 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.452e-05/0.4858, allocations: 9.078 kB / 305.2 MB, free: 28.12 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.916e-05/0.4858, allocations: 15.28 kB / 305.2 MB, free: 28.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005811/0.4864, allocations: 144.5 kB / 305.4 MB, free: 28.09 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003002/0.4867, allocations: 35.58 kB / 305.4 MB, free: 28.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008459/0.4876, allocations: 0.6992 MB / 306.1 MB, free: 27.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000485/0.4881, allocations: 35.86 kB / 306.2 MB, free: 27.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.353e-05/0.4882, allocations: 18.09 kB / 306.2 MB, free: 27.48 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.0003724/0.4886, allocations: 204.1 kB / 306.4 MB, free: 27.3 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.4887, allocations: 101.5 kB / 306.5 MB, free: 27.25 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.4901, allocations: 422 kB / 306.9 MB, free: 27.09 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.4902, allocations: 2.172 kB / 306.9 MB, free: 27.09 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.881e-05/0.4902, allocations: 12.89 kB / 306.9 MB, free: 27.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002652/0.4905, allocations: 175.6 kB / 307.1 MB, free: 26.93 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.4906, allocations: 9.297 kB / 307.1 MB, free: 26.92 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/0.491, allocations: 5.344 kB / 307.1 MB, free: 26.92 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.467e-05/0.4911, allocations: 25.98 kB / 307.1 MB, free: 26.92 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.001588/0.4927, allocations: 0.5432 MB / 307.7 MB, free: 26.59 MB / 250.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.