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.001484/0.001484, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.359/1.359, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009734/0.0009734, allocations: 99.42 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002579/0.000258, allocations: 11.94 kB / 351.1 MB, free: 15.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2481/0.2484, allocations: 50.41 MB / 401.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3559/0.6044, allocations: 120.2 MB / 0.5094 GB, free: 50.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.6047, allocations: 89.89 kB / 0.5095 GB, free: 50.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1838/0.7886, allocations: 85.51 MB / 0.593 GB, free: 10.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.225e-06/0.7886, allocations: 0 / 0.593 GB, free: 10.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.00035/0.789, allocations: 123.8 kB / 0.5932 GB, free: 10.15 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.01315/0.8021, allocations: 5.002 MB / 0.598 GB, free: 5.059 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.8022, allocations: 12.03 kB / 0.5981 GB, free: 5.047 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002134/0.8043, allocations: 0.5678 MB / 0.5986 GB, free: 4.473 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00755/0.8119, allocations: 3.119 MB / 0.6017 GB, free: 1.281 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007484/0.8127, allocations: 433.6 kB / 0.6021 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/0.8142, allocations: 412 kB / 0.6025 GB, free: 456 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01488/0.8291, allocations: 6.485 MB / 0.6088 GB, free: 9.715 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.134e-05/0.8292, allocations: 7.906 kB / 0.6088 GB, free: 9.707 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004524/0.8297, allocations: 172 kB / 0.609 GB, free: 9.539 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001759/0.8299, allocations: 183.9 kB / 0.6091 GB, free: 9.359 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01644/0.8463, allocations: 6.425 MB / 0.6154 GB, free: 2.926 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03925/0.8856, allocations: 18.59 MB / 0.6336 GB, free: 20 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009258/0.8949, allocations: 4.847 MB / 0.6383 GB, free: 11.19 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004625/0.8954, allocations: 167.2 kB / 0.6385 GB, free: 11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006411/0.9018, allocations: 2.814 MB / 0.6412 GB, free: 8.117 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 6.392e-06/0.9019, allocations: 7.984 kB / 0.6412 GB, free: 8.109 MB / 426.7 MB Notification: Performance of matching and sorting (n=319): time 0.06457/0.9664, allocations: 23.71 MB / 0.6644 GB, free: 140 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.2185/1.185, allocations: 331.5 kB / 0.6647 GB, free: 92.86 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004432/1.189, allocations: 2.65 MB / 0.6673 GB, free: 92.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000706/1.19, allocations: 85.98 kB / 0.6674 GB, free: 92.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001396/1.192, allocations: 1.788 MB / 0.6691 GB, free: 92.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009732/1.193, allocations: 1.027 MB / 0.6701 GB, free: 92.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/1.193, allocations: 60.25 kB / 0.6702 GB, free: 92.09 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001246/1.193, allocations: 427.1 kB / 0.6706 GB, free: 91.79 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004826/1.198, allocations: 2.427 MB / 0.6729 GB, free: 91.78 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005051/1.203, allocations: 2.94 MB / 0.6758 GB, free: 91.33 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005295/1.208, allocations: 2.634 MB / 0.6784 GB, free: 91.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.038e-05/1.208, allocations: 4.125 kB / 0.6784 GB, free: 91.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.01347/1.222, allocations: 6.859 MB / 0.6851 GB, free: 90.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.563e-05/1.222, allocations: 39.52 kB / 0.6851 GB, free: 90.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/1.222, allocations: 11.19 kB / 0.6851 GB, free: 90.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00381/1.226, allocations: 1.913 MB / 0.687 GB, free: 90.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/1.227, allocations: 493.1 kB / 0.6875 GB, free: 90.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/1.248, allocations: 17.53 MB / 0.7046 GB, free: 86.03 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004342/1.252, allocations: 456.5 kB / 0.705 GB, free: 85.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004542/1.253, allocations: 106 kB / 0.7051 GB, free: 85.95 MB / 442.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.003241/1.256, allocations: 1.534 MB / 0.7066 GB, free: 85.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008431/1.257, allocations: 356.5 kB / 0.707 GB, free: 85.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01387/1.271, allocations: 7.175 MB / 0.714 GB, free: 82.62 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-05/1.271, allocations: 32.69 kB / 0.714 GB, free: 82.62 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/1.271, allocations: 3.25 kB / 0.714 GB, free: 82.62 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-05/1.271, allocations: 14.53 kB / 0.714 GB, free: 82.62 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0215/1.292, allocations: 12.14 MB / 0.7259 GB, free: 78.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.359e-05/1.292, allocations: 3.906 kB / 0.7259 GB, free: 78.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/1.294, allocations: 355.6 kB / 0.7262 GB, free: 78.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004032/1.298, allocations: 1.979 MB / 0.7282 GB, free: 77.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00042/1.298, allocations: 82.22 kB / 0.7282 GB, free: 77.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02061/1.319, allocations: 19.07 MB / 0.7468 GB, free: 64.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.319, allocations: 6.25 kB / 0.7469 GB, free: 64.22 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01803/1.337, allocations: 10.63 MB / 0.7572 GB, free: 54.93 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002236/1.339, allocations: 0.9112 MB / 0.7581 GB, free: 54.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004856/1.34, allocations: 71.61 kB / 0.7582 GB, free: 54.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00281/1.343, allocations: 424.9 kB / 0.7586 GB, free: 53.75 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009684/1.344, allocations: 0.529 MB / 0.7591 GB, free: 53.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002004/1.344, allocations: 91.41 kB / 0.7592 GB, free: 53.32 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002564/1.346, allocations: 2.052 MB / 0.7612 GB, free: 51.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.346, allocations: 0 / 0.7612 GB, free: 51.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002872/1.349, allocations: 1.173 MB / 0.7624 GB, free: 50.46 MB / 442.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.0006344/1.35, allocations: 426.9 kB / 0.7628 GB, free: 50.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01233/1.362, allocations: 6.996 MB / 0.7696 GB, free: 44.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.991e-06/1.362, allocations: 0 / 0.7696 GB, free: 44.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008734/1.371, allocations: 5.802 MB / 0.7753 GB, free: 39.07 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004252/1.375, allocations: 0.9471 MB / 0.7762 GB, free: 38.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01834/1.394, allocations: 12.41 MB / 0.7883 GB, free: 27.34 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002606/1.396, allocations: 3.343 MB / 0.7916 GB, free: 24.81 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002461/1.399, allocations: 0.7708 MB / 0.7923 GB, free: 24.27 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006195/1.399, allocations: 198.2 kB / 0.7925 GB, free: 24.09 MB / 442.7 MB Notification: Performance of SimCode: time 8.31e-07/1.399, allocations: 0 / 0.7925 GB, free: 24.09 MB / 442.7 MB Notification: Performance of Templates: time 0.3305/1.73, allocations: 74.1 MB / 0.8649 GB, free: 85.54 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)