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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.00142/0.00142, allocations: 110.9 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001206/0.001206, allocations: 208 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 63.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.237, allocations: 50.54 MB / 410 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive): time 0.01563/0.2527, allocations: 14.76 MB / 424.7 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008948/0.2617, allocations: 4.612 MB / 429.3 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00224/0.2639, allocations: 95.56 kB / 429.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002281/0.2663, allocations: 0.9596 MB / 430.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004289/0.2706, allocations: 1.375 MB / 431.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001909/0.2725, allocations: 0.7372 MB / 432.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006617/0.2791, allocations: 5.754 MB / 438.3 MB, free: 5.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005251/0.2844, allocations: 4.472 MB / 442.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004226/0.2886, allocations: 2.633 MB / 445.4 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005553/0.2942, allocations: 3.141 MB / 448.5 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001671/0.2959, allocations: 0.6562 MB / 449.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002354/0.2983, allocations: 0.7498 MB / 449.9 MB, free: 9.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002577/0.3009, allocations: 1.901 MB / 451.8 MB, free: 7.523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005067/0.3059, allocations: 2.979 MB / 454.8 MB, free: 4.531 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009965/0.3159, allocations: 8.802 MB / 463.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.316, allocations: 0 / 463.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.316, allocations: 0 / 463.6 MB, free: 11.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003219/0.3163, allocations: 0 / 463.6 MB, free: 11.7 MB / 382.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.01675/0.3331, allocations: 5.949 MB / 469.5 MB, free: 5.672 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.3331, allocations: 8.031 kB / 469.5 MB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002559/0.3357, allocations: 0.5999 MB / 470.1 MB, free: 5.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007426/0.3431, allocations: 3.223 MB / 473.4 MB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009282/0.3441, allocations: 429.6 kB / 473.8 MB, free: 1.332 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001283/0.3454, allocations: 407.8 kB / 474.2 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01725/0.3627, allocations: 6.397 MB / 480.6 MB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000168/0.3629, allocations: 11.88 kB / 480.6 MB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001173/0.364, allocations: 164 kB / 480.8 MB, free: 10.2 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002552/0.3643, allocations: 183.9 kB / 480.9 MB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01629/0.3806, allocations: 6.21 MB / 487.1 MB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03552/0.4162, allocations: 18.37 MB / 0.4937 GB, free: 1.113 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008844/0.425, allocations: 4.598 MB / 0.4982 GB, free: 12.53 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007117/0.4322, allocations: 3.184 MB / 0.5013 GB, free: 9.348 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003956/0.4326, allocations: 139.3 kB / 0.5014 GB, free: 9.191 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006024/0.4387, allocations: 2.561 MB / 0.5039 GB, free: 6.566 MB / 430.1 MB Notification: Performance of pre-optimization done (n=290): time 6.091e-06/0.4387, allocations: 0 / 0.5039 GB, free: 6.566 MB / 430.1 MB Notification: Performance of matching and sorting (n=313): time 0.06304/0.5017, allocations: 22.24 MB / 0.5256 GB, free: 68 kB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001611/0.5019, allocations: 256.1 kB / 0.5259 GB, free: 15.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004819/0.5068, allocations: 2.965 MB / 0.5288 GB, free: 12.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004117/0.5072, allocations: 85.62 kB / 0.5288 GB, free: 12.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001692/0.5089, allocations: 1.814 MB / 0.5306 GB, free: 10.86 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00125/0.5102, allocations: 1.009 MB / 0.5316 GB, free: 9.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001442/0.5116, allocations: 0.5765 MB / 0.5322 GB, free: 9.254 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.5117, allocations: 309 kB / 0.5325 GB, free: 8.949 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005224/0.517, allocations: 2.161 MB / 0.5346 GB, free: 6.785 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005578/0.5225, allocations: 2.669 MB / 0.5372 GB, free: 3.938 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2019/0.7245, allocations: 4.807 MB / 0.5419 GB, free: 122 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.61e-05/0.7245, allocations: 3.688 kB / 0.5419 GB, free: 122 MB / 462.1 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01233/0.7369, allocations: 6.292 MB / 0.548 GB, free: 120.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/0.7369, allocations: 37.52 kB / 0.548 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.737, allocations: 11.5 kB / 0.5481 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003611/0.7406, allocations: 1.875 MB / 0.5499 GB, free: 119.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001709/0.7423, allocations: 494.5 kB / 0.5504 GB, free: 119.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01858/0.7609, allocations: 17.84 MB / 0.5678 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003278/0.7642, allocations: 361.5 kB / 0.5681 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002817/0.7645, allocations: 183.9 kB / 0.5683 GB, free: 106.4 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.00199/0.7665, allocations: 1.548 MB / 0.5698 GB, free: 104.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005471/0.7671, allocations: 349.9 kB / 0.5701 GB, free: 104.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01136/0.7784, allocations: 6.4 MB / 0.5764 GB, free: 98.25 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-05/0.7785, allocations: 11.95 kB / 0.5764 GB, free: 98.24 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.112e-06/0.7785, allocations: 0 / 0.5764 GB, free: 98.24 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001616/0.7801, allocations: 0.8853 MB / 0.5773 GB, free: 97.48 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004931/0.7806, allocations: 67.98 kB / 0.5773 GB, free: 97.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002541/0.7831, allocations: 343.6 kB / 0.5777 GB, free: 97.07 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005635/0.7837, allocations: 266 kB / 0.5779 GB, free: 96.81 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01586/0.7996, allocations: 7.45 MB / 0.5852 GB, free: 89.37 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01474/0.8144, allocations: 8.198 MB / 0.5932 GB, free: 81.1 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004463/0.8189, allocations: 2.638 MB / 0.5958 GB, free: 78.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002378/0.8213, allocations: 2.056 MB / 0.5978 GB, free: 76.39 MB / 462.1 MB Notification: Performance of Backend: time 3.8e-07/0.8213, allocations: 0 / 0.5978 GB, free: 76.39 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008581/0.8299, allocations: 4.478 MB / 0.6022 GB, free: 71.83 MB / 462.1 MB Notification: Performance of SimCode: time 0.01237/0.8422, allocations: 10.14 MB / 0.6121 GB, free: 61.68 MB / 462.1 MB Notification: Performance of Templates: time 0.09282/0.9351, allocations: 73.82 MB / 0.6841 GB, free: 4.41 MB / 478.1 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)