Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00112/0.00112, allocations: 111 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 211.9 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.001241, allocations: 59.89 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2075/0.2087, allocations: 50.55 MB / 409.9 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005306/0.2141, allocations: 5.289 MB / 415.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009279/0.2234, allocations: 9.115 MB / 424.3 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003717/0.2237, allocations: 39.69 kB / 424.4 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007678/0.2245, allocations: 398.7 kB / 424.8 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00163/0.2262, allocations: 0.8496 MB / 425.6 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.2273, allocations: 0.5987 MB / 426.2 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002076/0.2294, allocations: 1.724 MB / 427.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002486/0.2297, allocations: 159 kB / 428.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003269/0.23, allocations: 310.6 kB / 428.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003648/0.2304, allocations: 325.9 kB / 428.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.158e-05/0.2304, allocations: 28 kB / 428.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001107/0.2316, allocations: 0.6672 MB / 429.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.104e-05/0.2316, allocations: 107.3 kB / 429.5 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003017/0.232, allocations: 401.5 kB / 429.9 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001218/0.2332, allocations: 1.211 MB / 431.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2332, allocations: 0 / 431.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.2332, allocations: 0 / 431.1 MB, free: 12.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.498e-06/0.2332, allocations: 3.938 kB / 431.1 MB, free: 12.31 MB / 350.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.001649/0.2349, allocations: 1.271 MB / 432.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.285e-05/0.2349, allocations: 12.03 kB / 432.4 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002663/0.2352, allocations: 127.6 kB / 432.5 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.2363, allocations: 0.852 MB / 433.4 MB, free: 9.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.729e-05/0.2363, allocations: 24.5 kB / 433.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.258e-05/0.2364, allocations: 24 kB / 433.4 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004889/0.2369, allocations: 303.7 kB / 433.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.2369, allocations: 4 kB / 433.7 MB, free: 9.582 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.88e-05/0.2369, allocations: 12 kB / 433.7 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.2369, allocations: 7.984 kB / 433.7 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004182/0.2374, allocations: 230.1 kB / 434 MB, free: 9.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001589/0.239, allocations: 1.194 MB / 435.2 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.2393, allocations: 194.6 kB / 435.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.2396, allocations: 229.2 kB / 435.6 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008132/0.2478, allocations: 8.863 MB / 444.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.2478, allocations: 38.56 kB / 444.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 1.983e-06/0.2478, allocations: 3.938 kB / 444.5 MB, free: 13.26 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001574/0.2494, allocations: 0.6659 MB / 445.1 MB, free: 12.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.725e-05/0.2495, allocations: 81.09 kB / 445.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008492/0.2503, allocations: 0.7986 MB / 446 MB, free: 11.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.571e-05/0.2504, allocations: 29.7 kB / 446.1 MB, free: 11.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003173/0.2507, allocations: 436.8 kB / 446.5 MB, free: 11.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.266e-05/0.2507, allocations: 74.84 kB / 446.6 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.2508, allocations: 57.84 kB / 446.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.2509, allocations: 325.9 kB / 446.9 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.2511, allocations: 68.2 kB / 447 MB, free: 10.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001894/0.2513, allocations: 149.8 kB / 447.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003456/0.2516, allocations: 237.9 kB / 447.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2517, allocations: 3.938 kB / 447.4 MB, free: 10.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005971/0.2523, allocations: 400 kB / 447.8 MB, free: 9.812 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.432e-05/0.2523, allocations: 4 kB / 447.8 MB, free: 9.809 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.189e-05/0.2523, allocations: 23.98 kB / 447.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003432/0.2527, allocations: 137.1 kB / 447.9 MB, free: 9.648 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001684/0.2529, allocations: 35.91 kB / 448 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006313/0.2535, allocations: 0.7161 MB / 448.7 MB, free: 8.871 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002358/0.2537, allocations: 31.72 kB / 448.7 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/0.2538, allocations: 12 kB / 448.7 MB, free: 8.828 MB / 366.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.0002236/0.254, allocations: 193.8 kB / 448.9 MB, free: 8.629 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.2541, allocations: 98.88 kB / 449 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007653/0.2549, allocations: 427.2 kB / 449.4 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2549, allocations: 0 / 449.4 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-05/0.2549, allocations: 12 kB / 449.4 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.2551, allocations: 175.8 kB / 449.6 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.863e-05/0.2552, allocations: 0 / 449.6 MB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.2554, allocations: 8 kB / 449.6 MB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.872e-05/0.2555, allocations: 19.98 kB / 449.6 MB, free: 7.875 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.001105/0.2566, allocations: 0.5521 MB / 450.2 MB, free: 7.328 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