Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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 3.2.3+maint.om/package.mo", uses=false) 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 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="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.008131/0.008131, allocations: 102.8 kB / 15.73 MB, free: 5.992 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.001876/0.001877, allocations: 193.2 kB / 16.67 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.1 MB / 222.5 MB, free: 4.496 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001176, allocations: 48.11 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08205/0.08323, allocations: 46.63 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005637/0.08891, allocations: 5.137 MB / 378.3 MB, free: 12.15 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009691/0.09863, allocations: 8.668 MB / 387 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008533/0.09953, allocations: 39.62 kB / 387 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009834/0.1006, allocations: 377.6 kB / 387.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00274/0.1033, allocations: 0.8144 MB / 388.2 MB, free: 2.211 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002014/0.1054, allocations: 0.5791 MB / 388.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002783/0.1082, allocations: 1.654 MB / 390.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003138/0.1085, allocations: 163 kB / 390.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004069/0.1089, allocations: 290.6 kB / 390.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004157/0.1093, allocations: 310.1 kB / 391.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.394e-05/0.1094, allocations: 28 kB / 391.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001532/0.111, allocations: 0.5659 MB / 391.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.1111, allocations: 99.33 kB / 391.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003916/0.1115, allocations: 405.5 kB / 392.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001595/0.1131, allocations: 1.203 MB / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1131, allocations: 0 / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1131, allocations: 0 / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.312e-05/0.1131, allocations: 0 / 393.5 MB, free: 12.91 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.002217/0.1154, allocations: 1.267 MB / 394.7 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.484e-05/0.1154, allocations: 12.03 kB / 394.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002057/0.1156, allocations: 111.6 kB / 394.8 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.1172, allocations: 0.867 MB / 395.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.857e-05/0.1172, allocations: 16.55 kB / 395.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.518e-05/0.1173, allocations: 24 kB / 395.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005615/0.1178, allocations: 307.7 kB / 396.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.651e-05/0.1179, allocations: 0 / 396.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.002e-05/0.1179, allocations: 8 kB / 396.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.1179, allocations: 15.92 kB / 396.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004753/0.1184, allocations: 242.1 kB / 396.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.1205, allocations: 1.183 MB / 397.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004/0.1209, allocations: 210.5 kB / 397.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003506/0.1213, allocations: 221.2 kB / 397.9 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009253/0.1306, allocations: 8.55 MB / 406.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.1306, allocations: 42.44 kB / 406.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.826e-06/0.1306, allocations: 0 / 406.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001821/0.1325, allocations: 0.6659 MB / 407.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.1326, allocations: 81.11 kB / 407.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001189/0.1338, allocations: 0.7948 MB / 408.1 MB, free: 12.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.732e-05/0.1338, allocations: 33.7 kB / 408.1 MB, free: 12.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003712/0.1342, allocations: 440.6 kB / 408.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.368e-05/0.1343, allocations: 78.91 kB / 408.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001033/0.1344, allocations: 57.84 kB / 408.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.1345, allocations: 321.9 kB / 409 MB, free: 11.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.1347, allocations: 72.14 kB / 409 MB, free: 11.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001882/0.1349, allocations: 141.9 kB / 409.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003439/0.1352, allocations: 224.5 kB / 409.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.1352, allocations: 4 kB / 409.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000649/0.1359, allocations: 401.6 kB / 409.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/0.1359, allocations: 8 kB / 409.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.973e-05/0.136, allocations: 12 kB / 409.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003615/0.1363, allocations: 152.9 kB / 410 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001749/0.1365, allocations: 27.98 kB / 410 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000681/0.1372, allocations: 0.7122 MB / 410.7 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002927/0.1375, allocations: 23.69 kB / 410.7 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-05/0.1376, allocations: 16 kB / 410.7 MB, free: 9.836 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.0002778/0.1379, allocations: 197.8 kB / 410.9 MB, free: 9.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001729/0.1381, allocations: 106.8 kB / 411 MB, free: 9.527 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008298/0.1389, allocations: 415.2 kB / 411.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.1389, allocations: 4 kB / 411.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.1389, allocations: 0 / 411.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1389, allocations: 0 / 411.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006293/0.1396, allocations: 0.5112 MB / 412 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.175e-05/0.1396, allocations: 16 kB / 412 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.1397, allocations: 23.86 kB / 412 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000274/0.14, allocations: 144.7 kB / 412.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.164e-05/0.1401, allocations: 8 kB / 412.1 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006104/0.1407, allocations: 0.6968 MB / 412.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.1407, allocations: 3.984 kB / 412.8 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006093/0.1413, allocations: 459.7 kB / 413.3 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002435/0.1416, allocations: 171.8 kB / 413.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.034e-05/0.1417, allocations: 4 kB / 413.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002304/0.1419, allocations: 8 kB / 413.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.787e-05/0.142, allocations: 15.92 kB / 413.5 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.142, allocations: 11.98 kB / 413.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006906/0.1427, allocations: 0.5423 MB / 414 MB, free: 6.387 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1427, allocations: 4 kB / 414 MB, free: 6.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006075/0.1433, allocations: 195.8 kB / 414.2 MB, free: 6.191 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (7): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0005385/0.1439, allocations: 299.2 kB / 414.5 MB, free: 5.887 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006213/0.1445, allocations: 280.4 kB / 414.8 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.1445, allocations: 4 kB / 414.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003245/0.1449, allocations: 179.6 kB / 415 MB, free: 5.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006038/0.1455, allocations: 132.3 kB / 415.1 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.1473, allocations: 1.221 MB / 416.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004861/0.1478, allocations: 0.9374 MB / 417.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000312/0.1481, allocations: 106.7 kB / 417.4 MB, free: 2.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.953e-05/0.1482, allocations: 55.44 kB / 417.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1482, allocations: 0 / 417.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of Templates: time 0.01774/0.166, allocations: 9.092 MB / 426.5 MB, free: 9.781 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1)