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.001568/0.001568, allocations: 108 kB / 15.61 MB, free: 152 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.001951/0.001951, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.447/1.447, allocations: 205.1 MB / 222.4 MB, free: 4.602 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.001159/0.001159, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2018, allocations: 46.63 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005315/0.2071, allocations: 5.139 MB / 330.4 MB, free: 13.74 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009461/0.2166, allocations: 8.671 MB / 339.1 MB, free: 6.078 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006286/0.2173, allocations: 15.88 kB / 339.1 MB, free: 6.062 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000988/0.2183, allocations: 385.4 kB / 339.5 MB, free: 5.684 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002447/0.2208, allocations: 0.8106 MB / 340.3 MB, free: 4.867 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001563/0.2224, allocations: 0.5792 MB / 340.9 MB, free: 4.285 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002624/0.225, allocations: 1.646 MB / 342.5 MB, free: 2.633 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002949/0.2253, allocations: 167.1 kB / 342.7 MB, free: 2.457 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003669/0.2257, allocations: 274.6 kB / 343 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003304/0.226, allocations: 314 kB / 343.3 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.697e-05/0.2261, allocations: 31.94 kB / 343.3 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.2275, allocations: 0.5659 MB / 343.9 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.021e-05/0.2276, allocations: 99.33 kB / 344 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003302/0.2279, allocations: 401.5 kB / 344.4 MB, free: 0.7891 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001377/0.2293, allocations: 1.199 MB / 345.6 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2293, allocations: 0 / 345.6 MB, free: 15.59 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.2293, allocations: 0 / 345.6 MB, free: 15.59 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.479e-05/0.2293, allocations: 0 / 345.6 MB, free: 15.59 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.001764/0.2311, allocations: 1.283 MB / 346.9 MB, free: 14.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.2311, allocations: 8.031 kB / 346.9 MB, free: 14.24 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.2313, allocations: 111.6 kB / 347 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00105/0.2323, allocations: 0.8476 MB / 347.8 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.2324, allocations: 16.56 kB / 347.8 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.2324, allocations: 27.98 kB / 347.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004725/0.2329, allocations: 307.6 kB / 348.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.2329, allocations: 0 / 348.2 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.95e-05/0.233, allocations: 15.98 kB / 348.2 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.233, allocations: 12 kB / 348.2 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000399/0.2334, allocations: 234.1 kB / 348.4 MB, free: 12.62 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00159/0.235, allocations: 1.19 MB / 349.6 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003433/0.2353, allocations: 194.6 kB / 349.8 MB, free: 11.16 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000308/0.2357, allocations: 221.4 kB / 350 MB, free: 10.94 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008083/0.2437, allocations: 8.565 MB / 358.6 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.2438, allocations: 30.56 kB / 358.6 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.775e-06/0.2438, allocations: 0 / 358.6 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001541/0.2454, allocations: 0.6621 MB / 359.3 MB, free: 252 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.51e-05/0.2454, allocations: 81.11 kB / 359.3 MB, free: 152 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008933/0.2463, allocations: 0.8026 MB / 360.2 MB, free: 15.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.38e-05/0.2464, allocations: 25.7 kB / 360.2 MB, free: 15.29 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003264/0.2467, allocations: 444.7 kB / 360.6 MB, free: 14.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.54e-05/0.2468, allocations: 78.77 kB / 360.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.335e-05/0.2469, allocations: 61.83 kB / 360.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.247, allocations: 317.9 kB / 361.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001377/0.2471, allocations: 64.2 kB / 361.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.2473, allocations: 146.4 kB / 361.3 MB, free: 14.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.2477, allocations: 232.9 kB / 361.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.2477, allocations: 0 / 361.5 MB, free: 13.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000593/0.2483, allocations: 416.8 kB / 361.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.2483, allocations: 4 kB / 361.9 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.182e-05/0.2484, allocations: 19.94 kB / 361.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003607/0.2487, allocations: 137.1 kB / 362.1 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.2489, allocations: 39.91 kB / 362.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006069/0.2495, allocations: 0.719 MB / 362.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002268/0.2498, allocations: 27.69 kB / 362.8 MB, free: 12.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.2498, allocations: 16 kB / 362.9 MB, free: 12.5 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.0002253/0.25, allocations: 197.8 kB / 363 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.2502, allocations: 98.88 kB / 363.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008403/0.251, allocations: 411.2 kB / 363.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.251, allocations: 8 kB / 363.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.251, allocations: 0 / 363.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.251, allocations: 0 / 363.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006448/0.2517, allocations: 0.5073 MB / 364.1 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.236e-05/0.2517, allocations: 12 kB / 364.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001345/0.2519, allocations: 23.92 kB / 364.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002665/0.2521, allocations: 132.8 kB / 364.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.372e-05/0.2522, allocations: 12 kB / 364.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006773/0.2529, allocations: 0.6928 MB / 364.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2529, allocations: 3.938 kB / 364.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005904/0.2535, allocations: 452 kB / 365.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.2537, allocations: 175.8 kB / 365.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.434e-05/0.2538, allocations: 8 kB / 365.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/0.254, allocations: 0 / 365.6 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.798e-05/0.254, allocations: 19.92 kB / 365.6 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.1e-05/0.2541, allocations: 11.94 kB / 365.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006545/0.2547, allocations: 0.5461 MB / 366.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2547, allocations: 0 / 366.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005841/0.2553, allocations: 195.8 kB / 366.3 MB, free: 8.875 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.0005005/0.2558, allocations: 307.2 kB / 366.6 MB, free: 8.566 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005699/0.2564, allocations: 279.8 kB / 366.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.2564, allocations: 0.5625 kB / 366.9 MB, free: 8.281 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003/0.2567, allocations: 187.3 kB / 367.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005846/0.2573, allocations: 136.3 kB / 367.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.2591, allocations: 1.23 MB / 368.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004497/0.2596, allocations: 0.9412 MB / 369.4 MB, free: 5.727 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003571/0.26, allocations: 106.7 kB / 369.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.687e-05/0.2601, allocations: 51.44 kB / 369.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2601, allocations: 0 / 369.5 MB, free: 5.566 MB / 302.1 MB Notification: Performance of Templates: time 0.01657/0.2766, allocations: 9.049 MB / 378.6 MB, free: 12.5 MB / 318.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)