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.001364/0.001364, allocations: 198.2 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 227.2 MB / 245 MB, free: 5.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008941/0.0008941, allocations: 101.4 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001884/0.0001884, allocations: 4 kB / 357.9 MB, free: 9.312 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1714, allocations: 51.48 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2612/0.4327, allocations: 121 MB / 0.5179 GB, free: 94.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002101/0.4329, allocations: 96.81 kB / 0.518 GB, free: 94.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1775/0.6104, allocations: 86.15 MB / 0.6022 GB, free: 8.164 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.6104, allocations: 0 / 0.6022 GB, free: 8.164 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002342/0.6107, allocations: 115.9 kB / 0.6023 GB, free: 8.051 MB / 378.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.008105/0.6188, allocations: 5.017 MB / 0.6072 GB, free: 2.945 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.148e-05/0.6188, allocations: 12.03 kB / 0.6072 GB, free: 2.934 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0012/0.62, allocations: 0.6069 MB / 0.6078 GB, free: 2.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004633/0.6247, allocations: 3.119 MB / 0.6108 GB, free: 15.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007113/0.6254, allocations: 433.7 kB / 0.6112 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005641/0.626, allocations: 407.8 kB / 0.6116 GB, free: 14.29 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01116/0.6372, allocations: 6.493 MB / 0.618 GB, free: 7.555 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.253e-05/0.6372, allocations: 7.984 kB / 0.618 GB, free: 7.547 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/0.6376, allocations: 168 kB / 0.6181 GB, free: 7.383 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001383/0.6378, allocations: 175.9 kB / 0.6183 GB, free: 7.211 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.6511, allocations: 6.429 MB / 0.6246 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02657/0.6777, allocations: 18.6 MB / 0.6428 GB, free: 13.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008206/0.686, allocations: 4.86 MB / 0.6475 GB, free: 9.012 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003235/0.6863, allocations: 159.2 kB / 0.6477 GB, free: 8.836 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005806/0.6921, allocations: 2.81 MB / 0.6504 GB, free: 5.953 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 4.789e-06/0.6921, allocations: 4 kB / 0.6504 GB, free: 5.949 MB / 426.7 MB Notification: Performance of matching and sorting (n=319): time 0.2264/0.9185, allocations: 23.69 MB / 0.6735 GB, free: 86.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.9187, allocations: 338.5 kB / 0.6739 GB, free: 85.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00471/0.9234, allocations: 2.657 MB / 0.6765 GB, free: 85.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004275/0.9238, allocations: 81.2 kB / 0.6765 GB, free: 85.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001381/0.9252, allocations: 1.798 MB / 0.6783 GB, free: 85.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009233/0.9262, allocations: 1.031 MB / 0.6793 GB, free: 85.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.9264, allocations: 58.41 kB / 0.6793 GB, free: 85.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.9265, allocations: 428.2 kB / 0.6798 GB, free: 84.77 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005165/0.9317, allocations: 2.43 MB / 0.6821 GB, free: 84.76 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005043/0.9367, allocations: 2.946 MB / 0.685 GB, free: 84.31 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004944/0.9417, allocations: 2.625 MB / 0.6876 GB, free: 84.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.9417, allocations: 7.75 kB / 0.6876 GB, free: 84.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.01277/0.9545, allocations: 6.85 MB / 0.6943 GB, free: 83.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.528e-05/0.9545, allocations: 44.22 kB / 0.6943 GB, free: 83.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.9546, allocations: 11.56 kB / 0.6943 GB, free: 83.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003574/0.9581, allocations: 1.908 MB / 0.6962 GB, free: 83.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001688/0.9598, allocations: 494.2 kB / 0.6967 GB, free: 83.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01876/0.9786, allocations: 17.53 MB / 0.7138 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003514/0.9821, allocations: 453.1 kB / 0.7142 GB, free: 77.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00021/0.9824, allocations: 102.4 kB / 0.7143 GB, free: 77.41 MB / 442.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 260 * 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: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {23 96} Notification: Performance of prepare postOptimizeDAE: time 0.002167/0.9845, allocations: 1.546 MB / 0.7158 GB, free: 76.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004219/0.985, allocations: 354.8 kB / 0.7162 GB, free: 76.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01308/0.9981, allocations: 7.16 MB / 0.7231 GB, free: 74.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/0.9981, allocations: 35.17 kB / 0.7232 GB, free: 74.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.9981, allocations: 3.953 kB / 0.7232 GB, free: 74.07 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.977e-05/0.9981, allocations: 14.77 kB / 0.7232 GB, free: 74.07 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01858/1.017, allocations: 12.14 MB / 0.735 GB, free: 69.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.107e-06/1.017, allocations: 7.75 kB / 0.7351 GB, free: 69.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/1.018, allocations: 369.5 kB / 0.7354 GB, free: 69.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003754/1.022, allocations: 1.969 MB / 0.7373 GB, free: 69.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002004/1.022, allocations: 71.59 kB / 0.7374 GB, free: 69.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01903/1.041, allocations: 19.08 MB / 0.756 GB, free: 57.05 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/1.041, allocations: 5.781 kB / 0.756 GB, free: 57.05 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01769/1.059, allocations: 10.63 MB / 0.7664 GB, free: 47.75 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001791/1.061, allocations: 0.9011 MB / 0.7673 GB, free: 46.95 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004194/1.061, allocations: 75.47 kB / 0.7674 GB, free: 46.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002885/1.064, allocations: 433.4 kB / 0.7678 GB, free: 46.57 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008015/1.065, allocations: 0.5227 MB / 0.7683 GB, free: 46.23 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/1.065, allocations: 92.78 kB / 0.7684 GB, free: 46.15 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002224/1.067, allocations: 2.05 MB / 0.7704 GB, free: 44.45 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.067, allocations: 0 / 0.7704 GB, free: 44.45 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002378/1.07, allocations: 1.175 MB / 0.7715 GB, free: 43.28 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 11 (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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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: 3 * 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: 2 {(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {23 96} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005748/1.07, allocations: 432.9 kB / 0.7719 GB, free: 42.95 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01225/1.082, allocations: 7.002 MB / 0.7788 GB, free: 36.96 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.082, allocations: 3.609 kB / 0.7788 GB, free: 36.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008454/1.091, allocations: 5.795 MB / 0.7844 GB, free: 31.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/1.094, allocations: 0.948 MB / 0.7854 GB, free: 31.16 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01597/1.11, allocations: 12.41 MB / 0.7975 GB, free: 20.16 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00244/1.112, allocations: 3.343 MB / 0.8008 GB, free: 17.63 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002249/1.114, allocations: 0.7693 MB / 0.8015 GB, free: 17.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000599/1.115, allocations: 197.9 kB / 0.8017 GB, free: 16.92 MB / 442.7 MB Notification: Performance of SimCode: time 6.42e-07/1.115, allocations: 0 / 0.8017 GB, free: 16.92 MB / 442.7 MB Notification: Performance of Templates: time 0.2745/1.39, allocations: 74.18 MB / 0.8741 GB, free: 87.01 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)