Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit") 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.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 107.1 kB / 18.4 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 188.5 kB / 19.34 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.249/1.249, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 55.92 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07486/0.07613, allocations: 46.62 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.1602/0.2364, allocations: 5.125 MB / 381 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007665/0.2441, allocations: 8.672 MB / 389.6 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003953/0.2445, allocations: 37.91 kB / 389.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007796/0.2453, allocations: 378.2 kB / 390 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001671/0.247, allocations: 0.8147 MB / 390.8 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.2482, allocations: 0.5774 MB / 391.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002012/0.2503, allocations: 1.648 MB / 393.1 MB, free: 4.082 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/0.2505, allocations: 167.2 kB / 393.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002924/0.2508, allocations: 284.5 kB / 393.5 MB, free: 3.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003141/0.2511, allocations: 318.6 kB / 393.8 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.4e-05/0.2512, allocations: 29.53 kB / 393.8 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.2524, allocations: 0.5608 MB / 394.4 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.161e-05/0.2525, allocations: 105.2 kB / 394.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002853/0.2528, allocations: 409.7 kB / 394.9 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001255/0.254, allocations: 1.192 MB / 396.1 MB, free: 2.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.254, allocations: 0 / 396.1 MB, free: 2.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.254, allocations: 3.938 kB / 396.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.2541, allocations: 4 kB / 396.1 MB, free: 2.762 MB / 318.1 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.001635/0.2557, allocations: 1.27 MB / 397.4 MB, free: 1.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.2557, allocations: 12.44 kB / 397.4 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000128/0.2559, allocations: 112.7 kB / 397.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.257, allocations: 0.8517 MB / 398.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.549e-05/0.257, allocations: 18.22 kB / 398.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.504e-05/0.2571, allocations: 24.41 kB / 398.4 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.2576, allocations: 314.4 kB / 398.7 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.2576, allocations: 0 / 398.7 MB, free: 1.102 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.2576, allocations: 9.812 kB / 398.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.2577, allocations: 8.469 kB / 398.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/0.2581, allocations: 237.9 kB / 399 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001551/0.2596, allocations: 1.186 MB / 400.1 MB, free: 276 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003294/0.26, allocations: 204.3 kB / 400.3 MB, free: 172 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.2603, allocations: 225 kB / 400.6 MB, free: 64 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008293/0.2686, allocations: 8.562 MB / 409.1 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.2686, allocations: 35.91 kB / 409.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.2686, allocations: 0 / 409.2 MB, free: 8.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.00156/0.2702, allocations: 0.6662 MB / 409.8 MB, free: 7.734 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.2702, allocations: 79.55 kB / 409.9 MB, free: 7.641 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008704/0.2711, allocations: 0.7971 MB / 410.7 MB, free: 7.184 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/0.2711, allocations: 31.14 kB / 410.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003343/0.2715, allocations: 446.9 kB / 411.2 MB, free: 6.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/0.2715, allocations: 84.53 kB / 411.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.916e-05/0.2716, allocations: 57.69 kB / 411.3 MB, free: 6.645 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.061e-05/0.2717, allocations: 321.7 kB / 411.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000147/0.2719, allocations: 67.89 kB / 411.7 MB, free: 6.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001821/0.2721, allocations: 147.9 kB / 411.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003361/0.2724, allocations: 225.3 kB / 412.1 MB, free: 6 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.2724, allocations: 1.094 kB / 412.1 MB, free: 6 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005924/0.273, allocations: 405.4 kB / 412.4 MB, free: 5.789 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.2731, allocations: 5.75 kB / 412.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-05/0.2731, allocations: 17.38 kB / 412.5 MB, free: 5.785 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003416/0.2734, allocations: 138 kB / 412.6 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.2736, allocations: 42.34 kB / 412.6 MB, free: 5.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005925/0.2742, allocations: 0.702 MB / 413.3 MB, free: 5.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.2745, allocations: 23.56 kB / 413.4 MB, free: 5.094 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.2745, allocations: 16.17 kB / 413.4 MB, free: 5.09 MB / 334.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002286/0.2748, allocations: 199 kB / 413.6 MB, free: 4.922 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.2749, allocations: 106.3 kB / 413.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007536/0.2756, allocations: 413.1 kB / 414.1 MB, free: 4.633 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.2757, allocations: 3.984 kB / 414.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-05/0.2757, allocations: 11.78 kB / 414.1 MB, free: 4.629 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002281/0.2759, allocations: 174.8 kB / 414.3 MB, free: 4.465 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.153e-05/0.276, allocations: 5.344 kB / 414.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002286/0.2762, allocations: 10.95 kB / 414.3 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.2763, allocations: 13.08 kB / 414.3 MB, free: 4.449 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530: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.730282299768449, 0.5857864376269049, 0.3535533905932738, 0.25, 0.025864671962370543, 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, 1e-4, 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:528:7-530: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.730282299768449, 0.5857864376269049, 0.3535533905932738, 0.25, 0.025864671962370543, 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, 1e-4, 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.730282299768449, 0.5857864376269049, 0.3535533905932738, 0.25, 0.025864671962370543, 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, 1e-4, 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 of 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9805:5-9806:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001107/0.2774, allocations: 0.561 MB / 414.9 MB, free: 4.02 MB / 334.1 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed. Error: Internal error SimCode DAEmode: The model Modelica.Electrical.Spice3.Examples.CascodeCircuit could not be translated