Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_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_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003946/0.003946, allocations: 177.4 kB / 17.39 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.762/2.762, allocations: 205.4 MB / 223.5 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00128/0.001279, allocations: 90.31 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004557/0.0004558, allocations: 12 kB / 328.2 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5503/0.5508, allocations: 47.58 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006559/0.5575, allocations: 4.467 MB / 380.2 MB, free: 41.9 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01285/0.5704, allocations: 7.889 MB / 388.1 MB, free: 35.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001317/0.5718, allocations: 22.66 kB / 388.1 MB, free: 35.48 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001316/0.5731, allocations: 296.9 kB / 388.4 MB, free: 35.26 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003542/0.5767, allocations: 0.6481 MB / 389.1 MB, free: 34.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002231/0.5789, allocations: 431 kB / 389.5 MB, free: 34.42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00379/0.5827, allocations: 1.546 MB / 391 MB, free: 33.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004989/0.5832, allocations: 151.5 kB / 391.2 MB, free: 33.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009156/0.5842, allocations: 254.7 kB / 391.4 MB, free: 33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000925/0.5851, allocations: 282.3 kB / 391.7 MB, free: 32.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001552/0.5853, allocations: 16 kB / 391.7 MB, free: 32.71 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002151/0.5874, allocations: 0.519 MB / 392.2 MB, free: 32.19 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.5876, allocations: 83.44 kB / 392.3 MB, free: 32.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008842/0.5885, allocations: 395.5 kB / 392.7 MB, free: 31.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00133/0.5899, allocations: 0.8531 MB / 393.6 MB, free: 30.86 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.288e-05/0.5899, allocations: 0 / 393.6 MB, free: 30.86 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.769e-06/0.5899, allocations: 4 kB / 393.6 MB, free: 30.85 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.72e-05/0.59, allocations: 0 / 393.6 MB, free: 30.85 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.002612/0.5926, allocations: 1.143 MB / 394.7 MB, free: 29.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.085e-05/0.5927, allocations: 12.03 kB / 394.7 MB, free: 29.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001593/0.5928, allocations: 115.6 kB / 394.8 MB, free: 29.53 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001244/0.5941, allocations: 0.8553 MB / 395.7 MB, free: 28.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.533e-05/0.5942, allocations: 16.56 kB / 395.7 MB, free: 28.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.042e-05/0.5942, allocations: 24 kB / 395.7 MB, free: 28.58 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005618/0.5948, allocations: 307.7 kB / 396 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.5948, allocations: 4 kB / 396 MB, free: 28.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.208e-05/0.5949, allocations: 8 kB / 396 MB, free: 28.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.167e-05/0.5949, allocations: 12 kB / 396 MB, free: 28.25 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004158/0.5953, allocations: 234.1 kB / 396.3 MB, free: 28.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001721/0.597, allocations: 1.194 MB / 397.5 MB, free: 26.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003657/0.5974, allocations: 205 kB / 397.7 MB, free: 26.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.5977, allocations: 221.3 kB / 397.9 MB, free: 26.32 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0081/0.6059, allocations: 8.585 MB / 406.5 MB, free: 16.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.6059, allocations: 34.56 kB / 406.5 MB, free: 16.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 2.965e-06/0.6059, allocations: 0 / 406.5 MB, free: 16.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.001632/0.6076, allocations: 0.6738 MB / 407.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.115e-05/0.6076, allocations: 85.09 kB / 407.3 MB, free: 15.49 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009433/0.6086, allocations: 0.7831 MB / 408 MB, free: 14.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/0.6086, allocations: 33.7 kB / 408.1 MB, free: 14.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003542/0.609, allocations: 444.6 kB / 408.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.899e-05/0.6091, allocations: 70.91 kB / 408.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.543e-05/0.6091, allocations: 4 kB / 408.6 MB, free: 14.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.6092, allocations: 321.9 kB / 408.9 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001429/0.6094, allocations: 68.2 kB / 409 MB, free: 13.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.6096, allocations: 153.8 kB / 409.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003386/0.6099, allocations: 236.9 kB / 409.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.6099, allocations: 0 / 409.3 MB, free: 13.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005875/0.6105, allocations: 400.9 kB / 409.7 MB, free: 12.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.6106, allocations: 8 kB / 409.7 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.391e-05/0.6106, allocations: 23.98 kB / 409.8 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004268/0.611, allocations: 133.1 kB / 409.9 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001662/0.6112, allocations: 47.84 kB / 409.9 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006346/0.6119, allocations: 0.7094 MB / 410.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/0.6121, allocations: 31.67 kB / 410.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.94e-05/0.6121, allocations: 12 kB / 410.7 MB, free: 11.92 MB / 298.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.00027/0.6124, allocations: 190.1 kB / 410.9 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.6125, allocations: 98.88 kB / 411 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008266/0.6134, allocations: 427.2 kB / 411.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.6134, allocations: 3.984 kB / 411.4 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.882e-05/0.6134, allocations: 12 kB / 411.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/0.6136, allocations: 167.9 kB / 411.6 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.291e-05/0.6137, allocations: 0 / 411.6 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001924/0.6139, allocations: 15.98 kB / 411.6 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.733e-05/0.614, allocations: 15.92 kB / 411.6 MB, free: 10.96 MB / 298.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.7302822997684491, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586467196237054, 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.7302822997684491, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586467196237054, 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.7302822997684491, 0.5857864376269049, 0.3535533905932738, 0.25, 0.02586467196237054, 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.001408/0.6154, allocations: 0.5674 MB / 412.2 MB, free: 10.39 MB / 298.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.