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.0056/0.0056, allocations: 101 kB / 15.73 MB, free: 5.586 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.001186/0.001186, allocations: 187.8 kB / 16.67 MB, free: 5.523 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.424/1.424, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001206/0.001206, allocations: 51.92 kB / 326.5 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09229, allocations: 46.61 MB / 373.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.1764/0.2687, allocations: 5.144 MB / 378.3 MB, free: 9.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009096/0.2778, allocations: 8.669 MB / 387 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007212/0.2786, allocations: 37.88 kB / 387 MB, free: 5.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001044/0.2797, allocations: 389.3 kB / 387.4 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003155/0.2829, allocations: 0.8286 MB / 388.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002101/0.285, allocations: 0.5753 MB / 388.8 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002692/0.2877, allocations: 1.653 MB / 390.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003038/0.288, allocations: 164.1 kB / 390.6 MB, free: 3.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004535/0.2885, allocations: 283.2 kB / 390.9 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003661/0.2889, allocations: 319 kB / 391.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.799e-05/0.2889, allocations: 29.75 kB / 391.2 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/0.2904, allocations: 0.562 MB / 391.8 MB, free: 3.312 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.319e-05/0.2905, allocations: 104 kB / 391.9 MB, free: 3.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003097/0.2908, allocations: 403.9 kB / 392.3 MB, free: 2.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001463/0.2923, allocations: 1.197 MB / 393.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2923, allocations: 0.6094 kB / 393.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2923, allocations: 0 / 393.5 MB, free: 2.496 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.2924, allocations: 4 kB / 393.5 MB, free: 2.492 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.001793/0.2942, allocations: 1.274 MB / 394.7 MB, free: 1.574 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.2942, allocations: 13.69 kB / 394.8 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.2943, allocations: 112.5 kB / 394.9 MB, free: 1.516 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001118/0.2955, allocations: 0.8517 MB / 395.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.2955, allocations: 13.56 kB / 395.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.915e-05/0.2956, allocations: 28.16 kB / 395.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004833/0.296, allocations: 311.2 kB / 396.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.2961, allocations: 0 / 396.1 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.574e-05/0.2961, allocations: 9.375 kB / 396.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.2961, allocations: 12.61 kB / 396.1 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003882/0.2965, allocations: 234.5 kB / 396.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.2981, allocations: 1.186 MB / 397.5 MB, free: 0 / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003937/0.2985, allocations: 206.5 kB / 397.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003097/0.2988, allocations: 226.2 kB / 397.9 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008663/0.3075, allocations: 8.56 MB / 406.5 MB, free: 7.938 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.3075, allocations: 35.66 kB / 406.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.484e-06/0.3075, allocations: 1.875 kB / 406.5 MB, free: 7.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001562/0.3091, allocations: 0.6698 MB / 407.2 MB, free: 7.484 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.3092, allocations: 83.36 kB / 407.3 MB, free: 7.387 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009635/0.3101, allocations: 0.7945 MB / 408.1 MB, free: 6.934 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.715e-05/0.3102, allocations: 26.77 kB / 408.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003399/0.3105, allocations: 442.3 kB / 408.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.235e-05/0.3106, allocations: 89.47 kB / 408.6 MB, free: 6.438 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.155e-05/0.3107, allocations: 57.41 kB / 408.7 MB, free: 6.398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.3108, allocations: 321.2 kB / 409 MB, free: 6.082 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.311, allocations: 68.64 kB / 409.1 MB, free: 6.051 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000219/0.3112, allocations: 147.4 kB / 409.2 MB, free: 5.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004192/0.3117, allocations: 225.6 kB / 409.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3117, allocations: 1.344 kB / 409.4 MB, free: 5.754 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007675/0.3125, allocations: 404.1 kB / 409.8 MB, free: 5.543 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.3125, allocations: 6.625 kB / 409.8 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.38e-05/0.3126, allocations: 17.77 kB / 409.8 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004363/0.313, allocations: 140.6 kB / 410 MB, free: 5.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.3132, allocations: 41.25 kB / 410 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006852/0.3139, allocations: 0.6971 MB / 410.7 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003406/0.3142, allocations: 31.73 kB / 410.7 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.402e-05/0.3143, allocations: 17.78 kB / 410.8 MB, free: 4.84 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.0002995/0.3146, allocations: 197.9 kB / 411 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.3147, allocations: 102.3 kB / 411.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008021/0.3155, allocations: 412 kB / 411.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.443e-06/0.3156, allocations: 1.281 kB / 411.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3156, allocations: 1.281 kB / 411.5 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.3156, allocations: 6.562 kB / 411.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007066/0.3163, allocations: 0.5075 MB / 412 MB, free: 3.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.513e-05/0.3163, allocations: 19.3 kB / 412 MB, free: 3.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.3164, allocations: 20.3 kB / 412 MB, free: 3.957 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002765/0.3167, allocations: 137.4 kB / 412.1 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/0.3168, allocations: 12.36 kB / 412.2 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006089/0.3174, allocations: 0.7011 MB / 412.9 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3174, allocations: 0 / 412.9 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.318, allocations: 457.4 kB / 413.3 MB, free: 2.988 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/0.3183, allocations: 176 kB / 413.5 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.163e-05/0.3183, allocations: 5.156 kB / 413.5 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.3186, allocations: 6.344 kB / 413.5 MB, free: 2.816 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.3186, allocations: 17.08 kB / 413.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2e-05/0.3186, allocations: 7.875 kB / 413.5 MB, free: 2.809 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006496/0.3193, allocations: 0.5419 MB / 414.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3193, allocations: 0 / 414.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006833/0.32, allocations: 189.6 kB / 414.2 MB, free: 2.461 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.0005949/0.3206, allocations: 310.2 kB / 414.5 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006428/0.3212, allocations: 276.9 kB / 414.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3213, allocations: 1.062 kB / 414.8 MB, free: 2.117 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002807/0.3215, allocations: 178.2 kB / 415 MB, free: 2.004 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006329/0.3222, allocations: 140.2 kB / 415.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.3241, allocations: 1.22 MB / 416.3 MB, free: 1.195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005124/0.3246, allocations: 0.9338 MB / 417.3 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002802/0.3249, allocations: 109.1 kB / 417.4 MB, free: 340 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.157e-05/0.325, allocations: 57.77 kB / 417.4 MB, free: 324 kB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.325, allocations: 1.344 kB / 417.4 MB, free: 324 kB / 334.1 MB Notification: Performance of Templates: time 0.02261/0.3477, allocations: 9.095 MB / 426.5 MB, free: 8.156 MB / 350.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)