Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|capacitor.v|inductor.inductor.2..i|inductor.inductor.3..i|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|capacitor.v|inductor.inductor.2..i|inductor.inductor.3..i|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive") [: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 trunk/package.mo): time 0.001027/0.001027, allocations: 200.3 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.166/1.166, allocations: 225.5 MB / 234.4 MB, free: 3.406 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009085/0.0009085, allocations: 95.77 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.821e-06/5.851e-06, allocations: 0 / 343.1 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08312/0.08314, allocations: 51.47 MB / 394.6 MB, free: 5.207 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2454/0.3286, allocations: 120.2 MB / 0.5027 GB, free: 5.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002212/0.3289, allocations: 88.2 kB / 0.5028 GB, free: 5.367 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.3591/0.688, allocations: 85.07 MB / 0.5859 GB, free: 75.61 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004001/0.6884, allocations: 118.2 kB / 0.586 GB, free: 75.6 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1064 * Number of variables: 1064 Notification: Performance of Generate backend data structure: time 0.01042/0.6988, allocations: 4.475 MB / 0.5904 GB, free: 74.08 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.6989, allocations: 11.59 kB / 0.5904 GB, free: 74.08 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00167/0.7005, allocations: 0.6155 MB / 0.591 GB, free: 73.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00518/0.7057, allocations: 3.127 MB / 0.594 GB, free: 73.17 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006507/0.7064, allocations: 308.4 kB / 0.5943 GB, free: 73.12 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004986/0.7069, allocations: 238 kB / 0.5946 GB, free: 73.12 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007694/0.7146, allocations: 5.213 MB / 0.5996 GB, free: 73.09 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008305/0.7229, allocations: 5.423 MB / 0.6049 GB, free: 72.41 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001/0.7231, allocations: 13.31 kB / 0.605 GB, free: 72.41 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003719/0.7234, allocations: 3.969 kB / 0.605 GB, free: 72.41 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.7236, allocations: 181.6 kB / 0.6051 GB, free: 72.4 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03042/0.754, allocations: 18 MB / 0.6227 GB, free: 66.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002582/0.7566, allocations: 2.219 MB / 0.6249 GB, free: 66.12 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002953/0.7596, allocations: 2.831 MB / 0.6276 GB, free: 65.14 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003443/0.76, allocations: 150.8 kB / 0.6278 GB, free: 65.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002453/0.7624, allocations: 2.241 MB / 0.63 GB, free: 64.13 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 3.878e-06/0.7624, allocations: 0 / 0.63 GB, free: 64.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=309): time 0.01612/0.7786, allocations: 10.11 MB / 0.6399 GB, free: 60.06 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/0.7787, allocations: 332.5 kB / 0.6402 GB, free: 59.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003753/0.7825, allocations: 2.25 MB / 0.6424 GB, free: 58.86 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002077/0.7827, allocations: 36.23 kB / 0.6424 GB, free: 58.83 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009464/0.7837, allocations: 1.332 MB / 0.6437 GB, free: 57.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006283/0.7843, allocations: 0.9566 MB / 0.6446 GB, free: 57.17 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001701/0.7845, allocations: 0 / 0.6446 GB, free: 57.17 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.7846, allocations: 426.3 kB / 0.645 GB, free: 56.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002273/0.7869, allocations: 1.825 MB / 0.6468 GB, free: 56.14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002484/0.7894, allocations: 2.315 MB / 0.6491 GB, free: 54.95 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002442/0.7919, allocations: 2.008 MB / 0.651 GB, free: 54.21 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/0.7919, allocations: 3.562 kB / 0.651 GB, free: 54.21 MB / 442.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.007545/0.7994, allocations: 5.394 MB / 0.6563 GB, free: 52.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.7995, allocations: 5.781 kB / 0.6563 GB, free: 52.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.754e-05/0.7995, allocations: 12.72 kB / 0.6563 GB, free: 52.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003238/0.8027, allocations: 1.669 MB / 0.658 GB, free: 51.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001993/0.8047, allocations: 0.4989 MB / 0.6585 GB, free: 51.74 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0142/0.8189, allocations: 14.12 MB / 0.6722 GB, free: 43.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003608/0.8226, allocations: 385.5 kB / 0.6726 GB, free: 43.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002429/0.8228, allocations: 101.3 kB / 0.6727 GB, free: 43.79 MB / 442.7 MB Warning: Assuming fixed start value for the following 1 variables: inductor.inductor[3].i:VARIABLE(start = 0.0 unit = "A" ) "Current flowing from pin p to pin n" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: capacitor.n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 52 ($PRE.pwm.svPWM.firstTrigger,pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiRef,pwm.svPWM.phiRef,$PRE.pwm.svPWM.uRef,pwm.svPWM.uRef,$whenCondition2,$whenCondition1,pwm.svPWM.sampleTrigger,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,inverter.andCondition_p[1].y,inverter.andCondition_p[2].y,inverter.andCondition_p[3].y,inverter.andCondition_n[1].y,inverter.andCondition_n[2].y,inverter.andCondition_n[3].y,inverter.fire_n[1],inverter.fire_n[2],inverter.fire_n[3],inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,$PRE.pwm.svPWM.ka,pwm.svPWM.ka,$PRE.pwm.svPWM.kb,pwm.svPWM.kb,$PRE.pwm.svPWM.ta,pwm.svPWM.ta,$PRE.pwm.svPWM.tb,pwm.svPWM.tb,$PRE.pwm.svPWM.t0,pwm.svPWM.t0,$PRE.pwm.svPWM.T0,pwm.svPWM.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (271): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 1 {19 72} Notification: Performance of prepare postOptimizeDAE: time 0.0005676/0.8234, allocations: 243.6 kB / 0.6729 GB, free: 43.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004303/0.8238, allocations: 321.9 kB / 0.6732 GB, free: 43.46 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006838/0.8307, allocations: 5.361 MB / 0.6785 GB, free: 41.48 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.8307, allocations: 27.94 kB / 0.6785 GB, free: 41.48 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.8307, allocations: 3.219 kB / 0.6785 GB, free: 41.48 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.177e-05/0.8308, allocations: 15 kB / 0.6785 GB, free: 41.48 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01308/0.8438, allocations: 10.11 MB / 0.6884 GB, free: 37.11 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.8439, allocations: 7.938 kB / 0.6884 GB, free: 37.11 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/0.8456, allocations: 384.4 kB / 0.6888 GB, free: 36.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00327/0.8489, allocations: 1.712 MB / 0.6904 GB, free: 35.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/0.8491, allocations: 39.06 kB / 0.6905 GB, free: 35.38 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/0.8641, allocations: 15.56 MB / 0.7057 GB, free: 21.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.8641, allocations: 4 kB / 0.7057 GB, free: 21.05 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009873/0.874, allocations: 8.558 MB / 0.714 GB, free: 13.26 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001666/0.8756, allocations: 0.8645 MB / 0.7149 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005613/0.8762, allocations: 23.22 kB / 0.7149 GB, free: 12.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00309/0.8793, allocations: 385 kB / 0.7153 GB, free: 12.19 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008213/0.8801, allocations: 447 kB / 0.7157 GB, free: 11.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002186/0.8804, allocations: 85.53 kB / 0.7158 GB, free: 11.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002105/0.8825, allocations: 1.698 MB / 0.7174 GB, free: 10.31 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002586/0.8851, allocations: 0.9514 MB / 0.7184 GB, free: 9.359 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 12 (inductor.inductor[1].i,inductor.inductor[2].i,inductor.inductor[3].i,capacitor.v,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,loadTorque.phi,vfController.x) * Number of discrete variables: 41 (pwm.svPWM.sampleTrigger,$whenCondition2,$whenCondition1,rectifier.diode_p.idealDiode[1].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[3].off,inverter.andCondition_p[1].y,inverter.andCondition_p[2].y,inverter.andCondition_p[3].y,inverter.andCondition_n[1].y,inverter.andCondition_n[2].y,inverter.andCondition_n[3].y,inverter.fire_n[1],inverter.fire_n[2],inverter.fire_n[3],inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,pwm.svPWM.firstTrigger,pwm.svPWM.uRef,pwm.svPWM.phiRef,pwm.svPWM.phiPos,pwm.svPWM.ka,pwm.svPWM.kb,pwm.svPWM.phiSec,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.t0,pwm.svPWM.T0) * Number of discrete states: 11 (pwm.svPWM.T0,pwm.svPWM.t0,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.phiSec,pwm.svPWM.kb,pwm.svPWM.ka,pwm.svPWM.phiPos,pwm.svPWM.phiRef,pwm.svPWM.uRef,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {19 72} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006649/0.8857, allocations: 383.3 kB / 0.7187 GB, free: 9.043 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006431/0.8922, allocations: 5.299 MB / 0.7239 GB, free: 4.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.8922, allocations: 0 / 0.7239 GB, free: 4.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005932/0.8981, allocations: 4.828 MB / 0.7286 GB, free: 15.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002985/0.9011, allocations: 0.7323 MB / 0.7293 GB, free: 15.15 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01664/0.9178, allocations: 8.697 MB / 0.7378 GB, free: 7.488 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003742/0.9215, allocations: 3.458 MB / 0.7412 GB, free: 4.82 MB / 458.7 MB Notification: Performance of SimCode: time 4.1e-07/0.9216, allocations: 4 kB / 0.7412 GB, free: 4.816 MB / 458.7 MB Notification: Performance of Templates: time 0.2193/1.141, allocations: 63.64 MB / 0.8034 GB, free: 124.4 MB / 458.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe 2>&1)