Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 194.9 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005475/0.0005477, allocations: 19.94 kB / 264.6 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1038/0.1043, allocations: 44.51 MB / 309.1 MB, free: 376 kB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00606/0.1105, allocations: 4.178 MB / 313.2 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.1226, allocations: 7.438 MB / 320.7 MB, free: 4.711 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005934/0.1232, allocations: 15.88 kB / 320.7 MB, free: 4.695 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.1243, allocations: 310.5 kB / 321 MB, free: 4.391 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002573/0.1269, allocations: 0.7362 MB / 321.7 MB, free: 3.652 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001732/0.1287, allocations: 454.8 kB / 322.2 MB, free: 3.207 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004097/0.1328, allocations: 1.489 MB / 323.7 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003471/0.1331, allocations: 153.2 kB / 323.8 MB, free: 1.559 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004278/0.1336, allocations: 242.8 kB / 324.1 MB, free: 1.32 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004516/0.1341, allocations: 286.2 kB / 324.3 MB, free: 1.039 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.617e-05/0.1342, allocations: 16 kB / 324.3 MB, free: 1.023 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.1361, allocations: 0.5465 MB / 324.9 MB, free: 488 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.1362, allocations: 83.39 kB / 325 MB, free: 404 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002315/0.1365, allocations: 201.2 kB / 325.2 MB, free: 196 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001373/0.1379, allocations: 0.8414 MB / 326 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.1379, allocations: 0 / 326 MB, free: 15.34 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1379, allocations: 0 / 326 MB, free: 15.34 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.1379, allocations: 0 / 326 MB, free: 15.34 MB / 282.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.002387/0.1403, allocations: 1.147 MB / 327.2 MB, free: 14.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.1404, allocations: 8.031 kB / 327.2 MB, free: 14.14 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.1406, allocations: 114.7 kB / 327.3 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/0.1425, allocations: 0.8205 MB / 328.1 MB, free: 13.15 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.256e-05/0.1425, allocations: 20.56 kB / 328.1 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.655e-05/0.1426, allocations: 20 kB / 328.1 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007752/0.1434, allocations: 311.6 kB / 328.4 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.428e-05/0.1434, allocations: 0 / 328.4 MB, free: 12.79 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.1435, allocations: 12 kB / 328.5 MB, free: 12.78 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.523e-05/0.1435, allocations: 8 kB / 328.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006667/0.1442, allocations: 234.1 kB / 328.7 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002521/0.1467, allocations: 1.198 MB / 329.9 MB, free: 11.28 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005184/0.1472, allocations: 198.5 kB / 330.1 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01241/0.1597, allocations: 8.632 MB / 338.7 MB, free: 1.047 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.1597, allocations: 30.56 kB / 338.7 MB, free: 1.008 MB / 282.7 MB Notification: Performance of pre-optimization done (n=23): time 2.785e-06/0.1598, allocations: 4 kB / 338.8 MB, free: 1.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=23): time 0.002524/0.1623, allocations: 0.6427 MB / 339.4 MB, free: 340 kB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.44e-05/0.1624, allocations: 77.11 kB / 339.5 MB, free: 244 kB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.1637, allocations: 0.7947 MB / 340.3 MB, free: 15.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.1637, allocations: 37.64 kB / 340.3 MB, free: 15.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004879/0.1642, allocations: 436.8 kB / 340.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.764e-05/0.1643, allocations: 82.73 kB / 340.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.42e-05/0.1643, allocations: 4 kB / 340.8 MB, free: 14.87 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1645, allocations: 321.9 kB / 341.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/0.1647, allocations: 68.2 kB / 341.2 MB, free: 14.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002942/0.165, allocations: 146.4 kB / 341.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002785/0.1653, allocations: 92.42 kB / 341.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.703e-06/0.1653, allocations: 4 kB / 341.4 MB, free: 14.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009379/0.1663, allocations: 393.3 kB / 341.8 MB, free: 13.82 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/0.1663, allocations: 4 kB / 341.8 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.603e-05/0.1664, allocations: 19.98 kB / 341.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000524/0.1669, allocations: 150 kB / 342 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.1672, allocations: 36.08 kB / 342 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008576/0.1681, allocations: 0.7006 MB / 342.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003957/0.1685, allocations: 31.72 kB / 342.8 MB, free: 12.85 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.584e-05/0.1685, allocations: 12 kB / 342.8 MB, free: 12.84 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.0003473/0.1689, allocations: 205.8 kB / 343 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001715/0.1691, allocations: 102.8 kB / 343.1 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001336/0.1704, allocations: 415.4 kB / 343.5 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.1705, allocations: 0 / 343.5 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.395e-05/0.1705, allocations: 12 kB / 343.5 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002639/0.1708, allocations: 171.9 kB / 343.7 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.1709, allocations: 7.891 kB / 343.7 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003699/0.1713, allocations: 8 kB / 343.7 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.625e-05/0.1714, allocations: 19.95 kB / 343.7 MB, free: 11.87 MB / 298.7 MB [/var/lib/jenkins/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/jenkins/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 between 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9703:5-9704:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001544/0.173, allocations: 0.5624 MB / 344.2 MB, free: 11.3 MB / 298.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.