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.001343/0.001343, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001553/0.001553, allocations: 195.7 kB / 16.25 MB, free: 6.621 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.338/1.338, allocations: 205.1 MB / 222.1 MB, free: 4.672 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.001336/0.001336, allocations: 55.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2267, allocations: 46.63 MB / 324.8 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00564/0.2324, allocations: 5.157 MB / 330 MB, free: 13.8 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.2434, allocations: 8.596 MB / 338.6 MB, free: 6.305 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.2449, allocations: 23.81 kB / 338.6 MB, free: 6.281 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.2467, allocations: 330.2 kB / 338.9 MB, free: 5.957 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003642/0.2504, allocations: 0.7067 MB / 339.7 MB, free: 5.246 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00253/0.253, allocations: 0.4942 MB / 340.1 MB, free: 4.75 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003217/0.2562, allocations: 1.658 MB / 341.8 MB, free: 3.086 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003349/0.2566, allocations: 163.1 kB / 342 MB, free: 2.914 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004104/0.257, allocations: 278.6 kB / 342.2 MB, free: 2.641 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000325/0.2573, allocations: 318 kB / 342.5 MB, free: 2.328 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.944e-05/0.2574, allocations: 28 kB / 342.6 MB, free: 2.301 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.2589, allocations: 0.562 MB / 343.1 MB, free: 1.738 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001002/0.2591, allocations: 103.3 kB / 343.2 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.2594, allocations: 405.5 kB / 343.6 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00157/0.261, allocations: 1.191 MB / 344.8 MB, free: 44 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.261, allocations: 4 kB / 344.8 MB, free: 40 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.261, allocations: 0 / 344.8 MB, free: 40 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.261, allocations: 0 / 344.8 MB, free: 40 kB / 270.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.001722/0.2628, allocations: 1.275 MB / 346.1 MB, free: 14.71 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.2628, allocations: 12.03 kB / 346.1 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.263, allocations: 111.6 kB / 346.2 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00107/0.264, allocations: 0.8593 MB / 347.1 MB, free: 13.68 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.2641, allocations: 20.56 kB / 347.1 MB, free: 13.66 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.103e-05/0.2641, allocations: 24 kB / 347.1 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004841/0.2646, allocations: 303.7 kB / 347.4 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.2646, allocations: 0 / 347.4 MB, free: 13.32 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.2647, allocations: 12 kB / 347.4 MB, free: 13.31 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.095e-05/0.2647, allocations: 7.984 kB / 347.4 MB, free: 13.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003925/0.2651, allocations: 234.1 kB / 347.7 MB, free: 13.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001745/0.2669, allocations: 1.198 MB / 348.9 MB, free: 11.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003513/0.2672, allocations: 198.6 kB / 349.1 MB, free: 11.61 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003115/0.2675, allocations: 222 kB / 349.3 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007821/0.2754, allocations: 8.561 MB / 357.8 MB, free: 1.426 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.608e-05/0.2755, allocations: 34.56 kB / 357.9 MB, free: 1.383 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 4.078e-06/0.2755, allocations: 0 / 357.9 MB, free: 1.383 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001554/0.277, allocations: 0.6621 MB / 358.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.2771, allocations: 81.11 kB / 358.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008543/0.278, allocations: 0.7947 MB / 359.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.278, allocations: 33.7 kB / 359.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/0.2783, allocations: 440.7 kB / 359.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.057e-05/0.2784, allocations: 78.84 kB / 360 MB, free: 15.23 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.89e-05/0.2785, allocations: 61.84 kB / 360 MB, free: 15.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.2786, allocations: 317.9 kB / 360.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.2788, allocations: 68.2 kB / 360.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.279, allocations: 150.3 kB / 360.5 MB, free: 14.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003208/0.2793, allocations: 232.9 kB / 360.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2793, allocations: 0 / 360.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005774/0.2799, allocations: 409 kB / 361.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.2799, allocations: 11.94 kB / 361.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.107e-05/0.28, allocations: 16 kB / 361.2 MB, free: 13.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003617/0.2803, allocations: 143.7 kB / 361.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.2805, allocations: 36.2 kB / 361.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006845/0.2812, allocations: 0.7122 MB / 362.1 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.2815, allocations: 27.69 kB / 362.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.501e-05/0.2815, allocations: 12 kB / 362.1 MB, free: 12.95 MB / 302.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.0002385/0.2817, allocations: 197.8 kB / 362.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001423/0.2819, allocations: 102.9 kB / 362.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007779/0.2827, allocations: 403.3 kB / 362.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.2827, allocations: 0 / 362.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.2827, allocations: 4 kB / 362.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.2827, allocations: 4 kB / 362.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005924/0.2833, allocations: 0.5073 MB / 363.3 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/0.2834, allocations: 12 kB / 363.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001205/0.2835, allocations: 19.92 kB / 363.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002832/0.2838, allocations: 136.7 kB / 363.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.2838, allocations: 16 kB / 363.5 MB, free: 11.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005773/0.2844, allocations: 0.7006 MB / 364.2 MB, free: 10.76 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.2844, allocations: 7.969 kB / 364.2 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000559/0.285, allocations: 447.9 kB / 364.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.2852, allocations: 175.8 kB / 364.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.947e-05/0.2852, allocations: 0 / 364.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.2855, allocations: 11.94 kB / 364.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.432e-05/0.2855, allocations: 19.86 kB / 364.8 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.2856, allocations: 15.98 kB / 364.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005822/0.2862, allocations: 0.5383 MB / 365.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.2862, allocations: 0 / 365.4 MB, free: 9.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006014/0.2868, allocations: 195.7 kB / 365.6 MB, free: 9.32 MB / 302.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.0004996/0.2873, allocations: 299.5 kB / 365.9 MB, free: 9.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005568/0.2878, allocations: 283 kB / 366.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.083e-06/0.2879, allocations: 0 / 366.2 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.2882, allocations: 180.9 kB / 366.3 MB, free: 8.543 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.2887, allocations: 142.6 kB / 366.5 MB, free: 8.406 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.2906, allocations: 1.452 MB / 367.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.2911, allocations: 0.9451 MB / 368.9 MB, free: 5.953 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003405/0.2914, allocations: 106.7 kB / 369 MB, free: 5.844 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.76e-05/0.2915, allocations: 51.44 kB / 369 MB, free: 5.793 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2915, allocations: 0 / 369 MB, free: 5.793 MB / 302.1 MB Notification: Performance of Templates: time 0.01584/0.3073, allocations: 9.011 MB / 378 MB, free: 12.77 MB / 318.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)