Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009668/0.0009667, allocations: 196.2 kB / 18.04 MB, free: 3.781 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.518/1.518, allocations: 226.5 MB / 245.3 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008546/0.0008547, allocations: 103.1 kB / 297.4 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002848/0.0002849, allocations: 4 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.352, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.003989/0.3561, allocations: 4.6 MB / 413.3 MB, free: 23.08 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008385/0.3645, allocations: 8.312 MB / 421.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006418/0.3652, allocations: 19.88 kB / 421.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008814/0.3661, allocations: 302.4 kB / 421.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002257/0.3684, allocations: 0.6678 MB / 422.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001359/0.3697, allocations: 446 kB / 423 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002086/0.3718, allocations: 1.611 MB / 424.6 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.3721, allocations: 151.6 kB / 424.8 MB, free: 11.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003322/0.3725, allocations: 282.7 kB / 425.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.3728, allocations: 286.2 kB / 425.3 MB, free: 11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.968e-05/0.3729, allocations: 20 kB / 425.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001219/0.3741, allocations: 0.5969 MB / 425.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.574e-05/0.3742, allocations: 91.38 kB / 426 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002933/0.3745, allocations: 391.5 kB / 426.4 MB, free: 9.898 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007666/0.3753, allocations: 0.8686 MB / 427.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.3753, allocations: 0 / 427.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.3753, allocations: 0 / 427.3 MB, free: 9.027 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.3753, allocations: 0 / 427.3 MB, free: 9.027 MB / 298.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.001547/0.3769, allocations: 1.147 MB / 428.4 MB, free: 7.828 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.698e-05/0.3769, allocations: 12.03 kB / 428.4 MB, free: 7.816 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002653/0.3772, allocations: 127.6 kB / 428.6 MB, free: 7.691 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.3782, allocations: 0.8481 MB / 429.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.3782, allocations: 24.5 kB / 429.4 MB, free: 6.766 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.456e-05/0.3783, allocations: 24 kB / 429.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004917/0.3788, allocations: 311.7 kB / 429.8 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.338e-05/0.3788, allocations: 0 / 429.8 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.3789, allocations: 8 kB / 429.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/0.3789, allocations: 12 kB / 429.8 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003811/0.3793, allocations: 234.1 kB / 430 MB, free: 6.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001555/0.3808, allocations: 1.19 MB / 431.2 MB, free: 4.918 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.3812, allocations: 200.3 kB / 431.4 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002943/0.3815, allocations: 229.2 kB / 431.6 MB, free: 4.484 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008503/0.39, allocations: 8.905 MB / 440.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.3901, allocations: 34.56 kB / 440.6 MB, free: 10.07 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 3.496e-06/0.3901, allocations: 0 / 440.6 MB, free: 10.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.001718/0.3918, allocations: 0.6705 MB / 441.2 MB, free: 9.371 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.644e-05/0.3919, allocations: 81.11 kB / 441.3 MB, free: 9.273 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009531/0.3929, allocations: 0.787 MB / 442.1 MB, free: 8.469 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.198e-05/0.3929, allocations: 25.7 kB / 442.1 MB, free: 8.438 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004108/0.3933, allocations: 448.6 kB / 442.6 MB, free: 7.996 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.529e-05/0.3934, allocations: 78.89 kB / 442.6 MB, free: 7.918 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.574e-05/0.3934, allocations: 4 kB / 442.7 MB, free: 7.914 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3936, allocations: 325.9 kB / 443 MB, free: 7.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.3937, allocations: 64.2 kB / 443 MB, free: 7.527 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.3939, allocations: 150.4 kB / 443.2 MB, free: 7.348 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003708/0.3943, allocations: 240.1 kB / 443.4 MB, free: 7.082 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3943, allocations: 0 / 443.4 MB, free: 7.082 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006526/0.395, allocations: 407.5 kB / 443.8 MB, free: 6.676 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.613e-05/0.395, allocations: 8 kB / 443.8 MB, free: 6.668 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.93e-05/0.3951, allocations: 12 kB / 443.8 MB, free: 6.656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004/0.3955, allocations: 141.1 kB / 444 MB, free: 6.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001726/0.3957, allocations: 43.91 kB / 444 MB, free: 6.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007086/0.3964, allocations: 0.703 MB / 444.7 MB, free: 5.746 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002457/0.3966, allocations: 27.69 kB / 444.7 MB, free: 5.719 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.3967, allocations: 20 kB / 444.8 MB, free: 5.699 MB / 314.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.0002871/0.397, allocations: 201.8 kB / 445 MB, free: 5.492 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.3971, allocations: 106.7 kB / 445.1 MB, free: 5.387 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008689/0.398, allocations: 419.2 kB / 445.5 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.398, allocations: 0 / 445.5 MB, free: 4.965 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.321e-05/0.398, allocations: 15.98 kB / 445.5 MB, free: 4.949 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000182/0.3982, allocations: 167.8 kB / 445.7 MB, free: 4.766 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.3983, allocations: 8 kB / 445.7 MB, free: 4.758 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.3985, allocations: 7.984 kB / 445.7 MB, free: 4.75 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.614e-05/0.3986, allocations: 15.98 kB / 445.7 MB, free: 4.734 MB / 314.7 MB [/var/lib/jenkins1/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.7302825626525529, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586468095455238, 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/jenkins1/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.7302825626525529, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586468095455238, 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.7302825626525529, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586468095455238, 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 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:9741:5-9742:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001334/0.4, allocations: 0.5563 MB / 446.2 MB, free: 4.176 MB / 314.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.