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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 114.2 kB / 17.75 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 185.4 kB / 18.67 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009705/0.0009705, allocations: 43.92 kB / 352 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2257, allocations: 49.44 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive): time 0.01509/0.2409, allocations: 14.73 MB / 416.2 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00787/0.2488, allocations: 4.538 MB / 420.7 MB, free: 5.523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001408/0.2502, allocations: 95.56 kB / 420.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00187/0.2521, allocations: 0.9908 MB / 421.8 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002785/0.2549, allocations: 1.434 MB / 423.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.2562, allocations: 0.7216 MB / 423.9 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005159/0.2614, allocations: 5.746 MB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004531/0.2659, allocations: 4.472 MB / 434.2 MB, free: 7.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003022/0.2689, allocations: 2.633 MB / 436.8 MB, free: 5.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004272/0.2732, allocations: 3.126 MB / 439.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.2743, allocations: 0.6562 MB / 440.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.276, allocations: 0.742 MB / 441.3 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001826/0.2779, allocations: 1.901 MB / 443.2 MB, free: 14.86 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004227/0.2821, allocations: 2.964 MB / 446.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008118/0.2902, allocations: 8.786 MB / 455 MB, free: 3.074 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.2903, allocations: 3.984 kB / 455 MB, free: 3.07 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.2903, allocations: 4 kB / 455 MB, free: 3.066 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000143/0.2904, allocations: 0 / 455 MB, free: 3.066 MB / 366.1 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.01317/0.3036, allocations: 5.996 MB / 461 MB, free: 12.99 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3037, allocations: 8.031 kB / 461 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001122/0.3048, allocations: 0.5609 MB / 461.5 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005591/0.3104, allocations: 3.203 MB / 464.7 MB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008556/0.3113, allocations: 453.8 kB / 465.2 MB, free: 8.684 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006191/0.3119, allocations: 411.9 kB / 465.6 MB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01261/0.3245, allocations: 6.529 MB / 472.1 MB, free: 1.586 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.829e-05/0.3246, allocations: 4 kB / 472.1 MB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004303/0.325, allocations: 172 kB / 472.3 MB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001645/0.3252, allocations: 187.9 kB / 472.5 MB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01507/0.3403, allocations: 6.479 MB / 479 MB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03204/0.3724, allocations: 18.51 MB / 497.5 MB, free: 7.91 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008898/0.3813, allocations: 4.728 MB / 0.4904 GB, free: 3.195 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00708/0.3884, allocations: 3.31 MB / 0.4936 GB, free: 15.88 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003099/0.3887, allocations: 139.2 kB / 0.4938 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006249/0.395, allocations: 2.713 MB / 0.4964 GB, free: 12.95 MB / 430.1 MB Notification: Performance of pre-optimization done (n=290): time 4.849e-06/0.395, allocations: 0 / 0.4964 GB, free: 12.95 MB / 430.1 MB Notification: Performance of matching and sorting (n=313): time 0.06481/0.4598, allocations: 22.93 MB / 0.5188 GB, free: 5.762 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/0.46, allocations: 260.1 kB / 0.5191 GB, free: 5.457 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004805/0.4648, allocations: 2.948 MB / 0.5219 GB, free: 2.496 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002637/0.4651, allocations: 81.7 kB / 0.522 GB, free: 2.41 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001582/0.4667, allocations: 1.81 MB / 0.5238 GB, free: 0.582 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008958/0.4676, allocations: 1.005 MB / 0.5248 GB, free: 15.56 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001076/0.4687, allocations: 0.5726 MB / 0.5253 GB, free: 14.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.923e-05/0.4688, allocations: 305.1 kB / 0.5256 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005956/0.4747, allocations: 2.293 MB / 0.5279 GB, free: 12.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006359/0.4811, allocations: 2.81 MB / 0.5306 GB, free: 9.398 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01217/0.4933, allocations: 5.084 MB / 0.5356 GB, free: 4.113 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.4933, allocations: 4 kB / 0.5356 GB, free: 4.109 MB / 462.1 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.1901/0.6834, allocations: 6.562 MB / 0.542 GB, free: 129.9 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.138e-05/0.6835, allocations: 33.61 kB / 0.542 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.174e-05/0.6835, allocations: 11.84 kB / 0.542 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003666/0.6872, allocations: 1.877 MB / 0.5439 GB, free: 129.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/0.6891, allocations: 494 kB / 0.5443 GB, free: 129.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0203/0.7095, allocations: 17.83 MB / 0.5617 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00415/0.7137, allocations: 436.2 kB / 0.5622 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002773/0.7139, allocations: 183.6 kB / 0.5623 GB, free: 117.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 52 (pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.firstTrigger,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiRef,$PRE.pwm.svPWM.phiRef,pwm.svPWM.uRef,$PRE.pwm.svPWM.uRef,pwm.svPWM.sampleTrigger,$whenCondition1,$whenCondition2,pwm.svPWM.T0,$PRE.pwm.svPWM.T0,pwm.svPWM.t0,$PRE.pwm.svPWM.t0,pwm.svPWM.tb,$PRE.pwm.svPWM.tb,pwm.svPWM.ta,$PRE.pwm.svPWM.ta,pwm.svPWM.kb,$PRE.pwm.svPWM.kb,pwm.svPWM.ka,$PRE.pwm.svPWM.ka,pwm.fire_n[3],pwm.fire_n[2],pwm.fire_n[1],inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[1].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[1].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[1].off,inverter.andCondition_n[3].y,inverter.andCondition_n[2].y,inverter.andCondition_n[1].y,inverter.andCondition_p[3].y,inverter.andCondition_p[2].y,inverter.andCondition_p[1].y,rectifier.diode_n.idealDiode[3].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (264): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(23,93)} Notification: Performance of prepare postOptimizeDAE: time 0.002193/0.7161, allocations: 1.545 MB / 0.5638 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005197/0.7167, allocations: 350.5 kB / 0.5642 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/0.7297, allocations: 6.665 MB / 0.5707 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.448e-05/0.7298, allocations: 19.89 kB / 0.5707 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.7298, allocations: 0 / 0.5707 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001472/0.7313, allocations: 0.8707 MB / 0.5716 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005351/0.7318, allocations: 67.98 kB / 0.5716 GB, free: 108.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003021/0.7348, allocations: 422 kB / 0.572 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005847/0.7354, allocations: 270 kB / 0.5723 GB, free: 107.8 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01795/0.7534, allocations: 7.794 MB / 0.5799 GB, free: 100.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01719/0.7706, allocations: 8.606 MB / 0.5883 GB, free: 91.54 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005488/0.7761, allocations: 2.77 MB / 0.591 GB, free: 88.76 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002598/0.7788, allocations: 2.044 MB / 0.593 GB, free: 86.72 MB / 462.1 MB Notification: Performance of Backend: time 9.82e-07/0.7788, allocations: 0 / 0.593 GB, free: 86.72 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00961/0.7884, allocations: 4.612 MB / 0.5975 GB, free: 82.02 MB / 462.1 MB Notification: Performance of SimCode: time 0.01178/0.8002, allocations: 10.15 MB / 0.6074 GB, free: 71.88 MB / 462.1 MB Notification: Performance of Templates: time 0.09107/0.8913, allocations: 73.8 MB / 0.6795 GB, free: 14.71 MB / 478.1 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)