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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001465, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000822/0.000822, allocations: 91.64 kB / 292.1 MB, free: 5.941 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.58e-05/2.582e-05, allocations: 4 kB / 350.5 MB, free: 2.539 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08657, allocations: 51.48 MB / 402 MB, free: 15 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3118/0.3984, allocations: 120.9 MB / 0.5107 GB, free: 0.957 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.3986, allocations: 88.02 kB / 0.5108 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4116/0.8102, allocations: 86.31 MB / 0.5951 GB, free: 78.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.8103, allocations: 4 kB / 0.5951 GB, free: 78.57 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003654/0.8106, allocations: 123.4 kB / 0.5952 GB, free: 78.56 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.01154/0.8222, allocations: 4.475 MB / 0.5995 GB, free: 76.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.8222, allocations: 10.25 kB / 0.5996 GB, free: 76.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002513/0.8248, allocations: 0.6105 MB / 0.6002 GB, free: 76.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006618/0.8314, allocations: 3.097 MB / 0.6032 GB, free: 75.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007569/0.8322, allocations: 427.6 kB / 0.6036 GB, free: 75.89 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001138/0.8333, allocations: 404.9 kB / 0.604 GB, free: 75.89 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01284/0.8462, allocations: 5.924 MB / 0.6098 GB, free: 75.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.8463, allocations: 10.2 kB / 0.6098 GB, free: 75.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005153/0.8469, allocations: 175 kB / 0.6099 GB, free: 75.18 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001782/0.847, allocations: 173 kB / 0.6101 GB, free: 75.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009711/0.8568, allocations: 5.33 MB / 0.6153 GB, free: 75.14 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03183/0.8886, allocations: 18.6 MB / 0.6335 GB, free: 68.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004672/0.8933, allocations: 4.284 MB / 0.6377 GB, free: 66.19 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003218/0.8966, allocations: 2.898 MB / 0.6405 GB, free: 65.13 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003895/0.897, allocations: 153.2 kB / 0.6406 GB, free: 65.03 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002922/0.8999, allocations: 2.279 MB / 0.6429 GB, free: 64.09 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 4.969e-06/0.9, allocations: 7.375 kB / 0.6429 GB, free: 64.08 MB / 442.7 MB Notification: Performance of matching and sorting (n=309): time 0.01857/0.9185, allocations: 11.26 MB / 0.6539 GB, free: 59.57 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.9187, allocations: 330.5 kB / 0.6542 GB, free: 59.21 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003715/0.9224, allocations: 2.624 MB / 0.6567 GB, free: 58.25 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003439/0.9228, allocations: 84.61 kB / 0.6568 GB, free: 58.18 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.924, allocations: 1.794 MB / 0.6586 GB, free: 56.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007267/0.9248, allocations: 1.007 MB / 0.6596 GB, free: 56.05 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.925, allocations: 55.22 kB / 0.6596 GB, free: 56.01 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.9251, allocations: 427 kB / 0.66 GB, free: 55.65 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002254/0.9274, allocations: 1.825 MB / 0.6618 GB, free: 54.97 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002551/0.9299, allocations: 2.33 MB / 0.6641 GB, free: 53.77 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002546/0.9325, allocations: 2.027 MB / 0.666 GB, free: 52.98 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.9325, allocations: 0 / 0.666 GB, free: 52.98 MB / 442.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.007966/0.9405, allocations: 5.574 MB / 0.6715 GB, free: 50.82 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.156e-05/0.9406, allocations: 35.86 kB / 0.6715 GB, free: 50.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.9406, allocations: 13.06 kB / 0.6715 GB, free: 50.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003246/0.9438, allocations: 1.654 MB / 0.6732 GB, free: 50.26 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002201/0.9461, allocations: 0.5063 MB / 0.6737 GB, free: 50.21 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01684/0.9629, allocations: 15.67 MB / 0.689 GB, free: 39 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004315/0.9673, allocations: 448 kB / 0.6894 GB, free: 38.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004341/0.9677, allocations: 103.5 kB / 0.6895 GB, free: 38.59 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] 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.0007581/0.9685, allocations: 340.2 kB / 0.6898 GB, free: 38.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006043/0.9691, allocations: 343.9 kB / 0.6901 GB, free: 37.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008009/0.9771, allocations: 5.62 MB / 0.6956 GB, free: 33.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/0.9772, allocations: 32 kB / 0.6956 GB, free: 33.04 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.9772, allocations: 4 kB / 0.6957 GB, free: 33.04 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.79e-05/0.9772, allocations: 20.12 kB / 0.6957 GB, free: 33.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01594/0.9932, allocations: 10.8 MB / 0.7062 GB, free: 24.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.9932, allocations: 10.81 kB / 0.7062 GB, free: 24.08 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001665/0.9949, allocations: 387.6 kB / 0.7066 GB, free: 23.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003535/0.9984, allocations: 1.705 MB / 0.7083 GB, free: 22.39 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003034/0.9987, allocations: 74.45 kB / 0.7083 GB, free: 22.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.017/1.016, allocations: 17.19 MB / 0.7251 GB, free: 6.602 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.016, allocations: 7.938 kB / 0.7251 GB, free: 6.594 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01345/1.029, allocations: 8.899 MB / 0.7338 GB, free: 15.05 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002907/1.032, allocations: 0.8793 MB / 0.7347 GB, free: 14.15 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001015/1.033, allocations: 75.94 kB / 0.7347 GB, free: 14.08 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004014/1.037, allocations: 427.5 kB / 0.7352 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001334/1.039, allocations: 0.5133 MB / 0.7357 GB, free: 13.15 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002664/1.039, allocations: 91.97 kB / 0.7357 GB, free: 13.06 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003547/1.042, allocations: 2.025 MB / 0.7377 GB, free: 11.03 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/1.042, allocations: 0 / 0.7377 GB, free: 11.03 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003811/1.046, allocations: 1.125 MB / 0.7388 GB, free: 9.906 MB / 458.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.0007852/1.047, allocations: 432.5 kB / 0.7392 GB, free: 9.52 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008303/1.055, allocations: 5.686 MB / 0.7448 GB, free: 3.73 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/1.055, allocations: 0 / 0.7448 GB, free: 3.73 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2127/1.268, allocations: 5.19 MB / 0.7499 GB, free: 84.5 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004908/1.273, allocations: 0.9406 MB / 0.7508 GB, free: 84.49 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01699/1.29, allocations: 8.671 MB / 0.7592 GB, free: 82.96 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002801/1.293, allocations: 3.318 MB / 0.7625 GB, free: 82.14 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002666/1.296, allocations: 0.7693 MB / 0.7632 GB, free: 82.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006825/1.296, allocations: 194.3 kB / 0.7634 GB, free: 82.07 MB / 458.7 MB Notification: Performance of SimCode: time 1.472e-06/1.296, allocations: 0 / 0.7634 GB, free: 82.07 MB / 458.7 MB Notification: Performance of Templates: time 0.1001/1.396, allocations: 70.85 MB / 0.8326 GB, free: 70.11 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)