Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001061/0.001061, allocations: 112.7 kB / 17.75 MB, free: 5.332 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.001098/0.001098, allocations: 183 kB / 18.68 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00102/0.00102, allocations: 55.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2294, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006118/0.2355, allocations: 5.29 MB / 406.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009664/0.2452, allocations: 9.068 MB / 415.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004228/0.2457, allocations: 39.62 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008236/0.2465, allocations: 410.7 kB / 416.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001677/0.2482, allocations: 0.8341 MB / 417 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.2493, allocations: 0.5909 MB / 417.6 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002033/0.2514, allocations: 1.697 MB / 419.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002381/0.2516, allocations: 155.1 kB / 419.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003109/0.2519, allocations: 314.5 kB / 419.8 MB, free: 6.398 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003563/0.2523, allocations: 326 kB / 420.1 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.046e-05/0.2524, allocations: 39.94 kB / 420.1 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001131/0.2535, allocations: 0.64 MB / 420.8 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.145e-05/0.2536, allocations: 103.3 kB / 420.9 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003204/0.2539, allocations: 409.5 kB / 421.3 MB, free: 4.895 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.2551, allocations: 1.199 MB / 422.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2552, allocations: 0 / 422.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.2552, allocations: 0 / 422.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.2552, allocations: 3.938 kB / 422.5 MB, free: 3.688 MB / 334.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.001734/0.2569, allocations: 1.271 MB / 423.8 MB, free: 2.363 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.257, allocations: 8.031 kB / 423.8 MB, free: 2.355 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001218/0.2571, allocations: 115.5 kB / 423.9 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.2582, allocations: 0.8522 MB / 424.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.2582, allocations: 20.56 kB / 424.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.771e-05/0.2583, allocations: 27.91 kB / 424.8 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000488/0.2588, allocations: 311.6 kB / 425.1 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.2588, allocations: 0 / 425.1 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.774e-05/0.2588, allocations: 8 kB / 425.1 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.2589, allocations: 11.98 kB / 425.1 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000388/0.2592, allocations: 230.1 kB / 425.3 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001631/0.2609, allocations: 1.186 MB / 426.5 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000335/0.2612, allocations: 198.7 kB / 426.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.2615, allocations: 222 kB / 426.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007819/0.2694, allocations: 8.561 MB / 435.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.676e-05/0.2694, allocations: 38.56 kB / 435.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.492e-06/0.2694, allocations: 0 / 435.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001486/0.2709, allocations: 0.6612 MB / 436.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.449e-05/0.271, allocations: 77.11 kB / 436.3 MB, free: 4.266 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000795/0.2718, allocations: 0.8025 MB / 437.1 MB, free: 3.445 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.2718, allocations: 29.7 kB / 437.1 MB, free: 3.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003132/0.2721, allocations: 444.7 kB / 437.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.831e-05/0.2722, allocations: 74.86 kB / 437.6 MB, free: 2.895 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.574e-05/0.2723, allocations: 65.83 kB / 437.7 MB, free: 2.824 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.318e-05/0.2724, allocations: 317.9 kB / 438 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001442/0.2725, allocations: 64.22 kB / 438 MB, free: 2.445 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.2727, allocations: 154.4 kB / 438.2 MB, free: 2.262 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.2731, allocations: 226.1 kB / 438.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2731, allocations: 0 / 438.4 MB, free: 2.012 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005836/0.2737, allocations: 423.8 kB / 438.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.754e-05/0.2737, allocations: 8 kB / 438.8 MB, free: 1.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.685e-05/0.2737, allocations: 15.94 kB / 438.8 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003292/0.274, allocations: 136.8 kB / 439 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.2742, allocations: 39.86 kB / 439 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000588/0.2748, allocations: 0.7163 MB / 439.7 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002231/0.2751, allocations: 19.84 kB / 439.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.905e-05/0.2751, allocations: 12 kB / 439.8 MB, free: 0.6172 MB / 350.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.0002144/0.2753, allocations: 197.7 kB / 440 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001126/0.2754, allocations: 110.8 kB / 440.1 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007283/0.2762, allocations: 407.4 kB / 440.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.952e-06/0.2762, allocations: 3.984 kB / 440.5 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.129e-05/0.2762, allocations: 12 kB / 440.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001906/0.2764, allocations: 175.9 kB / 440.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.197e-05/0.2765, allocations: 0 / 440.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.2767, allocations: 8 kB / 440.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.436e-05/0.2768, allocations: 11.98 kB / 440.7 MB, free: 15.67 MB / 366.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.7302825626525529, 0.5857864376269049, 0.3535533905932738, 0.25, 0.025864680954552383, 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.7302825626525529, 0.5857864376269049, 0.3535533905932738, 0.25, 0.025864680954552383, 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.7302825626525529, 0.5857864376269049, 0.3535533905932738, 0.25, 0.025864680954552383, 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.001059/0.2779, allocations: 0.567 MB / 441.2 MB, free: 15.1 MB / 366.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