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.0008823/0.0008825, allocations: 176.2 kB / 17.4 MB, free: 4.418 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 223.3 MB / 241.4 MB, free: 9.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009186/0.0009188, allocations: 92.86 kB / 292.6 MB, free: 10.58 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000426/0.0004261, allocations: 19.94 kB / 352.4 MB, free: 14.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.234, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2964/0.5304, allocations: 120.4 MB / 0.5109 GB, free: 102 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.5307, allocations: 86.3 kB / 0.5109 GB, free: 102 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1846/0.7154, allocations: 85.46 MB / 0.5944 GB, free: 19.68 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.7154, allocations: 0 / 0.5944 GB, free: 19.68 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004168/0.7158, allocations: 119.9 kB / 0.5945 GB, free: 19.56 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.01221/0.728, allocations: 4.955 MB / 0.5994 GB, free: 14.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.7281, allocations: 19.97 kB / 0.5994 GB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001949/0.73, allocations: 0.5687 MB / 0.5999 GB, free: 13.93 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006818/0.7369, allocations: 3.223 MB / 0.6031 GB, free: 10.63 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007418/0.7377, allocations: 430.2 kB / 0.6035 GB, free: 10.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001266/0.7389, allocations: 404.6 kB / 0.6039 GB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01425/0.7532, allocations: 6.532 MB / 0.6103 GB, free: 3.027 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001436/0.7534, allocations: 11.92 kB / 0.6103 GB, free: 3.016 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/0.7544, allocations: 180 kB / 0.6104 GB, free: 2.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001952/0.7546, allocations: 175.9 kB / 0.6106 GB, free: 2.668 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01679/0.7714, allocations: 6.429 MB / 0.6169 GB, free: 12.23 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04211/0.8136, allocations: 18.61 MB / 0.6351 GB, free: 9.309 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0102/0.8239, allocations: 4.855 MB / 0.6398 GB, free: 4.469 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007666/0.8316, allocations: 3.421 MB / 0.6431 GB, free: 1.035 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005148/0.8321, allocations: 155.2 kB / 0.6433 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007113/0.8393, allocations: 2.81 MB / 0.646 GB, free: 13.98 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 7.444e-06/0.8393, allocations: 0 / 0.646 GB, free: 13.98 MB / 426.7 MB Notification: Performance of matching and sorting (n=319): time 0.2599/1.099, allocations: 23.75 MB / 0.6692 GB, free: 79.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/1.099, allocations: 339.1 kB / 0.6695 GB, free: 79.21 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005914/1.105, allocations: 2.976 MB / 0.6725 GB, free: 78.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005261/1.106, allocations: 79.98 kB / 0.6725 GB, free: 78.93 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001881/1.108, allocations: 1.8 MB / 0.6743 GB, free: 78.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001254/1.109, allocations: 1.028 MB / 0.6753 GB, free: 77.92 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003864/1.109, allocations: 60.5 kB / 0.6754 GB, free: 77.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002334/1.11, allocations: 431 kB / 0.6758 GB, free: 77.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005471/1.115, allocations: 2.415 MB / 0.6781 GB, free: 77.61 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00584/1.121, allocations: 2.942 MB / 0.681 GB, free: 77.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01104/1.132, allocations: 5.3 MB / 0.6862 GB, free: 76.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.24e-05/1.132, allocations: 0 / 0.6862 GB, free: 76.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.0151/1.147, allocations: 6.83 MB / 0.6928 GB, free: 76.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.446e-05/1.147, allocations: 36.92 kB / 0.6929 GB, free: 76.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.813e-05/1.147, allocations: 14.44 kB / 0.6929 GB, free: 76.26 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004934/1.152, allocations: 1.908 MB / 0.6948 GB, free: 75.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002247/1.154, allocations: 494.9 kB / 0.6952 GB, free: 75.95 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02242/1.177, allocations: 16.89 MB / 0.7117 GB, free: 67.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004611/1.182, allocations: 466.8 kB / 0.7122 GB, free: 67.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005906/1.182, allocations: 100.1 kB / 0.7123 GB, free: 67.18 MB / 426.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.003533/1.186, allocations: 1.542 MB / 0.7138 GB, free: 66.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001143/1.187, allocations: 350.5 kB / 0.7141 GB, free: 66.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/1.203, allocations: 7.16 MB / 0.7211 GB, free: 63.83 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.398e-05/1.203, allocations: 28.53 kB / 0.7211 GB, free: 63.83 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/1.203, allocations: 7.438 kB / 0.7211 GB, free: 63.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.427e-05/1.203, allocations: 13.78 kB / 0.7211 GB, free: 63.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02642/1.229, allocations: 12.19 MB / 0.733 GB, free: 57.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/1.229, allocations: 0 / 0.733 GB, free: 57.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001602/1.231, allocations: 364.8 kB / 0.7334 GB, free: 57.49 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004142/1.235, allocations: 1.969 MB / 0.7353 GB, free: 55.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003605/1.235, allocations: 81.81 kB / 0.7354 GB, free: 55.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02148/1.257, allocations: 18.4 MB / 0.7534 GB, free: 39.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.257, allocations: 6.906 kB / 0.7534 GB, free: 39.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02031/1.277, allocations: 10.32 MB / 0.7634 GB, free: 30.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002621/1.28, allocations: 0.9137 MB / 0.7643 GB, free: 29.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/1.281, allocations: 68 kB / 0.7644 GB, free: 29.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003313/1.284, allocations: 435.5 kB / 0.7648 GB, free: 29.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001061/1.285, allocations: 0.5206 MB / 0.7653 GB, free: 29.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002414/1.286, allocations: 90.59 kB / 0.7654 GB, free: 29.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003384/1.289, allocations: 2.052 MB / 0.7674 GB, free: 27.37 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.91e-07/1.289, allocations: 0 / 0.7674 GB, free: 27.37 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003746/1.293, allocations: 1.173 MB / 0.7686 GB, free: 26.21 MB / 426.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.000736/1.294, allocations: 418.5 kB / 0.769 GB, free: 25.89 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0135/1.307, allocations: 6.975 MB / 0.7758 GB, free: 19.92 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/1.307, allocations: 2.734 kB / 0.7758 GB, free: 19.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00952/1.317, allocations: 5.782 MB / 0.7814 GB, free: 14.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006561/1.323, allocations: 0.967 MB / 0.7824 GB, free: 14.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02034/1.344, allocations: 12.36 MB / 0.7944 GB, free: 3.172 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003642/1.347, allocations: 3.254 MB / 0.7976 GB, free: 0.6484 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002817/1.35, allocations: 0.7462 MB / 0.7983 GB, free: 15.95 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009089/1.351, allocations: 199.3 kB / 0.7985 GB, free: 15.76 MB / 442.7 MB Notification: Performance of SimCode: time 6.21e-07/1.351, allocations: 0 / 0.7985 GB, free: 15.76 MB / 442.7 MB Notification: Performance of Templates: time 0.3155/1.667, allocations: 75.21 MB / 0.872 GB, free: 97.19 MB / 458.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)