Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.253/1.253, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008548/0.0008549, allocations: 89.66 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.345e-05/1.354e-05, allocations: 7.984 kB / 337.1 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08559/0.08562, allocations: 50.41 MB / 387.5 MB, free: 7.555 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3131/0.3988, allocations: 119.4 MB / 0.495 GB, free: 7.344 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/0.3991, allocations: 87.89 kB / 0.4951 GB, free: 7.258 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3834/0.7825, allocations: 84.61 MB / 0.5777 GB, free: 99.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.7825, allocations: 0 / 0.5777 GB, free: 99.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002874/0.7828, allocations: 113.9 kB / 0.5778 GB, free: 99.47 MB / 426.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.009402/0.7923, allocations: 4.484 MB / 0.5822 GB, free: 97.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.7923, allocations: 7.375 kB / 0.5822 GB, free: 97.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.794, allocations: 0.5709 MB / 0.5828 GB, free: 97.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005009/0.799, allocations: 3.091 MB / 0.5858 GB, free: 96.82 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005893/0.7996, allocations: 295.7 kB / 0.5861 GB, free: 96.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005027/0.8001, allocations: 245.1 kB / 0.5863 GB, free: 96.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006644/0.8067, allocations: 5.093 MB / 0.5913 GB, free: 95.71 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006726/0.8135, allocations: 5.325 MB / 0.5965 GB, free: 93.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.455e-05/0.8136, allocations: 11.12 kB / 0.5965 GB, free: 93.31 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003462/0.8139, allocations: 10.42 kB / 0.5965 GB, free: 93.31 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001301/0.8141, allocations: 176.7 kB / 0.5967 GB, free: 93.3 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02506/0.8391, allocations: 17.81 MB / 0.6141 GB, free: 84.4 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004009/0.8432, allocations: 4.16 MB / 0.6181 GB, free: 82.55 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002893/0.8461, allocations: 2.795 MB / 0.6209 GB, free: 81.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003462/0.8465, allocations: 153.9 kB / 0.621 GB, free: 81.43 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002425/0.8489, allocations: 2.177 MB / 0.6231 GB, free: 79.7 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 5.32e-06/0.8489, allocations: 0 / 0.6231 GB, free: 79.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=309): time 0.01373/0.8627, allocations: 9.977 MB / 0.6329 GB, free: 70.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.8628, allocations: 331.9 kB / 0.6332 GB, free: 70.44 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002712/0.8655, allocations: 2.202 MB / 0.6354 GB, free: 68.49 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001989/0.8657, allocations: 29.7 kB / 0.6354 GB, free: 68.46 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.8669, allocations: 1.8 MB / 0.6371 GB, free: 66.84 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005799/0.8675, allocations: 0.9547 MB / 0.6381 GB, free: 65.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000171/0.8677, allocations: 0 / 0.6381 GB, free: 65.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.8678, allocations: 422.7 kB / 0.6385 GB, free: 65.58 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001975/0.8698, allocations: 1.765 MB / 0.6402 GB, free: 64 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002169/0.872, allocations: 2.253 MB / 0.6424 GB, free: 61.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00211/0.8741, allocations: 1.936 MB / 0.6443 GB, free: 60.17 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.596e-06/0.8741, allocations: 4 kB / 0.6443 GB, free: 60.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.006411/0.8805, allocations: 5.238 MB / 0.6494 GB, free: 55.16 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.753e-05/0.8806, allocations: 41.73 kB / 0.6494 GB, free: 55.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.541e-05/0.8806, allocations: 8 kB / 0.6495 GB, free: 55.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002898/0.8835, allocations: 1.62 MB / 0.651 GB, free: 53.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/0.8854, allocations: 0.507 MB / 0.6515 GB, free: 52.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01461/0.9, allocations: 15.22 MB / 0.6664 GB, free: 37.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003905/0.904, allocations: 387.2 kB / 0.6668 GB, free: 37.03 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002534/0.9042, allocations: 99.98 kB / 0.6669 GB, free: 36.93 MB / 426.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.0006323/0.9049, allocations: 240.9 kB / 0.6671 GB, free: 36.69 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004698/0.9054, allocations: 324.1 kB / 0.6674 GB, free: 36.37 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006846/0.9122, allocations: 5.264 MB / 0.6725 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.545e-05/0.9122, allocations: 32 kB / 0.6726 GB, free: 31 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.9123, allocations: 4 kB / 0.6726 GB, free: 31 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.392e-05/0.9123, allocations: 15.94 kB / 0.6726 GB, free: 30.98 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01262/0.9249, allocations: 9.944 MB / 0.6823 GB, free: 20.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.117e-06/0.9249, allocations: 4.375 kB / 0.6823 GB, free: 20.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001567/0.9265, allocations: 391.4 kB / 0.6827 GB, free: 20.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003101/0.9296, allocations: 1.689 MB / 0.6843 GB, free: 18.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002144/0.9299, allocations: 31.97 kB / 0.6844 GB, free: 18.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01552/0.9454, allocations: 16.68 MB / 0.7006 GB, free: 1.68 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/0.9454, allocations: 4 kB / 0.7006 GB, free: 1.676 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01097/0.9564, allocations: 8.35 MB / 0.7088 GB, free: 9.129 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/0.9583, allocations: 0.8523 MB / 0.7096 GB, free: 8.254 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004889/0.9588, allocations: 27.94 kB / 0.7097 GB, free: 8.227 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002972/0.9617, allocations: 375.5 kB / 0.71 GB, free: 7.859 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009637/0.9627, allocations: 0.5138 MB / 0.7105 GB, free: 7.344 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002216/0.9629, allocations: 87.97 kB / 0.7106 GB, free: 7.258 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002527/0.9655, allocations: 1.67 MB / 0.7122 GB, free: 5.578 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9655, allocations: 0 / 0.7122 GB, free: 5.578 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004369/0.9699, allocations: 0.9843 MB / 0.7132 GB, free: 4.594 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.0008647/0.9708, allocations: 387.1 kB / 0.7136 GB, free: 4.246 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2004/1.171, allocations: 5.459 MB / 0.7189 GB, free: 104.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/1.171, allocations: 1.594 kB / 0.7189 GB, free: 104.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007413/1.179, allocations: 5.055 MB / 0.7238 GB, free: 104.1 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00451/1.183, allocations: 0.7765 MB / 0.7246 GB, free: 104 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01832/1.202, allocations: 8.456 MB / 0.7329 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003389/1.205, allocations: 3.317 MB / 0.7361 GB, free: 101.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002662/1.208, allocations: 0.732 MB / 0.7368 GB, free: 101.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005929/1.208, allocations: 186.5 kB / 0.737 GB, free: 101.5 MB / 442.7 MB Notification: Performance of SimCode: time 7.32e-07/1.208, allocations: 0 / 0.737 GB, free: 101.5 MB / 442.7 MB Notification: Performance of Templates: time 0.07522/1.283, allocations: 60 MB / 0.7956 GB, free: 80.23 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe 2>&1)