Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001466/0.00147, allocations: 115.1 kB / 17.07 MB, free: 5.969 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.001543/0.001543, allocations: 198.9 kB / 18.01 MB, free: 5.055 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.36/1.36, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.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.001631/0.001631, allocations: 55.91 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09084/0.09248, allocations: 46.61 MB / 374.5 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.1789/0.2715, allocations: 5.139 MB / 379.6 MB, free: 9.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.282, allocations: 8.67 MB / 388.3 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007241/0.2827, allocations: 38.19 kB / 388.3 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001042/0.2838, allocations: 383 kB / 388.7 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003278/0.2871, allocations: 0.8138 MB / 389.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001565/0.2887, allocations: 0.5755 MB / 390.1 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002103/0.2908, allocations: 1.643 MB / 391.7 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.291, allocations: 169.1 kB / 391.9 MB, free: 3.75 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00029/0.2913, allocations: 283.5 kB / 392.2 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003269/0.2917, allocations: 318.3 kB / 392.5 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.044e-05/0.2917, allocations: 33.78 kB / 392.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001103/0.2928, allocations: 0.5581 MB / 393.1 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.119e-05/0.2929, allocations: 99.75 kB / 393.2 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002656/0.2932, allocations: 408 kB / 393.6 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.2944, allocations: 1.201 MB / 394.8 MB, free: 2.512 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.2944, allocations: 0.6562 kB / 394.8 MB, free: 2.512 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2944, allocations: 4 kB / 394.8 MB, free: 2.508 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.2944, allocations: 1.406 kB / 394.8 MB, free: 2.508 MB / 318.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.001613/0.296, allocations: 1.269 MB / 396 MB, free: 1.594 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.2961, allocations: 9.375 kB / 396.1 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001204/0.2962, allocations: 112.7 kB / 396.2 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001101/0.2973, allocations: 0.8518 MB / 397 MB, free: 1.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.831e-05/0.2973, allocations: 30.09 kB / 397 MB, free: 1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.2974, allocations: 24.14 kB / 397.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000471/0.2979, allocations: 306 kB / 397.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.2979, allocations: 0.7969 kB / 397.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.2979, allocations: 6.812 kB / 397.4 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.2979, allocations: 9.859 kB / 397.4 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003742/0.2983, allocations: 235.3 kB / 397.6 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.2999, allocations: 1.194 MB / 398.8 MB, free: 12 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003764/0.3003, allocations: 199.9 kB / 399 MB, free: 15.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003283/0.3006, allocations: 231 kB / 399.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008761/0.3094, allocations: 8.556 MB / 407.8 MB, free: 7.965 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/0.3094, allocations: 37.19 kB / 407.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.545e-06/0.3095, allocations: 0 / 407.8 MB, free: 7.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001584/0.311, allocations: 0.6737 MB / 408.5 MB, free: 7.508 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.3111, allocations: 79.27 kB / 408.6 MB, free: 7.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.3121, allocations: 0.7941 MB / 409.4 MB, free: 6.961 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.3121, allocations: 30.86 kB / 409.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003634/0.3125, allocations: 443 kB / 409.8 MB, free: 6.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.09e-05/0.3126, allocations: 83.81 kB / 409.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.683e-05/0.3127, allocations: 58.62 kB / 410 MB, free: 6.426 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.3128, allocations: 320.5 kB / 410.3 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.313, allocations: 69.2 kB / 410.3 MB, free: 6.078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002028/0.3132, allocations: 148 kB / 410.5 MB, free: 5.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003552/0.3135, allocations: 229.7 kB / 410.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.3136, allocations: 0 / 410.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006154/0.3142, allocations: 401.9 kB / 411.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.3142, allocations: 6.25 kB / 411.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.413e-05/0.3143, allocations: 16.95 kB / 411.1 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003996/0.3147, allocations: 141.8 kB / 411.3 MB, free: 5.516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001655/0.3148, allocations: 41.47 kB / 411.3 MB, free: 5.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006238/0.3155, allocations: 0.7004 MB / 412 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.3157, allocations: 31.42 kB / 412 MB, free: 4.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.289e-05/0.3158, allocations: 15.53 kB / 412.1 MB, free: 4.867 MB / 334.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.0002166/0.316, allocations: 198.8 kB / 412.3 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.3161, allocations: 102.1 kB / 412.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007195/0.3169, allocations: 403.2 kB / 412.7 MB, free: 4.422 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3169, allocations: 10.23 kB / 412.8 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3169, allocations: 0 / 412.8 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.3169, allocations: 1.188 kB / 412.8 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006013/0.3175, allocations: 0.5069 MB / 413.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-05/0.3175, allocations: 11.69 kB / 413.3 MB, free: 4.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.3177, allocations: 24.34 kB / 413.3 MB, free: 3.992 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003039/0.318, allocations: 153.8 kB / 413.4 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.318, allocations: 4.438 kB / 413.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006213/0.3186, allocations: 0.6992 MB / 414.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.3186, allocations: 0 / 414.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005656/0.3192, allocations: 460.5 kB / 414.6 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.3194, allocations: 167.2 kB / 414.8 MB, free: 2.855 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.532e-05/0.3195, allocations: 12.11 kB / 414.8 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001972/0.3197, allocations: 7.531 kB / 414.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.3198, allocations: 16.33 kB / 414.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.3198, allocations: 8.469 kB / 414.8 MB, free: 2.836 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005828/0.3204, allocations: 0.5402 MB / 415.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3204, allocations: 1.219 kB / 415.3 MB, free: 2.516 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006049/0.321, allocations: 192.8 kB / 415.5 MB, free: 2.484 MB / 334.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.0005001/0.3215, allocations: 307.5 kB / 415.8 MB, free: 2.297 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005198/0.322, allocations: 276.8 kB / 416.1 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.3221, allocations: 0.5625 kB / 416.1 MB, free: 2.145 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002834/0.3223, allocations: 181.9 kB / 416.3 MB, free: 2.027 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005778/0.3229, allocations: 136.6 kB / 416.4 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001618/0.3246, allocations: 1.221 MB / 417.6 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004617/0.325, allocations: 0.9383 MB / 418.6 MB, free: 424 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002484/0.3253, allocations: 105.7 kB / 418.7 MB, free: 368 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.476e-05/0.3254, allocations: 53.38 kB / 418.7 MB, free: 356 kB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3254, allocations: 5.438 kB / 418.7 MB, free: 352 kB / 334.1 MB Notification: Performance of Templates: time 0.01558/0.341, allocations: 9.312 MB / 428.1 MB, free: 7.969 MB / 350.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1)