Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001523/0.001523, allocations: 171.8 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008681/0.0008681, allocations: 94.61 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.048e-05/3.051e-05, allocations: 4 kB / 322.5 MB, free: 17.35 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09771/0.09776, allocations: 47.58 MB / 370 MB, free: 1.703 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3204/0.4182, allocations: 119.8 MB / 489.9 MB, free: 5.871 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.4185, allocations: 92.03 kB / 489.9 MB, free: 5.824 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4126/0.8311, allocations: 85.01 MB / 0.5615 GB, free: 94.54 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.8311, allocations: 0 / 0.5615 GB, free: 94.54 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003519/0.8315, allocations: 120 kB / 0.5616 GB, free: 94.52 MB / 410.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.01086/0.8424, allocations: 4.451 MB / 0.5659 GB, free: 92.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.8424, allocations: 7.688 kB / 0.5659 GB, free: 92.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001947/0.8444, allocations: 0.5652 MB / 0.5665 GB, free: 92.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005584/0.85, allocations: 3.098 MB / 0.5695 GB, free: 91.86 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000642/0.8506, allocations: 432.4 kB / 0.5699 GB, free: 91.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007656/0.8514, allocations: 412.2 kB / 0.5703 GB, free: 91.8 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009781/0.8612, allocations: 5.927 MB / 0.5761 GB, free: 89.7 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.8613, allocations: 11.41 kB / 0.5761 GB, free: 89.69 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004599/0.8618, allocations: 176.8 kB / 0.5763 GB, free: 89.56 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001304/0.8619, allocations: 169.7 kB / 0.5765 GB, free: 89.55 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008103/0.87, allocations: 5.349 MB / 0.5817 GB, free: 87.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02786/0.8979, allocations: 18.61 MB / 0.5999 GB, free: 78.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00467/0.9027, allocations: 4.295 MB / 0.604 GB, free: 75.17 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003176/0.9059, allocations: 2.894 MB / 0.6069 GB, free: 72.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003574/0.9062, allocations: 156.7 kB / 0.607 GB, free: 72.37 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002688/0.9089, allocations: 2.282 MB / 0.6093 GB, free: 70.42 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 4.629e-06/0.909, allocations: 3.938 kB / 0.6093 GB, free: 70.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=309): time 0.01833/0.9273, allocations: 11.29 MB / 0.6203 GB, free: 60.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.9274, allocations: 328.9 kB / 0.6206 GB, free: 60.09 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003614/0.9311, allocations: 2.627 MB / 0.6232 GB, free: 57.75 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004882/0.9316, allocations: 81.7 kB / 0.6232 GB, free: 57.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001229/0.9328, allocations: 1.79 MB / 0.625 GB, free: 56.06 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008385/0.9337, allocations: 0.9977 MB / 0.626 GB, free: 55.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.9338, allocations: 64 kB / 0.626 GB, free: 55.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.934, allocations: 429.1 kB / 0.6264 GB, free: 54.71 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/0.9363, allocations: 1.829 MB / 0.6282 GB, free: 52.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00242/0.9387, allocations: 2.324 MB / 0.6305 GB, free: 50.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002347/0.941, allocations: 2.034 MB / 0.6325 GB, free: 48.41 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.9411, allocations: 0 / 0.6325 GB, free: 48.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.007299/0.9484, allocations: 5.577 MB / 0.6379 GB, free: 42.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.9484, allocations: 33.7 kB / 0.6379 GB, free: 42.73 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.9485, allocations: 12 kB / 0.638 GB, free: 42.72 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003164/0.9516, allocations: 1.659 MB / 0.6396 GB, free: 41.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00218/0.9538, allocations: 0.4993 MB / 0.6401 GB, free: 40.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0161/0.9699, allocations: 15.69 MB / 0.6554 GB, free: 24.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004101/0.9741, allocations: 447.6 kB / 0.6558 GB, free: 24.02 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005589/0.9747, allocations: 100 kB / 0.6559 GB, free: 23.93 MB / 410.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.0008322/0.9755, allocations: 349.5 kB / 0.6562 GB, free: 23.58 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008503/0.9764, allocations: 347.8 kB / 0.6566 GB, free: 23.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007957/0.9843, allocations: 5.623 MB / 0.6621 GB, free: 17.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-05/0.9844, allocations: 35.89 kB / 0.6621 GB, free: 17.51 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.9844, allocations: 4 kB / 0.6621 GB, free: 17.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.167e-05/0.9844, allocations: 15.95 kB / 0.6621 GB, free: 17.49 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01578/1, allocations: 10.81 MB / 0.6727 GB, free: 6.547 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/1, allocations: 4 kB / 0.6727 GB, free: 6.543 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/1.002, allocations: 387.8 kB / 0.6731 GB, free: 6.164 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003301/1.005, allocations: 1.697 MB / 0.6747 GB, free: 4.461 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003373/1.006, allocations: 71.97 kB / 0.6748 GB, free: 4.391 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01955/1.025, allocations: 17.22 MB / 0.6916 GB, free: 2.617 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/1.025, allocations: 11.92 kB / 0.6916 GB, free: 2.605 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2232/1.248, allocations: 8.69 MB / 0.7001 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00277/1.251, allocations: 0.8867 MB / 0.701 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006899/1.252, allocations: 71.67 kB / 0.701 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003382/1.255, allocations: 423.1 kB / 0.7014 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001261/1.257, allocations: 0.5153 MB / 0.7019 GB, free: 100.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002374/1.257, allocations: 89.38 kB / 0.702 GB, free: 100.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003768/1.261, allocations: 2.022 MB / 0.704 GB, free: 99.95 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.11e-07/1.261, allocations: 0 / 0.704 GB, free: 99.95 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004332/1.265, allocations: 1.127 MB / 0.7051 GB, free: 99.95 MB / 426.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.0009406/1.266, allocations: 421.6 kB / 0.7055 GB, free: 99.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008433/1.274, allocations: 5.686 MB / 0.711 GB, free: 99.09 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.274, allocations: 3 kB / 0.7111 GB, free: 99.09 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006733/1.281, allocations: 5.206 MB / 0.7161 GB, free: 98.35 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00433/1.285, allocations: 0.944 MB / 0.7171 GB, free: 98.32 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01451/1.3, allocations: 8.718 MB / 0.7256 GB, free: 95.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002924/1.303, allocations: 3.318 MB / 0.7288 GB, free: 94.54 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002701/1.306, allocations: 0.7648 MB / 0.7296 GB, free: 94.47 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006347/1.306, allocations: 204.5 kB / 0.7298 GB, free: 94.46 MB / 426.7 MB Notification: Performance of SimCode: time 1.233e-06/1.306, allocations: 0 / 0.7298 GB, free: 94.46 MB / 426.7 MB Notification: Performance of Templates: time 0.09605/1.402, allocations: 70.8 MB / 0.7989 GB, free: 48.91 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe 2>&1)