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.001104/0.001104, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001425/0.001426, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004483/0.0004483, allocations: 14.66 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3036, allocations: 47.58 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004956/0.3087, allocations: 4.467 MB / 330.9 MB, free: 13.87 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01058/0.3193, allocations: 7.886 MB / 338.8 MB, free: 7.133 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009337/0.3203, allocations: 23.81 kB / 338.8 MB, free: 7.109 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.3213, allocations: 298.4 kB / 339.1 MB, free: 6.816 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002611/0.324, allocations: 0.6443 MB / 339.8 MB, free: 6.168 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001468/0.3254, allocations: 430 kB / 340.2 MB, free: 5.746 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002644/0.3281, allocations: 1.548 MB / 341.7 MB, free: 4.191 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002892/0.3284, allocations: 147 kB / 341.9 MB, free: 4.035 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003352/0.3287, allocations: 242.8 kB / 342.1 MB, free: 3.797 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003243/0.3291, allocations: 290.2 kB / 342.4 MB, free: 3.512 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.675e-05/0.3291, allocations: 16 kB / 342.4 MB, free: 3.496 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001334/0.3305, allocations: 0.5035 MB / 342.9 MB, free: 2.992 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.768e-05/0.3306, allocations: 79.45 kB / 343 MB, free: 2.914 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001838/0.3308, allocations: 205.1 kB / 343.2 MB, free: 2.707 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009707/0.3317, allocations: 0.857 MB / 344.1 MB, free: 1.848 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3318, allocations: 0 / 344.1 MB, free: 1.848 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.3318, allocations: 0 / 344.1 MB, free: 1.848 MB / 270.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.3318, allocations: 0 / 344.1 MB, free: 1.848 MB / 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.0017/0.3335, allocations: 1.155 MB / 345.2 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.3336, allocations: 12.02 kB / 345.2 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001472/0.3337, allocations: 118.7 kB / 345.3 MB, free: 0.5117 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.3349, allocations: 0.809 MB / 346.2 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.3349, allocations: 20.56 kB / 346.2 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.883e-05/0.335, allocations: 24 kB / 346.2 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005448/0.3355, allocations: 303.7 kB / 346.5 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.3356, allocations: 0 / 346.5 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.025e-05/0.3356, allocations: 12 kB / 346.5 MB, free: 15.29 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.423e-05/0.3356, allocations: 11.98 kB / 346.5 MB, free: 15.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004138/0.336, allocations: 242.1 kB / 346.8 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.3377, allocations: 1.179 MB / 347.9 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.3381, allocations: 202.4 kB / 348.1 MB, free: 13.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003245/0.3385, allocations: 230 kB / 348.4 MB, free: 13.35 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008556/0.347, allocations: 8.586 MB / 356.9 MB, free: 3.371 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.893e-05/0.3471, allocations: 30.56 kB / 357 MB, free: 3.332 MB / 286.1 MB Notification: Performance of pre-optimization done (n=23): time 2.786e-06/0.3471, allocations: 0 / 357 MB, free: 3.332 MB / 286.1 MB Notification: Performance of matching and sorting (n=23): time 0.001742/0.3489, allocations: 0.6621 MB / 357.6 MB, free: 2.641 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.349, allocations: 85.09 kB / 357.7 MB, free: 2.539 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009618/0.3499, allocations: 0.7909 MB / 358.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.35, allocations: 29.7 kB / 358.5 MB, free: 1.695 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003853/0.3504, allocations: 440.7 kB / 359 MB, free: 1.262 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.512e-05/0.3504, allocations: 78.81 kB / 359 MB, free: 1.184 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.429e-05/0.3505, allocations: 4 kB / 359.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3506, allocations: 321.9 kB / 359.4 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001391/0.3508, allocations: 72.41 kB / 359.4 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002044/0.351, allocations: 157.8 kB / 359.6 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000173/0.3512, allocations: 84.62 kB / 359.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3512, allocations: 0 / 359.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006418/0.3518, allocations: 416.8 kB / 360.1 MB, free: 104 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.3518, allocations: 7.938 kB / 360.1 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.281e-05/0.3519, allocations: 16 kB / 360.1 MB, free: 80 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003921/0.3523, allocations: 148.9 kB / 360.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.3525, allocations: 39.91 kB / 360.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007147/0.3532, allocations: 0.6994 MB / 361 MB, free: 15.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002617/0.3535, allocations: 27.72 kB / 361 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.3535, allocations: 16 kB / 361 MB, free: 15.12 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002993/0.3538, allocations: 206 kB / 361.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.354, allocations: 102.8 kB / 361.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008772/0.3548, allocations: 403.5 kB / 361.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.092e-05/0.3549, allocations: 4 kB / 361.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.3549, allocations: 3.938 kB / 361.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.3549, allocations: 3.984 kB / 361.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000683/0.3556, allocations: 0.5034 MB / 362.2 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-05/0.3556, allocations: 16 kB / 362.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001084/0.3557, allocations: 15.98 kB / 362.3 MB, free: 13.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002748/0.356, allocations: 140.8 kB / 362.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.077e-05/0.356, allocations: 8 kB / 362.4 MB, free: 13.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00062/0.3567, allocations: 0.7006 MB / 363.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.3567, allocations: 4.062 kB / 363.1 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005883/0.3573, allocations: 456.8 kB / 363.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001994/0.3575, allocations: 175.8 kB / 363.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.651e-05/0.3576, allocations: 4 kB / 363.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.3578, allocations: 8 kB / 363.8 MB, free: 12.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.846e-05/0.3578, allocations: 19.97 kB / 363.8 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.3579, allocations: 8 kB / 363.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006933/0.3586, allocations: 0.5344 MB / 364.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3586, allocations: 0 / 364.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007253/0.3593, allocations: 195.8 kB / 364.5 MB, free: 11.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005903/0.3599, allocations: 267.5 kB / 364.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006913/0.3606, allocations: 295.2 kB / 365.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3606, allocations: 0 / 365.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002984/0.3609, allocations: 183.3 kB / 365.2 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007906/0.3617, allocations: 140.7 kB / 365.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.3641, allocations: 1.387 MB / 366.8 MB, free: 9.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005932/0.3647, allocations: 0.9452 MB / 367.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000407/0.3651, allocations: 110.6 kB / 367.8 MB, free: 8.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.382e-05/0.3652, allocations: 55.42 kB / 367.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3652, allocations: 0 / 367.9 MB, free: 8.039 MB / 302.1 MB Notification: Performance of Templates: time 0.01854/0.3837, allocations: 8.455 MB / 376.3 MB, free: 15.57 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)