Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.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.004539/0.004539, allocations: 101.3 kB / 15.73 MB, free: 6.449 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.001132/0.001132, allocations: 196.2 kB / 16.68 MB, free: 6.352 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.43/1.43, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001173/0.001173, allocations: 50.42 kB / 326.5 MB, free: 14.57 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09309/0.09428, allocations: 46.62 MB / 373.2 MB, free: 1.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005934/0.1003, allocations: 5.129 MB / 378.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009431/0.1097, allocations: 8.672 MB / 387 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005047/0.1103, allocations: 39.69 kB / 387 MB, free: 3.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008784/0.1112, allocations: 381.5 kB / 387.4 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002012/0.1132, allocations: 0.8105 MB / 388.2 MB, free: 2.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001432/0.1147, allocations: 0.583 MB / 388.8 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002329/0.117, allocations: 1.646 MB / 390.4 MB, free: 96 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002731/0.1173, allocations: 163.1 kB / 390.6 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003041/0.1176, allocations: 282.6 kB / 390.9 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003461/0.118, allocations: 314 kB / 391.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.116e-05/0.118, allocations: 32 kB / 391.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001307/0.1193, allocations: 0.5582 MB / 391.7 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.179e-05/0.1194, allocations: 107.3 kB / 391.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003389/0.1198, allocations: 413.5 kB / 392.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.1213, allocations: 1.206 MB / 393.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1213, allocations: 0 / 393.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1213, allocations: 0 / 393.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.1213, allocations: 0 / 393.5 MB, free: 13.02 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.001818/0.1231, allocations: 1.306 MB / 394.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1232, allocations: 8.031 kB / 394.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.1233, allocations: 120.2 kB / 394.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.1245, allocations: 0.8758 MB / 395.8 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.1246, allocations: 16.56 kB / 395.8 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.022e-05/0.1246, allocations: 24 kB / 395.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005609/0.1252, allocations: 311.6 kB / 396.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.226e-05/0.1252, allocations: 0 / 396.1 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.972e-05/0.1252, allocations: 12 kB / 396.1 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.1253, allocations: 11.98 kB / 396.1 MB, free: 10.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004073/0.1257, allocations: 234.2 kB / 396.4 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001713/0.1274, allocations: 1.194 MB / 397.6 MB, free: 8.734 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003623/0.1278, allocations: 198.5 kB / 397.8 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003265/0.1281, allocations: 229.2 kB / 398 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008805/0.1369, allocations: 8.557 MB / 406.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.644e-05/0.137, allocations: 34.56 kB / 406.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.325e-06/0.137, allocations: 0 / 406.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001625/0.1387, allocations: 0.6665 MB / 407.2 MB, free: 13.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/0.1387, allocations: 81.05 kB / 407.3 MB, free: 13.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001027/0.1398, allocations: 0.7987 MB / 408.1 MB, free: 12.7 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/0.1398, allocations: 29.7 kB / 408.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003697/0.1402, allocations: 456.9 kB / 408.6 MB, free: 12.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.034e-05/0.1403, allocations: 71.34 kB / 408.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.1404, allocations: 57.92 kB / 408.7 MB, free: 12.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.1405, allocations: 317.9 kB / 409 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001534/0.1407, allocations: 68.2 kB / 409.1 MB, free: 11.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002278/0.1409, allocations: 149.9 kB / 409.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004616/0.1414, allocations: 224.5 kB / 409.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.1414, allocations: 0 / 409.5 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007044/0.1421, allocations: 418 kB / 409.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.1421, allocations: 5.094 kB / 409.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.688e-05/0.1422, allocations: 20 kB / 409.9 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004223/0.1426, allocations: 137.1 kB / 410 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.1428, allocations: 35.92 kB / 410.1 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000712/0.1435, allocations: 0.7161 MB / 410.8 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.1438, allocations: 35.88 kB / 410.8 MB, free: 9.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.286e-05/0.1439, allocations: 12 kB / 410.8 MB, free: 9.867 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.0002656/0.1441, allocations: 193.8 kB / 411 MB, free: 9.668 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.1443, allocations: 107.3 kB / 411.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009024/0.1452, allocations: 423.2 kB / 411.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.1452, allocations: 0 / 411.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.1452, allocations: 0 / 411.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.1452, allocations: 0 / 411.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006251/0.1459, allocations: 0.5112 MB / 412 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.087e-05/0.1459, allocations: 12 kB / 412.1 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.146, allocations: 19.92 kB / 412.1 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002899/0.1463, allocations: 148.8 kB / 412.2 MB, free: 8.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.601e-05/0.1464, allocations: 12 kB / 412.2 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006733/0.147, allocations: 0.6929 MB / 412.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.1471, allocations: 0 / 412.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006173/0.1477, allocations: 468.2 kB / 413.4 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.1479, allocations: 172.4 kB / 413.5 MB, free: 7.008 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.995e-05/0.148, allocations: 4 kB / 413.6 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.1482, allocations: 4 kB / 413.6 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.935e-05/0.1483, allocations: 19.92 kB / 413.6 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.1483, allocations: 15.98 kB / 413.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006875/0.149, allocations: 0.5422 MB / 414.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.149, allocations: 0 / 414.1 MB, free: 6.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005666/0.1496, allocations: 199.6 kB / 414.3 MB, free: 6.219 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.0005844/0.1502, allocations: 299.1 kB / 414.6 MB, free: 5.914 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006263/0.1508, allocations: 277 kB / 414.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1508, allocations: 0 / 414.9 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002962/0.1511, allocations: 187.6 kB / 415.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000586/0.1517, allocations: 140.2 kB / 415.2 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.1537, allocations: 1.246 MB / 416.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.1542, allocations: 0.9374 MB / 417.4 MB, free: 3.051 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002821/0.1544, allocations: 110.7 kB / 417.5 MB, free: 2.938 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.047e-05/0.1545, allocations: 51.44 kB / 417.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1545, allocations: 0 / 417.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of Templates: time 0.01737/0.1719, allocations: 9.089 MB / 426.6 MB, free: 9.777 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1)