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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002897/0.002897, allocations: 177.8 kB / 7.45 MB, free: 2.469 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.188/1.188, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001627/0.001627, allocations: 108.4 kB / 217.7 MB, free: 8.227 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 6.583e-06/6.623e-06, allocations: 0 / 261.7 MB, free: 26.65 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08096/0.08099, allocations: 38.76 MB / 300.5 MB, free: 3.906 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2559/0.337, allocations: 79.73 MB / 380.2 MB, free: 5.164 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002026/0.3372, allocations: 71.92 kB / 380.3 MB, free: 5.129 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.07834/0.4156, allocations: 32.78 MB / 413.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.4156, allocations: 12 kB / 413.1 MB, free: 10.29 MB / 298.7 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.002284/0.4179, allocations: 1.051 MB / 414.1 MB, free: 9.195 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/0.418, allocations: 8.031 kB / 414.2 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003184/0.4183, allocations: 114.7 kB / 414.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.4199, allocations: 0.7545 MB / 415 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.4199, allocations: 4 kB / 415 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.069e-05/0.42, allocations: 16 kB / 415 MB, free: 8.246 MB / 298.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004334/0.4204, allocations: 209.1 kB / 415.2 MB, free: 8.039 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004765/0.4209, allocations: 258.9 kB / 415.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.4209, allocations: 0 / 415.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.294e-05/0.421, allocations: 3.906 kB / 415.5 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.421, allocations: 8 kB / 415.5 MB, free: 7.762 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002285/0.4233, allocations: 1.148 MB / 416.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.4236, allocations: 145.6 kB / 416.8 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003092/0.4239, allocations: 197.4 kB / 417 MB, free: 6.207 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0125/0.4365, allocations: 10.72 MB / 427.7 MB, free: 9.645 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.4365, allocations: 38.5 kB / 427.7 MB, free: 9.598 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 2.635e-06/0.4365, allocations: 0 / 427.7 MB, free: 9.598 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0008591/0.4374, allocations: 334.4 kB / 428.1 MB, free: 9.262 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.917e-05/0.4375, allocations: 77.11 kB / 428.1 MB, free: 9.168 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.4385, allocations: 0.6089 MB / 428.8 MB, free: 8.543 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.479e-05/0.4386, allocations: 29.64 kB / 428.8 MB, free: 8.508 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001845/0.4388, allocations: 240.3 kB / 429 MB, free: 8.27 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.978e-05/0.4388, allocations: 78.75 kB / 429.1 MB, free: 8.191 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.358e-05/0.4389, allocations: 0 / 429.1 MB, free: 8.191 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.439, allocations: 318 kB / 429.4 MB, free: 7.875 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001138/0.4391, allocations: 56.23 kB / 429.5 MB, free: 7.82 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.4393, allocations: 129.7 kB / 429.6 MB, free: 7.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002701/0.4396, allocations: 88.47 kB / 429.7 MB, free: 7.574 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.4396, allocations: 0 / 429.7 MB, free: 7.574 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006565/0.4402, allocations: 357.1 kB / 430 MB, free: 7.215 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.4403, allocations: 4 kB / 430 MB, free: 7.211 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.414e-05/0.4403, allocations: 16.28 kB / 430 MB, free: 7.195 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003744/0.4407, allocations: 132.8 kB / 430.2 MB, free: 7.062 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001889/0.4409, allocations: 39.91 kB / 430.2 MB, free: 7.023 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007626/0.4417, allocations: 0.7279 MB / 430.9 MB, free: 6.27 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003869/0.4421, allocations: 27.67 kB / 431 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.491e-05/0.4421, allocations: 23.94 kB / 431 MB, free: 6.219 MB / 314.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: J1.Dinternal:VARIABLE(unit = "V" ) type: Real 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 () * 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.0001705/0.4423, allocations: 105.9 kB / 431.1 MB, free: 6.109 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001733/0.4425, allocations: 102.8 kB / 431.2 MB, free: 6.008 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.4436, allocations: 447.1 kB / 431.6 MB, free: 5.562 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.4436, allocations: 4 kB / 431.6 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4436, allocations: 0 / 431.6 MB, free: 5.559 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.4437, allocations: 7.922 kB / 431.6 MB, free: 5.551 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000692/0.4444, allocations: 475 kB / 432.1 MB, free: 5.051 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/0.4444, allocations: 8 kB / 432.1 MB, free: 5.043 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001258/0.4445, allocations: 19.98 kB / 432.1 MB, free: 5.023 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003028/0.4448, allocations: 136.8 kB / 432.3 MB, free: 4.887 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.292e-05/0.4449, allocations: 4 kB / 432.3 MB, free: 4.883 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007137/0.4456, allocations: 0.7319 MB / 433 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.4456, allocations: 0 / 433 MB, free: 4.125 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006002/0.4462, allocations: 436.9 kB / 433.4 MB, free: 3.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002758/0.4465, allocations: 175.9 kB / 433.6 MB, free: 3.488 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.4466, allocations: 4 kB / 433.6 MB, free: 3.484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002681/0.4469, allocations: 7.984 kB / 433.6 MB, free: 3.477 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.478e-05/0.447, allocations: 11.98 kB / 433.6 MB, free: 3.465 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.422e-05/0.447, allocations: 12 kB / 433.6 MB, free: 3.453 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0006908/0.4477, allocations: 474.9 kB / 434.1 MB, free: 2.98 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008811/0.4486, allocations: 203.7 kB / 434.3 MB, free: 2.781 MB / 314.7 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 () * 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.000934/0.4496, allocations: 336.6 kB / 434.6 MB, free: 2.441 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005897/0.4502, allocations: 255.6 kB / 434.9 MB, free: 2.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4502, allocations: 0 / 434.9 MB, free: 2.18 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003096/0.4505, allocations: 163.6 kB / 435 MB, free: 2.008 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005858/0.4511, allocations: 121.1 kB / 435.2 MB, free: 1.891 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.4532, allocations: 0.8227 MB / 436 MB, free: 1.035 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008385/0.4541, allocations: 1.011 MB / 437 MB, free: 15.99 MB / 330.7 MB Notification: Performance of SimCode: time 4.1e-07/0.4541, allocations: 0 / 437 MB, free: 15.99 MB / 330.7 MB Notification: Performance of Templates: time 0.01903/0.4731, allocations: 8.232 MB / 445.2 MB, free: 7.75 MB / 330.7 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)