Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001245/0.00125, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001158/0.001158, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.314/1.314, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001158/0.001158, allocations: 55.92 kB / 280 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.08748, allocations: 46.63 MB / 326.6 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005858/0.09337, allocations: 5.141 MB / 331.8 MB, free: 15.3 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009602/0.103, allocations: 8.665 MB / 340.4 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000499/0.1035, allocations: 19.88 kB / 340.4 MB, free: 6.574 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009215/0.1045, allocations: 389.4 kB / 340.8 MB, free: 6.191 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002581/0.1071, allocations: 0.8106 MB / 341.6 MB, free: 5.375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001611/0.1087, allocations: 0.5791 MB / 342.2 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002247/0.111, allocations: 1.646 MB / 343.9 MB, free: 3.141 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002859/0.1113, allocations: 163 kB / 344 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00033/0.1116, allocations: 282.5 kB / 344.3 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.112, allocations: 306.1 kB / 344.6 MB, free: 2.391 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.923e-05/0.112, allocations: 32 kB / 344.6 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.1133, allocations: 0.5621 MB / 345.2 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.777e-05/0.1134, allocations: 107.3 kB / 345.3 MB, free: 1.691 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003464/0.1137, allocations: 409.5 kB / 345.7 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001351/0.1151, allocations: 1.191 MB / 346.9 MB, free: 96 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.1151, allocations: 0 / 346.9 MB, free: 96 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1151, allocations: 3.938 kB / 346.9 MB, free: 92 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.1151, allocations: 0 / 346.9 MB, free: 92 kB / 286.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.001872/0.117, allocations: 1.271 MB / 348.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.1171, allocations: 8.031 kB / 348.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.1172, allocations: 115.6 kB / 348.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001125/0.1184, allocations: 0.8476 MB / 349.1 MB, free: 13.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.1184, allocations: 24.55 kB / 349.2 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.265e-05/0.1184, allocations: 24 kB / 349.2 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000495/0.1189, allocations: 311.6 kB / 349.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.119, allocations: 0 / 349.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.119, allocations: 12 kB / 349.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.119, allocations: 4 kB / 349.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004052/0.1194, allocations: 238.1 kB / 349.7 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.1212, allocations: 1.19 MB / 350.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.1216, allocations: 190.6 kB / 351.1 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003114/0.1219, allocations: 221.4 kB / 351.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008416/0.1303, allocations: 8.569 MB / 359.9 MB, free: 1.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.626e-05/0.1304, allocations: 34.56 kB / 359.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.445e-06/0.1304, allocations: 0 / 359.9 MB, free: 1.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001667/0.1321, allocations: 0.6659 MB / 360.6 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.229e-05/0.1321, allocations: 77.11 kB / 360.7 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00109/0.1332, allocations: 0.7987 MB / 361.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.1333, allocations: 29.7 kB / 361.5 MB, free: 15.81 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000357/0.1337, allocations: 444.6 kB / 361.9 MB, free: 15.37 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.408e-05/0.1337, allocations: 74.86 kB / 362 MB, free: 15.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001034/0.1338, allocations: 57.94 kB / 362.1 MB, free: 15.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.134, allocations: 317.9 kB / 362.4 MB, free: 14.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.1341, allocations: 64.2 kB / 362.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002078/0.1344, allocations: 154.4 kB / 362.6 MB, free: 14.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000369/0.1347, allocations: 232.9 kB / 362.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.1348, allocations: 3.938 kB / 362.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006486/0.1354, allocations: 408.9 kB / 363.2 MB, free: 14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.1354, allocations: 8 kB / 363.2 MB, free: 13.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.03e-05/0.1355, allocations: 15.94 kB / 363.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003585/0.1358, allocations: 141 kB / 363.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001687/0.136, allocations: 35.91 kB / 363.4 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006512/0.1367, allocations: 0.7114 MB / 364.1 MB, free: 13.07 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000271/0.137, allocations: 27.69 kB / 364.1 MB, free: 13.04 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.682e-05/0.137, allocations: 16 kB / 364.2 MB, free: 13.02 MB / 318.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.0002645/0.1373, allocations: 197.8 kB / 364.4 MB, free: 12.82 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001388/0.1374, allocations: 102.8 kB / 364.5 MB, free: 12.72 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008843/0.1383, allocations: 423.2 kB / 364.9 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.1383, allocations: 0 / 364.9 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1384, allocations: 0 / 364.9 MB, free: 12.29 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.1384, allocations: 4 kB / 364.9 MB, free: 12.28 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006821/0.1391, allocations: 0.5073 MB / 365.4 MB, free: 11.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.566e-05/0.1391, allocations: 12 kB / 365.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.1392, allocations: 23.92 kB / 365.4 MB, free: 11.69 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002703/0.1395, allocations: 132.8 kB / 365.5 MB, free: 11.56 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/0.1395, allocations: 8 kB / 365.6 MB, free: 11.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006213/0.1402, allocations: 0.6967 MB / 366.2 MB, free: 10.83 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.1402, allocations: 4.031 kB / 366.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006175/0.1408, allocations: 455.7 kB / 366.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002003/0.141, allocations: 175.8 kB / 366.9 MB, free: 10.17 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.652e-05/0.1411, allocations: 4 kB / 366.9 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.1414, allocations: 4 kB / 366.9 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7e-05/0.1415, allocations: 19.92 kB / 366.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.1415, allocations: 11.94 kB / 366.9 MB, free: 10.13 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000631/0.1421, allocations: 0.55 MB / 367.5 MB, free: 9.57 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1421, allocations: 0 / 367.5 MB, free: 9.57 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005869/0.1427, allocations: 187.8 kB / 367.6 MB, free: 9.387 MB / 318.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.000544/0.1433, allocations: 307.2 kB / 367.9 MB, free: 9.078 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006155/0.1439, allocations: 284.3 kB / 368.2 MB, free: 8.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.1439, allocations: 4 kB / 368.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002975/0.1442, allocations: 179.7 kB / 368.4 MB, free: 8.598 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006064/0.1448, allocations: 132.3 kB / 368.5 MB, free: 8.469 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.147, allocations: 1.232 MB / 369.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005708/0.1475, allocations: 0.9489 MB / 370.7 MB, free: 6.23 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003969/0.1479, allocations: 110.7 kB / 370.8 MB, free: 6.117 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.771e-05/0.148, allocations: 47.44 kB / 370.9 MB, free: 6.07 MB / 318.1 MB Notification: Performance of SimCode: time 3.91e-07/0.148, allocations: 0 / 370.9 MB, free: 6.07 MB / 318.1 MB Notification: Performance of Templates: time 0.1713/0.3193, allocations: 9.046 MB / 379.9 MB, free: 55.57 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1)