Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [: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.003045/0.003045, allocations: 180.7 kB / 7.448 MB, free: 2.52 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.279/1.279, allocations: 170.6 MB / 178.4 MB, free: 15.35 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.0017/0.0017, allocations: 119.8 kB / 217.7 MB, free: 8.117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.644e-06/7.664e-06, allocations: 0 / 261.7 MB, free: 26.61 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09741/0.09743, allocations: 38.77 MB / 300.5 MB, free: 3.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2972/0.3947, allocations: 68.94 MB / 369.5 MB, free: 15.47 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/0.395, allocations: 65.53 kB / 369.5 MB, free: 15.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.01956/0.4146, allocations: 6.709 MB / 376.2 MB, free: 9.777 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.243e-05/0.4147, allocations: 15.98 kB / 376.2 MB, free: 9.762 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001378/0.4161, allocations: 0.7228 MB / 377 MB, free: 9.008 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.4161, allocations: 8.031 kB / 377 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.4163, allocations: 55.34 kB / 377 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005239/0.4169, allocations: 324.3 kB / 377.3 MB, free: 8.617 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.4169, allocations: 15.98 kB / 377.4 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.954e-05/0.417, allocations: 24 kB / 377.4 MB, free: 8.578 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005332/0.4175, allocations: 258.6 kB / 377.6 MB, free: 8.422 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005928/0.4181, allocations: 348.2 kB / 378 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.4182, allocations: 4 kB / 378 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.476e-05/0.4182, allocations: 0 / 378 MB, free: 8.141 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.319e-05/0.4182, allocations: 8 kB / 378 MB, free: 8.133 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002463/0.4207, allocations: 1.58 MB / 379.6 MB, free: 6.715 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003844/0.4211, allocations: 261.9 kB / 379.8 MB, free: 6.535 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002605/0.4214, allocations: 169.6 kB / 380 MB, free: 6.43 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.4214, allocations: 4.281 kB / 380 MB, free: 6.426 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003578/0.4218, allocations: 258.7 kB / 380.2 MB, free: 6.199 MB / 266.7 MB Notification: Performance of pre-optimization done (n=38): time 2.314e-06/0.4218, allocations: 3.938 kB / 380.2 MB, free: 6.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=38): time 0.0008806/0.4227, allocations: 405 kB / 380.6 MB, free: 5.867 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001271/0.4228, allocations: 212.8 kB / 380.8 MB, free: 5.613 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.4231, allocations: 259.4 kB / 381.1 MB, free: 5.402 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.4231, allocations: 29.7 kB / 381.1 MB, free: 5.367 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001257/0.4233, allocations: 177.6 kB / 381.3 MB, free: 5.207 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.799e-05/0.4234, allocations: 110.8 kB / 381.4 MB, free: 5.113 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.755e-05/0.4234, allocations: 0 / 381.4 MB, free: 5.113 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.4235, allocations: 344.3 kB / 381.7 MB, free: 4.781 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001859/0.4237, allocations: 109 kB / 381.9 MB, free: 4.719 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.424, allocations: 166.6 kB / 382 MB, free: 4.578 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.4243, allocations: 111 kB / 382.1 MB, free: 4.512 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.4243, allocations: 0 / 382.1 MB, free: 4.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0007228/0.425, allocations: 405.2 kB / 382.5 MB, free: 4.195 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.4251, allocations: 8.062 kB / 382.5 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.922e-06/0.4251, allocations: 0 / 382.5 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000535/0.4256, allocations: 149.5 kB / 382.7 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002189/0.4258, allocations: 35.92 kB / 382.7 MB, free: 4.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004615/0.4305, allocations: 5.332 MB / 388 MB, free: 14.55 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003777/0.4309, allocations: 47.73 kB / 388.1 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.684e-05/0.4309, allocations: 13.5 kB / 388.1 MB, free: 14.5 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealGTOThyristor2.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealThyristor2.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealGTOThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition2,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,$PRE.booleanStep1.y,booleanStep1.y,$PRE.booleanStep1.nextTime,booleanStep1.nextTime,$PRE.booleanStep1.index,booleanStep1.index,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003134/0.4312, allocations: 156.2 kB / 388.3 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001023/0.4314, allocations: 43.53 kB / 388.3 MB, free: 14.29 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.4315, allocations: 39.25 kB / 388.3 MB, free: 14.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.4315, allocations: 8.031 kB / 388.3 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4315, allocations: 0 / 388.3 MB, free: 14.26 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.4315, allocations: 11.89 kB / 388.4 MB, free: 14.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006072/0.4321, allocations: 375.3 kB / 388.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.4322, allocations: 0 / 388.7 MB, free: 13.92 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001558/0.4323, allocations: 30.53 kB / 388.8 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000496/0.4328, allocations: 147 kB / 388.9 MB, free: 13.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.278e-05/0.4329, allocations: 10.48 kB / 388.9 MB, free: 13.76 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005088/0.438, allocations: 5.313 MB / 394.2 MB, free: 8.289 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.324e-06/0.438, allocations: 3.938 kB / 394.2 MB, free: 8.285 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009369/0.439, allocations: 439 kB / 394.7 MB, free: 7.914 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001978/0.4392, allocations: 154.3 kB / 394.8 MB, free: 7.758 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.965e-05/0.4393, allocations: 11.44 kB / 394.8 MB, free: 7.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.4395, allocations: 31.98 kB / 394.8 MB, free: 7.719 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/0.4397, allocations: 38.94 kB / 394.9 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.786e-05/0.4397, allocations: 10.31 kB / 394.9 MB, free: 7.676 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0002058/0.4399, allocations: 197.5 kB / 395.1 MB, free: 7.523 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006587/0.4406, allocations: 139.8 kB / 395.2 MB, free: 7.387 MB / 282.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: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulsStart) * Number of discrete states: 6 (IdealThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003341/0.4409, allocations: 135.5 kB / 395.4 MB, free: 7.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001037/0.442, allocations: 0.7414 MB / 396.1 MB, free: 6.551 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.442, allocations: 0 / 396.1 MB, free: 6.551 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006158/0.4426, allocations: 0.6018 MB / 396.7 MB, free: 5.973 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003621/0.443, allocations: 51.55 kB / 396.7 MB, free: 5.93 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.4442, allocations: 488.5 kB / 397.2 MB, free: 5.492 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005191/0.4447, allocations: 0.8429 MB / 398.1 MB, free: 4.625 MB / 282.7 MB Notification: Performance of SimCode: time 3.9e-07/0.4447, allocations: 0 / 398.1 MB, free: 4.625 MB / 282.7 MB Notification: Performance of Templates: time 0.01363/0.4584, allocations: 6.64 MB / 404.7 MB, free: 13.99 MB / 298.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1)