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.001561/0.001561, allocations: 196.8 kB / 18.11 MB, free: 3.617 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.5 MB / 245.4 MB, free: 6.523 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007665/0.0007665, allocations: 104 kB / 297.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002245/0.0002246, allocations: 4 kB / 358.1 MB, free: 10.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2334/0.2336, allocations: 51.29 MB / 409.4 MB, free: 27.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4099/0.6436, allocations: 121.1 MB / 0.5181 GB, free: 95.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003345/0.644, allocations: 90.61 kB / 0.5181 GB, free: 95.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2769/0.9209, allocations: 86.1 MB / 0.6022 GB, free: 9.742 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.9209, allocations: 0 / 0.6022 GB, free: 9.742 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000543/0.9215, allocations: 119.9 kB / 0.6023 GB, free: 9.625 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.01686/0.9383, allocations: 4.963 MB / 0.6072 GB, free: 4.574 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.9384, allocations: 8.031 kB / 0.6072 GB, free: 4.566 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002984/0.9414, allocations: 0.6155 MB / 0.6078 GB, free: 3.945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009702/0.9511, allocations: 3.223 MB / 0.611 GB, free: 0.6484 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001043/0.9522, allocations: 430.2 kB / 0.6114 GB, free: 224 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001566/0.9538, allocations: 408.7 kB / 0.6118 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02142/0.9752, allocations: 6.528 MB / 0.6181 GB, free: 9.047 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001342/0.9754, allocations: 11.94 kB / 0.6181 GB, free: 9.035 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006562/0.9761, allocations: 176 kB / 0.6183 GB, free: 8.863 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002517/0.9763, allocations: 175.9 kB / 0.6185 GB, free: 8.691 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02363/1, allocations: 6.425 MB / 0.6247 GB, free: 2.258 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04964/1.05, allocations: 18.61 MB / 0.6429 GB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01411/1.064, allocations: 4.849 MB / 0.6477 GB, free: 10.49 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01114/1.075, allocations: 3.424 MB / 0.651 GB, free: 7.059 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005813/1.076, allocations: 159.2 kB / 0.6512 GB, free: 6.883 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009819/1.085, allocations: 2.81 MB / 0.6539 GB, free: 4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 9.087e-06/1.086, allocations: 0 / 0.6539 GB, free: 4 MB / 426.7 MB Notification: Performance of matching and sorting (n=319): time 0.3714/1.457, allocations: 23.75 MB / 0.6771 GB, free: 87.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001324/1.457, allocations: 338.9 kB / 0.6774 GB, free: 87.64 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006099/1.463, allocations: 2.975 MB / 0.6803 GB, free: 87.41 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005942/1.464, allocations: 87.94 kB / 0.6804 GB, free: 87.38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001942/1.466, allocations: 1.8 MB / 0.6822 GB, free: 87.28 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001264/1.467, allocations: 1.025 MB / 0.6832 GB, free: 86.76 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002856/1.467, allocations: 59.5 kB / 0.6832 GB, free: 86.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/1.468, allocations: 428.8 kB / 0.6836 GB, free: 86.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008247/1.476, allocations: 2.418 MB / 0.686 GB, free: 86.44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008654/1.484, allocations: 2.944 MB / 0.6889 GB, free: 85.99 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01707/1.502, allocations: 5.302 MB / 0.694 GB, free: 85.49 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.989e-05/1.502, allocations: 3.406 kB / 0.694 GB, free: 85.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.02221/1.524, allocations: 6.824 MB / 0.7007 GB, free: 85.12 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.024e-05/1.524, allocations: 35.92 kB / 0.7007 GB, free: 85.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.311e-05/1.524, allocations: 10.75 kB / 0.7008 GB, free: 85.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006371/1.53, allocations: 1.91 MB / 0.7026 GB, free: 85.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003136/1.534, allocations: 0.4926 MB / 0.7031 GB, free: 85.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03189/1.565, allocations: 16.89 MB / 0.7196 GB, free: 77.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006227/1.572, allocations: 463.1 kB / 0.72 GB, free: 77.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007238/1.573, allocations: 101.9 kB / 0.7201 GB, free: 77.57 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.004109/1.577, allocations: 1.544 MB / 0.7216 GB, free: 76.85 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001183/1.578, allocations: 350.2 kB / 0.722 GB, free: 76.67 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02161/1.599, allocations: 7.151 MB / 0.729 GB, free: 74.24 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.242e-05/1.6, allocations: 27.5 kB / 0.729 GB, free: 74.24 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/1.6, allocations: 6.25 kB / 0.729 GB, free: 74.24 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.8e-05/1.6, allocations: 16.78 kB / 0.729 GB, free: 74.24 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03124/1.631, allocations: 12.19 MB / 0.7409 GB, free: 69.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-05/1.631, allocations: 4.969 kB / 0.7409 GB, free: 69.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/1.633, allocations: 356.5 kB / 0.7413 GB, free: 69.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00666/1.64, allocations: 1.974 MB / 0.7432 GB, free: 69.15 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005817/1.641, allocations: 76.05 kB / 0.7433 GB, free: 69.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03258/1.673, allocations: 18.4 MB / 0.7612 GB, free: 54.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.673, allocations: 8 kB / 0.7612 GB, free: 54.97 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02974/1.703, allocations: 10.31 MB / 0.7713 GB, free: 46.06 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003121/1.706, allocations: 0.9099 MB / 0.7722 GB, free: 45.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000998/1.707, allocations: 71.7 kB / 0.7723 GB, free: 45.18 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005085/1.712, allocations: 432.8 kB / 0.7727 GB, free: 44.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001623/1.714, allocations: 0.5233 MB / 0.7732 GB, free: 44.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003449/1.714, allocations: 90.92 kB / 0.7733 GB, free: 44.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004629/1.719, allocations: 2.06 MB / 0.7753 GB, free: 42.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.52e-07/1.719, allocations: 0 / 0.7753 GB, free: 42.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005549/1.725, allocations: 1.172 MB / 0.7764 GB, free: 41.59 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.00103/1.726, allocations: 443.1 kB / 0.7769 GB, free: 41.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02002/1.746, allocations: 6.96 MB / 0.7836 GB, free: 35.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.226e-06/1.746, allocations: 4 kB / 0.7837 GB, free: 35.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0145/1.76, allocations: 5.773 MB / 0.7893 GB, free: 30.25 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009615/1.77, allocations: 0.9698 MB / 0.7902 GB, free: 29.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03058/1.8, allocations: 12.35 MB / 0.8023 GB, free: 18.54 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004387/1.805, allocations: 3.258 MB / 0.8055 GB, free: 16.02 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004059/1.809, allocations: 0.7456 MB / 0.8062 GB, free: 15.49 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001036/1.81, allocations: 200.7 kB / 0.8064 GB, free: 15.31 MB / 442.7 MB Notification: Performance of SimCode: time 6.91e-07/1.81, allocations: 0 / 0.8064 GB, free: 15.31 MB / 442.7 MB Notification: Performance of Templates: time 0.3005/2.111, allocations: 75.29 MB / 0.8799 GB, free: 89.82 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)