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.001094/0.001094, allocations: 105.2 kB / 17.74 MB, free: 5.352 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.001172/0.001172, allocations: 186.5 kB / 18.68 MB, free: 4.426 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.327/1.327, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 47.92 kB / 352 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2306/0.2316, allocations: 49.44 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005899/0.2375, allocations: 5.287 MB / 406.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.2477, allocations: 9.068 MB / 415.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008176/0.2485, allocations: 43.62 kB / 415.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.2497, allocations: 393.5 kB / 416.2 MB, free: 10.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002526/0.2523, allocations: 0.8497 MB / 417 MB, free: 9.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001752/0.2541, allocations: 0.5909 MB / 417.6 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002624/0.2567, allocations: 1.689 MB / 419.3 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002967/0.257, allocations: 167.1 kB / 419.5 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004334/0.2574, allocations: 314.4 kB / 419.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004478/0.2579, allocations: 314.1 kB / 420.1 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.629e-05/0.258, allocations: 31.94 kB / 420.1 MB, free: 6.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001404/0.2594, allocations: 0.6478 MB / 420.8 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000121/0.2595, allocations: 107.3 kB / 420.9 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004118/0.26, allocations: 409.5 kB / 421.3 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001578/0.2616, allocations: 1.194 MB / 422.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2616, allocations: 0 / 422.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.2616, allocations: 0 / 422.5 MB, free: 3.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.188e-05/0.2616, allocations: 3.938 kB / 422.5 MB, free: 3.707 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.00188/0.2635, allocations: 1.317 MB / 423.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2635, allocations: 12.03 kB / 423.8 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001503/0.2637, allocations: 116.2 kB / 423.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001173/0.2649, allocations: 0.8609 MB / 424.8 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.2649, allocations: 16.56 kB / 424.8 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.811e-05/0.265, allocations: 24 kB / 424.8 MB, free: 1.258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004958/0.2655, allocations: 311.6 kB / 425.1 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.2655, allocations: 0 / 425.1 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.2655, allocations: 16 kB / 425.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.2656, allocations: 11.94 kB / 425.2 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004095/0.266, allocations: 234.1 kB / 425.4 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001688/0.2677, allocations: 1.183 MB / 426.6 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003401/0.268, allocations: 194.6 kB / 426.8 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000325/0.2684, allocations: 230 kB / 427 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008302/0.2767, allocations: 8.576 MB / 435.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.2767, allocations: 38.56 kB / 435.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.485e-06/0.2767, allocations: 0 / 435.6 MB, free: 4.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001604/0.2783, allocations: 0.6584 MB / 436.2 MB, free: 4.305 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/0.2784, allocations: 85.11 kB / 436.3 MB, free: 4.203 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009275/0.2793, allocations: 0.8026 MB / 437.1 MB, free: 3.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.659e-05/0.2794, allocations: 29.7 kB / 437.2 MB, free: 3.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003745/0.2797, allocations: 441 kB / 437.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.516e-05/0.2798, allocations: 83.25 kB / 437.7 MB, free: 2.828 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.2799, allocations: 57.89 kB / 437.7 MB, free: 2.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.2801, allocations: 321.9 kB / 438 MB, free: 2.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.2802, allocations: 72.2 kB / 438.1 MB, free: 2.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.2805, allocations: 150.4 kB / 438.3 MB, free: 2.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003571/0.2808, allocations: 224.5 kB / 438.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.2808, allocations: 0 / 438.5 MB, free: 1.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006357/0.2815, allocations: 412.3 kB / 438.9 MB, free: 1.535 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.2815, allocations: 7.938 kB / 438.9 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.07e-05/0.2815, allocations: 23.98 kB / 438.9 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003613/0.2819, allocations: 137 kB / 439.1 MB, free: 1.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.2821, allocations: 39.91 kB / 439.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006355/0.2828, allocations: 0.7007 MB / 439.8 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002498/0.283, allocations: 31.8 kB / 439.8 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.517e-05/0.2831, allocations: 16 kB / 439.8 MB, free: 0.5547 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.0002432/0.2833, allocations: 193.8 kB / 440 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001203/0.2834, allocations: 107.3 kB / 440.1 MB, free: 256 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007614/0.2842, allocations: 423.5 kB / 440.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.2842, allocations: 4 kB / 440.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.985e-05/0.2842, allocations: 8 kB / 440.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000181/0.2844, allocations: 180.4 kB / 440.7 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.194e-05/0.2845, allocations: 4 kB / 440.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/0.2847, allocations: 4 kB / 440.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.115e-05/0.2848, allocations: 15.98 kB / 440.8 MB, free: 15.59 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.001103/0.2859, allocations: 0.5598 MB / 441.3 MB, free: 15.04 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