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.001583/0.001583, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008273/0.0008274, allocations: 96.62 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.566e-05/1.569e-05, allocations: 4 kB / 343.7 MB, free: 8.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08804/0.08807, allocations: 51.47 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3069/0.395, allocations: 120.2 MB / 0.5033 GB, free: 5.371 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002473/0.3953, allocations: 85.08 kB / 0.5034 GB, free: 5.328 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4017/0.797, allocations: 85.23 MB / 0.5866 GB, free: 73.95 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.7971, allocations: 6.844 kB / 0.5866 GB, free: 73.95 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002878/0.7974, allocations: 124 kB / 0.5868 GB, free: 73.94 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.009241/0.8066, allocations: 4.47 MB / 0.5911 GB, free: 72.43 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.8067, allocations: 13.22 kB / 0.5911 GB, free: 72.43 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001768/0.8084, allocations: 0.6141 MB / 0.5917 GB, free: 72.16 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005148/0.8136, allocations: 3.096 MB / 0.5948 GB, free: 71.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006451/0.8143, allocations: 295.4 kB / 0.595 GB, free: 71.47 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005663/0.8148, allocations: 247.6 kB / 0.5953 GB, free: 71.47 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006879/0.8217, allocations: 5.092 MB / 0.6003 GB, free: 71.45 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007123/0.8289, allocations: 5.331 MB / 0.6055 GB, free: 70.76 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.063e-05/0.829, allocations: 11.22 kB / 0.6055 GB, free: 70.76 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003606/0.8294, allocations: 6.562 kB / 0.6055 GB, free: 70.76 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/0.8295, allocations: 178.5 kB / 0.6056 GB, free: 70.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02807/0.8576, allocations: 17.79 MB / 0.623 GB, free: 66.77 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004847/0.8624, allocations: 4.179 MB / 0.6271 GB, free: 64.92 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003264/0.8657, allocations: 2.8 MB / 0.6298 GB, free: 63.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003549/0.8661, allocations: 158.4 kB / 0.63 GB, free: 63.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002419/0.8685, allocations: 2.179 MB / 0.6321 GB, free: 62.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 4.288e-06/0.8685, allocations: 0 / 0.6321 GB, free: 62.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=309): time 0.01387/0.8824, allocations: 9.954 MB / 0.6418 GB, free: 58.79 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.906e-05/0.8825, allocations: 334 kB / 0.6421 GB, free: 58.43 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002682/0.8852, allocations: 2.206 MB / 0.6443 GB, free: 57.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00019/0.8854, allocations: 35.61 kB / 0.6443 GB, free: 57.56 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001138/0.8866, allocations: 1.798 MB / 0.6461 GB, free: 56.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005713/0.8871, allocations: 0.9472 MB / 0.647 GB, free: 55.47 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001748/0.8873, allocations: 3.609 kB / 0.647 GB, free: 55.47 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.8875, allocations: 426.5 kB / 0.6474 GB, free: 55.11 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001913/0.8894, allocations: 1.767 MB / 0.6492 GB, free: 54.43 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002127/0.8915, allocations: 2.256 MB / 0.6514 GB, free: 53.24 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002063/0.8936, allocations: 1.933 MB / 0.6532 GB, free: 52.5 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.8936, allocations: 3.344 kB / 0.6532 GB, free: 52.5 MB / 442.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.006385/0.9, allocations: 5.232 MB / 0.6584 GB, free: 50.58 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.099e-05/0.9, allocations: 32.58 kB / 0.6584 GB, free: 50.55 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.9001, allocations: 14.27 kB / 0.6584 GB, free: 50.55 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002918/0.903, allocations: 1.618 MB / 0.66 GB, free: 50.03 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001915/0.9049, allocations: 0.5085 MB / 0.6605 GB, free: 50.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01473/0.9197, allocations: 15.22 MB / 0.6753 GB, free: 41.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/0.9235, allocations: 390.2 kB / 0.6757 GB, free: 41.25 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002622/0.9238, allocations: 102.2 kB / 0.6758 GB, free: 41.22 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.0006421/0.9244, allocations: 249.7 kB / 0.676 GB, free: 41.05 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004905/0.9249, allocations: 317.5 kB / 0.6764 GB, free: 40.89 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006887/0.9318, allocations: 5.269 MB / 0.6815 GB, free: 38.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.58e-05/0.9318, allocations: 28.22 kB / 0.6815 GB, free: 38.88 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.584e-06/0.9319, allocations: 3.906 kB / 0.6815 GB, free: 38.88 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.592e-05/0.9319, allocations: 18.16 kB / 0.6815 GB, free: 38.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/0.9448, allocations: 9.945 MB / 0.6913 GB, free: 34.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.9449, allocations: 8 kB / 0.6913 GB, free: 34.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001646/0.9465, allocations: 381.2 kB / 0.6916 GB, free: 34.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003215/0.9498, allocations: 1.69 MB / 0.6933 GB, free: 33.46 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002131/0.95, allocations: 27.45 kB / 0.6933 GB, free: 33.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01569/0.9657, allocations: 16.7 MB / 0.7096 GB, free: 18.26 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/0.9657, allocations: 7.938 kB / 0.7096 GB, free: 18.25 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009854/0.9756, allocations: 8.336 MB / 0.7178 GB, free: 10.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001712/0.9773, allocations: 0.8471 MB / 0.7186 GB, free: 9.922 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007929/0.9781, allocations: 27.94 kB / 0.7186 GB, free: 9.898 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003219/0.9814, allocations: 373.5 kB / 0.719 GB, free: 9.652 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008463/0.9822, allocations: 0.5271 MB / 0.7195 GB, free: 9.293 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002031/0.9824, allocations: 83.17 kB / 0.7196 GB, free: 9.219 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002416/0.9848, allocations: 1.669 MB / 0.7212 GB, free: 7.738 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9849, allocations: 0 / 0.7212 GB, free: 7.738 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003051/0.9879, allocations: 0.9842 MB / 0.7222 GB, free: 6.758 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.0006257/0.9886, allocations: 377 kB / 0.7225 GB, free: 6.441 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006334/0.9949, allocations: 5.471 MB / 0.7279 GB, free: 1.438 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.9949, allocations: 0 / 0.7279 GB, free: 1.438 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01364/1.009, allocations: 5.663 MB / 0.7334 GB, free: 14.38 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003667/1.012, allocations: 0.7826 MB / 0.7342 GB, free: 13.79 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01704/1.029, allocations: 8.467 MB / 0.7424 GB, free: 6.363 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003749/1.033, allocations: 3.316 MB / 0.7457 GB, free: 3.848 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002505/1.036, allocations: 0.7398 MB / 0.7464 GB, free: 3.332 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000822/1.036, allocations: 186.8 kB / 0.7466 GB, free: 3.164 MB / 458.7 MB Notification: Performance of SimCode: time 7.31e-07/1.036, allocations: 0 / 0.7466 GB, free: 3.164 MB / 458.7 MB Notification: Performance of Templates: time 0.2908/1.327, allocations: 60.06 MB / 0.8052 GB, free: 75.38 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)