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.0008048/0.0008049, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.005503/0.005503, allocations: 174.1 kB / 16.26 MB, free: 6.613 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.337/1.337, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.00042/0.0004201, allocations: 8.516 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2077, allocations: 47.59 MB / 327 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004506/0.2122, allocations: 4.753 MB / 331.8 MB, free: 13.57 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.2237, allocations: 8.676 MB / 340.5 MB, free: 5.914 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001062/0.2248, allocations: 19.88 kB / 340.5 MB, free: 5.895 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001221/0.2261, allocations: 330.2 kB / 340.8 MB, free: 5.57 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.2294, allocations: 0.6793 MB / 341.5 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002186/0.2316, allocations: 462 kB / 341.9 MB, free: 4.434 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002905/0.2345, allocations: 1.611 MB / 343.5 MB, free: 2.816 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003198/0.2348, allocations: 155.6 kB / 343.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004191/0.2353, allocations: 254.6 kB / 343.9 MB, free: 2.402 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003352/0.2356, allocations: 298.1 kB / 344.2 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.569e-05/0.2357, allocations: 19.98 kB / 344.3 MB, free: 2.09 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.237, allocations: 0.5386 MB / 344.8 MB, free: 1.551 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.629e-05/0.2371, allocations: 99.23 kB / 344.9 MB, free: 1.453 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003816/0.2375, allocations: 415.2 kB / 345.3 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001404/0.2389, allocations: 1.156 MB / 346.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2389, allocations: 0 / 346.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.235e-06/0.239, allocations: 0 / 346.5 MB, free: 15.88 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.239, allocations: 0 / 346.5 MB, free: 15.88 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.001614/0.2406, allocations: 1.139 MB / 347.6 MB, free: 14.69 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.2406, allocations: 8.031 kB / 347.6 MB, free: 14.68 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.2408, allocations: 111.6 kB / 347.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.2419, allocations: 0.867 MB / 348.6 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.715e-05/0.2419, allocations: 20.5 kB / 348.6 MB, free: 13.63 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.242, allocations: 24 kB / 348.6 MB, free: 13.61 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005207/0.2425, allocations: 311.7 kB / 348.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.074e-05/0.2426, allocations: 0 / 348.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.194e-05/0.2426, allocations: 12 kB / 348.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.231e-05/0.2426, allocations: 8 kB / 348.9 MB, free: 13.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004435/0.2431, allocations: 238.1 kB / 349.2 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001705/0.2448, allocations: 1.194 MB / 350.4 MB, free: 11.77 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.2451, allocations: 194.6 kB / 350.6 MB, free: 11.57 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003261/0.2455, allocations: 230 kB / 350.8 MB, free: 11.34 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008147/0.2536, allocations: 8.573 MB / 359.4 MB, free: 1.371 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.278e-05/0.2537, allocations: 34.56 kB / 359.4 MB, free: 1.328 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 1.824e-06/0.2537, allocations: 4 kB / 359.4 MB, free: 1.324 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001675/0.2554, allocations: 0.6699 MB / 360.1 MB, free: 0.625 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.2555, allocations: 81.11 kB / 360.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009194/0.2564, allocations: 0.8026 MB / 361 MB, free: 15.71 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.2564, allocations: 29.7 kB / 361 MB, free: 15.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003467/0.2568, allocations: 444.6 kB / 361.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.758e-05/0.2568, allocations: 74.86 kB / 361.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.69e-05/0.2569, allocations: 29.7 kB / 361.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.257, allocations: 317.9 kB / 361.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001474/0.2572, allocations: 72.2 kB / 361.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001987/0.2574, allocations: 154.3 kB / 362 MB, free: 14.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003555/0.2577, allocations: 236.9 kB / 362.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.2578, allocations: 0 / 362.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006069/0.2584, allocations: 404.9 kB / 362.7 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.2584, allocations: 4 kB / 362.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.873e-05/0.2584, allocations: 20.27 kB / 362.7 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003733/0.2588, allocations: 136.8 kB / 362.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.259, allocations: 39.91 kB / 362.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006317/0.2596, allocations: 0.7189 MB / 363.6 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.2599, allocations: 31.72 kB / 363.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/0.2599, allocations: 16 kB / 363.6 MB, free: 12.9 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.0002301/0.2602, allocations: 193.8 kB / 363.8 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.2603, allocations: 102.8 kB / 363.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000825/0.2611, allocations: 411.3 kB / 364.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.2611, allocations: 4 kB / 364.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.2611, allocations: 4 kB / 364.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2612, allocations: 0 / 364.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005796/0.2617, allocations: 0.5073 MB / 364.8 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.173e-05/0.2618, allocations: 19.98 kB / 364.9 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000133/0.2619, allocations: 23.92 kB / 364.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002654/0.2622, allocations: 136.7 kB / 365 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.908e-05/0.2622, allocations: 7.984 kB / 365 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005872/0.2628, allocations: 0.7045 MB / 365.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.2628, allocations: 0 / 365.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000573/0.2634, allocations: 463.8 kB / 366.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001685/0.2636, allocations: 167.8 kB / 366.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.729e-05/0.2637, allocations: 7.984 kB / 366.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.2639, allocations: 8 kB / 366.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.471e-05/0.2639, allocations: 19.86 kB / 366.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.264, allocations: 8 kB / 366.4 MB, free: 10 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006178/0.2646, allocations: 0.5423 MB / 366.9 MB, free: 9.449 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2646, allocations: 0 / 366.9 MB, free: 9.449 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005635/0.2652, allocations: 199.8 kB / 367.1 MB, free: 9.254 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.0004797/0.2657, allocations: 291.6 kB / 367.4 MB, free: 8.961 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005592/0.2662, allocations: 292.2 kB / 367.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.2662, allocations: 4 kB / 367.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003035/0.2666, allocations: 183.3 kB / 367.9 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006042/0.2672, allocations: 128.3 kB / 368 MB, free: 8.344 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00187/0.269, allocations: 1.485 MB / 369.5 MB, free: 6.828 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004241/0.2695, allocations: 0.9451 MB / 370.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000346/0.2698, allocations: 110.7 kB / 370.5 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.171e-05/0.2699, allocations: 55.42 kB / 370.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2699, allocations: 0 / 370.6 MB, free: 5.688 MB / 302.1 MB Notification: Performance of Templates: time 0.01672/0.2867, allocations: 8.685 MB / 379.3 MB, free: 12.99 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)