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.001576/0.001576, allocations: 180.8 kB / 17.01 MB, free: 5.125 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.982/1.982, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009533/0.0009533, allocations: 90.61 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002578/0.0002578, allocations: 4 kB / 328.2 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3237/0.324, allocations: 47.56 MB / 375.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1675/0.4916, allocations: 119.9 MB / 495.7 MB, free: 8.664 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003804/0.4921, allocations: 91.95 kB / 495.8 MB, free: 8.574 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5153/1.007, allocations: 84.82 MB / 0.567 GB, free: 50.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 7.744e-06/1.007, allocations: 0 / 0.567 GB, free: 50.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0009933/1.008, allocations: 123.9 kB / 0.5672 GB, free: 50.83 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.01961/1.028, allocations: 4.982 MB / 0.572 GB, free: 45.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.779e-05/1.028, allocations: 12.02 kB / 0.572 GB, free: 45.75 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00376/1.032, allocations: 0.5717 MB / 0.5726 GB, free: 45.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0116/1.044, allocations: 3.111 MB / 0.5756 GB, free: 41.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001153/1.045, allocations: 441.6 kB / 0.5761 GB, free: 41.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002295/1.047, allocations: 403.9 kB / 0.5764 GB, free: 41.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02261/1.07, allocations: 6.508 MB / 0.5828 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003599/1.07, allocations: 11.84 kB / 0.5828 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002954/1.073, allocations: 180 kB / 0.583 GB, free: 34.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002158/1.073, allocations: 171.9 kB / 0.5831 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/1.093, allocations: 6.448 MB / 0.5894 GB, free: 27.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05462/1.147, allocations: 18.61 MB / 0.6076 GB, free: 8.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01722/1.165, allocations: 4.848 MB / 0.6124 GB, free: 3.832 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008424/1.166, allocations: 163.2 kB / 0.6125 GB, free: 3.652 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01281/1.178, allocations: 2.81 MB / 0.6153 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 1.161e-05/1.179, allocations: 0 / 0.6153 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of matching and sorting (n=319): time 0.1342/1.313, allocations: 23.68 MB / 0.6384 GB, free: 8.805 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00035/1.313, allocations: 329.2 kB / 0.6387 GB, free: 8.414 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01072/1.324, allocations: 2.649 MB / 0.6413 GB, free: 5.758 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001542/1.326, allocations: 85.7 kB / 0.6414 GB, free: 5.668 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003884/1.33, allocations: 1.799 MB / 0.6431 GB, free: 3.852 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003218/1.333, allocations: 1.028 MB / 0.6441 GB, free: 2.809 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004866/1.333, allocations: 60 kB / 0.6442 GB, free: 2.75 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005064/1.334, allocations: 428.2 kB / 0.6446 GB, free: 2.324 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3286/1.662, allocations: 2.431 MB / 0.647 GB, free: 87.33 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008753/1.671, allocations: 2.949 MB / 0.6498 GB, free: 86.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006547/1.678, allocations: 2.632 MB / 0.6524 GB, free: 86.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.386e-05/1.678, allocations: 7.234 kB / 0.6524 GB, free: 86.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.01614/1.694, allocations: 6.856 MB / 0.6591 GB, free: 86.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.37e-05/1.694, allocations: 33.02 kB / 0.6591 GB, free: 86.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.802e-05/1.694, allocations: 14.77 kB / 0.6592 GB, free: 86.59 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004541/1.699, allocations: 1.904 MB / 0.661 GB, free: 86.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002544/1.701, allocations: 494.3 kB / 0.6615 GB, free: 86.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02851/1.73, allocations: 17.53 MB / 0.6786 GB, free: 82.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005943/1.736, allocations: 456.6 kB / 0.679 GB, free: 82.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001187/1.737, allocations: 104 kB / 0.6791 GB, free: 82.33 MB / 410.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.006305/1.743, allocations: 1.541 MB / 0.6806 GB, free: 81.6 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002131/1.746, allocations: 347.2 kB / 0.681 GB, free: 81.6 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01982/1.765, allocations: 7.166 MB / 0.688 GB, free: 79.17 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.585e-05/1.766, allocations: 29.12 kB / 0.688 GB, free: 79.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/1.766, allocations: 3.031 kB / 0.688 GB, free: 79.17 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.506e-05/1.766, allocations: 16.06 kB / 0.688 GB, free: 79.17 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02795/1.794, allocations: 12.15 MB / 0.6999 GB, free: 74.76 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.447e-05/1.794, allocations: 3.75 kB / 0.6999 GB, free: 74.76 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001985/1.796, allocations: 363.2 kB / 0.7002 GB, free: 74.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004801/1.801, allocations: 1.969 MB / 0.7022 GB, free: 74.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006413/1.801, allocations: 69.94 kB / 0.7022 GB, free: 74.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02822/1.829, allocations: 19.09 MB / 0.7209 GB, free: 59.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/1.829, allocations: 6.156 kB / 0.7209 GB, free: 59.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02575/1.855, allocations: 10.64 MB / 0.7313 GB, free: 49.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003752/1.859, allocations: 0.9063 MB / 0.7321 GB, free: 48.99 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001934/1.861, allocations: 71.56 kB / 0.7322 GB, free: 48.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005157/1.866, allocations: 433.3 kB / 0.7326 GB, free: 48.62 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002126/1.868, allocations: 0.5327 MB / 0.7331 GB, free: 48.27 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007064/1.869, allocations: 87.12 kB / 0.7332 GB, free: 48.19 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005707/1.875, allocations: 2.053 MB / 0.7352 GB, free: 46.49 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.875, allocations: 0 / 0.7352 GB, free: 46.49 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.008683/1.884, allocations: 1.17 MB / 0.7364 GB, free: 45.33 MB / 410.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.001805/1.885, allocations: 427.8 kB / 0.7368 GB, free: 45.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01768/1.903, allocations: 6.996 MB / 0.7436 GB, free: 39.02 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/1.903, allocations: 0 / 0.7436 GB, free: 39.02 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01291/1.916, allocations: 5.808 MB / 0.7493 GB, free: 33.94 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006399/1.923, allocations: 0.9454 MB / 0.7502 GB, free: 33.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03628/1.959, allocations: 12.41 MB / 0.7623 GB, free: 22.19 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007835/1.967, allocations: 3.34 MB / 0.7656 GB, free: 19.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.006615/1.973, allocations: 0.7725 MB / 0.7663 GB, free: 18.51 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001782/1.975, allocations: 199.4 kB / 0.7665 GB, free: 18.32 MB / 410.7 MB Notification: Performance of SimCode: time 1.884e-06/1.975, allocations: 0 / 0.7665 GB, free: 18.32 MB / 410.7 MB Notification: Performance of Templates: time 0.5268/2.502, allocations: 74.13 MB / 0.8389 GB, free: 93.28 MB / 442.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)