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.001141/0.001141, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001509/0.001509, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.336/1.336, allocations: 205.1 MB / 222.4 MB, free: 4.438 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.001143/0.001143, allocations: 47.94 kB / 278.7 MB, free: 12.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1934/0.1946, allocations: 46.64 MB / 325.3 MB, free: 2.059 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005179/0.1998, allocations: 5.142 MB / 330.5 MB, free: 13.93 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009466/0.2093, allocations: 8.672 MB / 339.1 MB, free: 6.066 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005151/0.2099, allocations: 19.88 kB / 339.1 MB, free: 6.047 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008945/0.2108, allocations: 385.4 kB / 339.5 MB, free: 5.668 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002075/0.2129, allocations: 0.8067 MB / 340.3 MB, free: 4.844 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.2142, allocations: 0.5792 MB / 340.9 MB, free: 4.262 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002249/0.2165, allocations: 1.65 MB / 342.6 MB, free: 2.605 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002536/0.2167, allocations: 159.1 kB / 342.7 MB, free: 2.438 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002929/0.217, allocations: 274.6 kB / 343 MB, free: 2.168 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003302/0.2174, allocations: 314 kB / 343.3 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.822e-05/0.2174, allocations: 31.94 kB / 343.3 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001142/0.2186, allocations: 0.5543 MB / 343.9 MB, free: 1.273 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.526e-05/0.2187, allocations: 107.3 kB / 344 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003301/0.219, allocations: 405.5 kB / 344.4 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001244/0.2203, allocations: 1.199 MB / 345.6 MB, free: 15.56 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2203, allocations: 0 / 345.6 MB, free: 15.56 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.2203, allocations: 0 / 345.6 MB, free: 15.56 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.331e-05/0.2203, allocations: 0 / 345.6 MB, free: 15.56 MB / 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.00167/0.222, allocations: 1.279 MB / 346.9 MB, free: 14.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.222, allocations: 8.031 kB / 346.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.2222, allocations: 119.6 kB / 347 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001076/0.2232, allocations: 0.8436 MB / 347.8 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.032e-05/0.2233, allocations: 24.5 kB / 347.8 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.182e-05/0.2233, allocations: 24 kB / 347.9 MB, free: 13.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004804/0.2238, allocations: 307.7 kB / 348.2 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.2238, allocations: 0 / 348.2 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.149e-05/0.2239, allocations: 16 kB / 348.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.2239, allocations: 4 kB / 348.2 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004168/0.2243, allocations: 238.1 kB / 348.4 MB, free: 12.6 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.226, allocations: 1.19 MB / 349.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00035/0.2263, allocations: 194.6 kB / 349.8 MB, free: 11.14 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003236/0.2267, allocations: 225.3 kB / 350 MB, free: 10.91 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007884/0.2346, allocations: 8.561 MB / 358.6 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.336e-05/0.2346, allocations: 34.56 kB / 358.6 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.2346, allocations: 0 / 358.6 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001554/0.2362, allocations: 0.6621 MB / 359.3 MB, free: 228 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.224e-05/0.2362, allocations: 81.05 kB / 359.4 MB, free: 128 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008247/0.2371, allocations: 0.8026 MB / 360.2 MB, free: 15.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.634e-05/0.2371, allocations: 29.7 kB / 360.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003212/0.2374, allocations: 440.7 kB / 360.6 MB, free: 14.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.208e-05/0.2375, allocations: 78.84 kB / 360.7 MB, free: 14.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.661e-05/0.2376, allocations: 61.84 kB / 360.8 MB, free: 14.69 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2377, allocations: 317.9 kB / 361.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001395/0.2379, allocations: 64.2 kB / 361.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.2381, allocations: 150.4 kB / 361.3 MB, free: 14.13 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003303/0.2384, allocations: 232.9 kB / 361.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.2384, allocations: 0 / 361.5 MB, free: 13.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000653/0.2391, allocations: 412.9 kB / 361.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.2391, allocations: 8 kB / 361.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.794e-05/0.2391, allocations: 12 kB / 361.9 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003427/0.2395, allocations: 137.1 kB / 362.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.2397, allocations: 39.91 kB / 362.1 MB, free: 13.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006077/0.2403, allocations: 0.7151 MB / 362.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002371/0.2405, allocations: 27.69 kB / 362.8 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.251e-05/0.2406, allocations: 16 kB / 362.9 MB, free: 12.48 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.0002188/0.2408, allocations: 197.8 kB / 363 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.2409, allocations: 98.88 kB / 363.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008176/0.2417, allocations: 411.2 kB / 363.5 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2418, allocations: 4 kB / 363.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.2418, allocations: 4 kB / 363.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2418, allocations: 0 / 363.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005779/0.2424, allocations: 0.5073 MB / 364.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-05/0.2424, allocations: 12 kB / 364.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.2425, allocations: 19.92 kB / 364.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002907/0.2428, allocations: 140.8 kB / 364.2 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.252e-05/0.2429, allocations: 8 kB / 364.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000633/0.2435, allocations: 0.6967 MB / 364.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2435, allocations: 4.031 kB / 364.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005719/0.2441, allocations: 451.9 kB / 365.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001848/0.2443, allocations: 175.8 kB / 365.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.445e-05/0.2444, allocations: 4 kB / 365.6 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.2446, allocations: 4 kB / 365.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.184e-05/0.2447, allocations: 19.92 kB / 365.6 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.98e-05/0.2447, allocations: 8 kB / 365.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005981/0.2453, allocations: 0.5461 MB / 366.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.925e-06/0.2453, allocations: 0 / 366.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005167/0.2458, allocations: 199.6 kB / 366.3 MB, free: 8.855 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.0004763/0.2463, allocations: 299.3 kB / 366.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005647/0.2469, allocations: 290.9 kB / 366.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2469, allocations: 0.5625 kB / 366.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002821/0.2472, allocations: 184.4 kB / 367.1 MB, free: 8.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005708/0.2478, allocations: 136.3 kB / 367.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.2496, allocations: 1.225 MB / 368.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000456/0.2501, allocations: 0.9451 MB / 369.4 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003271/0.2504, allocations: 110.7 kB / 369.5 MB, free: 5.594 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.68e-05/0.2505, allocations: 47.44 kB / 369.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2505, allocations: 0 / 369.5 MB, free: 5.547 MB / 302.1 MB Notification: Performance of Templates: time 0.01654/0.2671, allocations: 9.049 MB / 378.6 MB, free: 12.48 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)