Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.6619/0.6619, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001683/0.001683, allocations: 160 kB / 143.7 MB, free: 4.867 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.362e-06/6.402e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03945/0.03947, allocations: 25.16 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.1745, allocations: 35.79 MB / 234.4 MB, free: 4.352 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001807/0.1747, allocations: 65.2 kB / 234.5 MB, free: 4.352 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.01214/0.1869, allocations: 3.92 MB / 238.4 MB, free: 4.043 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.562e-05/0.1869, allocations: 3.844 kB / 238.4 MB, free: 4.043 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001054/0.188, allocations: 0.5567 MB / 239 MB, free: 3.625 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.188, allocations: 8.266 kB / 239 MB, free: 3.625 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.307e-05/0.1881, allocations: 30.84 kB / 239 MB, free: 3.609 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000321/0.1885, allocations: 255 kB / 239.2 MB, free: 3.383 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.1885, allocations: 3.875 kB / 239.2 MB, free: 3.383 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.138e-05/0.1885, allocations: 11.5 kB / 239.3 MB, free: 3.383 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003161/0.1889, allocations: 142.6 kB / 239.4 MB, free: 3.383 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.1892, allocations: 165.3 kB / 239.6 MB, free: 3.348 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.1892, allocations: 2.844 kB / 239.6 MB, free: 3.348 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.805e-05/0.1892, allocations: 4.578 kB / 239.6 MB, free: 3.348 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.1892, allocations: 3.906 kB / 239.6 MB, free: 3.348 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00177/0.191, allocations: 0.8434 MB / 240.4 MB, free: 2.984 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004479/0.1915, allocations: 120.8 kB / 240.5 MB, free: 2.965 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002814/0.1918, allocations: 145.6 kB / 240.7 MB, free: 2.949 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.111e-05/0.1918, allocations: 8.844 kB / 240.7 MB, free: 2.945 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002081/0.192, allocations: 138.3 kB / 240.8 MB, free: 2.875 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 1.874e-06/0.192, allocations: 0 / 240.8 MB, free: 2.875 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.0003985/0.1924, allocations: 177.6 kB / 241 MB, free: 2.828 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.636e-05/0.1925, allocations: 107.2 kB / 241.1 MB, free: 2.703 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001635/0.1927, allocations: 191 kB / 241.3 MB, free: 2.602 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.299e-05/0.1927, allocations: 29.58 kB / 241.3 MB, free: 2.57 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.175e-05/0.1928, allocations: 130.8 kB / 241.4 MB, free: 2.465 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.854e-05/0.1928, allocations: 62.66 kB / 241.5 MB, free: 2.426 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.563e-05/0.1929, allocations: 0.75 kB / 241.5 MB, free: 2.426 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.32e-05/0.1929, allocations: 333.8 kB / 241.8 MB, free: 2.113 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001063/0.1931, allocations: 54.67 kB / 241.9 MB, free: 2.109 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001217/0.1932, allocations: 99.12 kB / 242 MB, free: 2.066 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001262/0.1933, allocations: 57.62 kB / 242 MB, free: 2.066 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1933, allocations: 0 / 242 MB, free: 2.066 MB / 170.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0003369/0.1937, allocations: 210.6 kB / 242.2 MB, free: 2.012 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1937, allocations: 3.875 kB / 242.2 MB, free: 2.012 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.1937, allocations: 7.875 kB / 242.2 MB, free: 2.004 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.1937, allocations: 7.969 kB / 242.3 MB, free: 2 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002557/0.1963, allocations: 356.8 kB / 242.6 MB, free: 1.973 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004897/0.2012, allocations: 3.009 MB / 245.6 MB, free: 15.33 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004351/0.2016, allocations: 60.45 kB / 245.7 MB, free: 15.31 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.645e-05/0.2017, allocations: 8.969 kB / 245.7 MB, free: 15.31 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real thyristor_v4_1.vControl:VARIABLE(start = 0.0 ) type: Real pulseCurrent.signalSource.T0:DISCRETE(start = pulseCurrent.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: thyristor_v4_1.vAK:VARIABLE() "voltage between anode and cathode" type: Real Warning: Iteration variables with default zero start attribute in equation system w/o analytic Jacobian: thyristor_v4_1.vGK:VARIABLE() "voltage between gate and cathode" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.pulseCurrent.signalSource.T0,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000236/0.2019, allocations: 116.8 kB / 245.8 MB, free: 15.2 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.263e-05/0.202, allocations: 24.22 kB / 245.8 MB, free: 15.19 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.826e-05/0.2021, allocations: 26.58 kB / 245.8 MB, free: 15.18 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.558e-06/0.2021, allocations: 3.875 kB / 245.8 MB, free: 15.18 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2021, allocations: 0.5625 kB / 245.9 MB, free: 15.18 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.2021, allocations: 0.5625 kB / 245.9 MB, free: 15.18 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.2033, allocations: 0.7024 MB / 246.6 MB, free: 14.76 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.2033, allocations: 0 / 246.6 MB, free: 14.76 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002562/0.2059, allocations: 346.8 kB / 246.9 MB, free: 14.65 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.971e-06/0.2059, allocations: 4 kB / 246.9 MB, free: 14.65 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.206, allocations: 7.859 kB / 246.9 MB, free: 14.64 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004808/0.2108, allocations: 3.012 MB / 249.9 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.2108, allocations: 0 / 249.9 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005285/0.2113, allocations: 400.8 kB / 250.3 MB, free: 11.65 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.2115, allocations: 116.5 kB / 250.4 MB, free: 11.54 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.013e-05/0.2115, allocations: 0 / 250.4 MB, free: 11.54 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000399/0.2119, allocations: 54.92 kB / 250.5 MB, free: 11.52 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/0.212, allocations: 22.81 kB / 250.5 MB, free: 11.5 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.212, allocations: 3.906 kB / 250.5 MB, free: 11.5 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001428/0.2122, allocations: 152.2 kB / 250.6 MB, free: 11.42 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0004905/0.2127, allocations: 69.94 kB / 250.7 MB, free: 11.41 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 2 ($whenCondition1,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000198/0.2129, allocations: 106.5 kB / 250.8 MB, free: 11.31 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.003467/0.2164, allocations: 0.5341 MB / 251.4 MB, free: 11.18 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.2164, allocations: 0 / 251.4 MB, free: 11.18 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003227/0.2196, allocations: 479.6 kB / 251.8 MB, free: 11.04 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003825/0.22, allocations: 41.7 kB / 251.9 MB, free: 11.02 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.2215, allocations: 404 kB / 252.3 MB, free: 10.78 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004562/0.222, allocations: 0.7789 MB / 253 MB, free: 10.04 MB / 186.7 MB Notification: Performance of SimCode: time 5.91e-07/0.222, allocations: 4 kB / 253 MB, free: 10.03 MB / 186.7 MB Notification: Performance of Templates: time 0.007136/0.2291, allocations: 2.815 MB / 255.9 MB, free: 8.633 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile (rm -f Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1)