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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00176/0.00176, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009548/0.0009548, allocations: 87.14 kB / 292.1 MB, free: 5.934 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.804e-05/3.815e-05, allocations: 4 kB / 350.6 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 51.48 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4214/0.5291, allocations: 120.9 MB / 0.5108 GB, free: 0.8867 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.5295, allocations: 84.83 kB / 0.5109 GB, free: 0.8477 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.513/1.043, allocations: 86.32 MB / 0.5952 GB, free: 78.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.043, allocations: 3.312 kB / 0.5952 GB, free: 78.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005331/1.043, allocations: 120.8 kB / 0.5953 GB, free: 78.57 MB / 442.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.01701/1.06, allocations: 4.487 MB / 0.5997 GB, free: 76.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.401e-05/1.06, allocations: 9.188 kB / 0.5997 GB, free: 76.88 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003473/1.064, allocations: 0.5631 MB / 0.6002 GB, free: 76.81 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003427/1.067, allocations: 0.6153 MB / 0.6008 GB, free: 76.54 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008865/1.076, allocations: 3.1 MB / 0.6038 GB, free: 75.88 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008981/1.077, allocations: 426.9 kB / 0.6042 GB, free: 75.84 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001849/1.079, allocations: 410.6 kB / 0.6046 GB, free: 75.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01638/1.095, allocations: 5.917 MB / 0.6104 GB, free: 75.12 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001959/1.095, allocations: 7.406 kB / 0.6104 GB, free: 75.12 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009085/1.096, allocations: 174.1 kB / 0.6106 GB, free: 75.12 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002604/1.097, allocations: 176.8 kB / 0.6108 GB, free: 75.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0123/1.109, allocations: 5.331 MB / 0.616 GB, free: 75.08 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04016/1.149, allocations: 18.59 MB / 0.6341 GB, free: 67.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005693/1.155, allocations: 4.302 MB / 0.6383 GB, free: 65.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003467/1.158, allocations: 2.891 MB / 0.6411 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004071/1.159, allocations: 157.8 kB / 0.6413 GB, free: 64.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002807/1.162, allocations: 2.274 MB / 0.6435 GB, free: 63.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 5.069e-06/1.162, allocations: 0 / 0.6435 GB, free: 63.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=309): time 0.01963/1.181, allocations: 11.27 MB / 0.6545 GB, free: 59.23 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001154/1.182, allocations: 332.3 kB / 0.6548 GB, free: 58.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003963/1.185, allocations: 2.624 MB / 0.6574 GB, free: 57.92 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005641/1.186, allocations: 81.33 kB / 0.6575 GB, free: 57.84 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001798/1.188, allocations: 1.8 MB / 0.6592 GB, free: 56.49 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001381/1.189, allocations: 0.9956 MB / 0.6602 GB, free: 55.73 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/1.189, allocations: 61.28 kB / 0.6603 GB, free: 55.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002249/1.19, allocations: 426.1 kB / 0.6607 GB, free: 55.33 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002622/1.192, allocations: 1.82 MB / 0.6625 GB, free: 54.65 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002662/1.195, allocations: 2.334 MB / 0.6647 GB, free: 53.45 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002544/1.198, allocations: 2.025 MB / 0.6667 GB, free: 52.66 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.378e-06/1.198, allocations: 0 / 0.6667 GB, free: 52.66 MB / 442.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.008093/1.206, allocations: 5.575 MB / 0.6722 GB, free: 50.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.34e-05/1.206, allocations: 33.23 kB / 0.6722 GB, free: 50.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.061e-05/1.206, allocations: 11.16 kB / 0.6722 GB, free: 50.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003295/1.209, allocations: 1.658 MB / 0.6738 GB, free: 49.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002104/1.211, allocations: 0.5057 MB / 0.6743 GB, free: 49.88 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01652/1.228, allocations: 15.67 MB / 0.6896 GB, free: 38.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004286/1.232, allocations: 442.8 kB / 0.69 GB, free: 38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006232/1.233, allocations: 103.1 kB / 0.6901 GB, free: 37.9 MB / 442.7 MB Warning: Assuming fixed start value for the following 1 variables: inductor.inductor[3].i:VARIABLE(start = 0.0 unit = "A" ) "Current flowing from pin p to pin n" type: Real [3] 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (271): * Single equations (assignments): 265 * 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: 3 * 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: 2 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 1 {19 72} Notification: Performance of prepare postOptimizeDAE: time 0.0008266/1.234, allocations: 348.9 kB / 0.6905 GB, free: 37.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008356/1.234, allocations: 343.9 kB / 0.6908 GB, free: 37.22 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008708/1.243, allocations: 5.633 MB / 0.6963 GB, free: 32.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-05/1.243, allocations: 28 kB / 0.6963 GB, free: 32.34 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/1.243, allocations: 4 kB / 0.6963 GB, free: 32.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-05/1.243, allocations: 16.52 kB / 0.6963 GB, free: 32.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01709/1.26, allocations: 10.8 MB / 0.7069 GB, free: 23.39 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.225e-05/1.26, allocations: 0 / 0.7069 GB, free: 23.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/1.262, allocations: 387.9 kB / 0.7072 GB, free: 23.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003487/1.266, allocations: 1.704 MB / 0.7089 GB, free: 21.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003653/1.266, allocations: 71.03 kB / 0.709 GB, free: 21.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01759/1.284, allocations: 17.21 MB / 0.7258 GB, free: 5.902 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/1.284, allocations: 64 / 0.7258 GB, free: 5.902 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0158/1.299, allocations: 8.899 MB / 0.7345 GB, free: 14.27 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002808/1.302, allocations: 0.8929 MB / 0.7353 GB, free: 13.35 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009972/1.303, allocations: 71.98 kB / 0.7354 GB, free: 13.28 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003538/1.307, allocations: 419.5 kB / 0.7358 GB, free: 12.87 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001199/1.308, allocations: 0.5172 MB / 0.7363 GB, free: 12.35 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002421/1.308, allocations: 83.98 kB / 0.7364 GB, free: 12.27 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003837/1.312, allocations: 2.021 MB / 0.7384 GB, free: 10.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.51e-07/1.312, allocations: 0 / 0.7384 GB, free: 10.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004956/1.317, allocations: 1.141 MB / 0.7395 GB, free: 9.105 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 12 (inductor.inductor[1].i,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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (196): * Single equations (assignments): 189 * 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: 4 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {19 72} Notification: Performance of Backend phase and start with SimCode phase: time 0.2918/1.609, allocations: 10.28 MB / 0.7495 GB, free: 85.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00951/1.619, allocations: 5.682 MB / 0.7551 GB, free: 85.08 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/1.619, allocations: 0 / 0.7551 GB, free: 85.08 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008014/1.627, allocations: 5.194 MB / 0.7601 GB, free: 84.35 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004689/1.631, allocations: 0.9506 MB / 0.7611 GB, free: 84.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01956/1.651, allocations: 9.955 MB / 0.7708 GB, free: 82.66 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002917/1.654, allocations: 3.316 MB / 0.774 GB, free: 81.83 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00298/1.657, allocations: 0.7656 MB / 0.7748 GB, free: 81.77 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002327/1.659, allocations: 1.712 MB / 0.7764 GB, free: 81.77 MB / 458.7 MB Notification: Performance of SimCode: time 8.52e-07/1.659, allocations: 0 / 0.7764 GB, free: 81.77 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1817/1.841, allocations: 104.8 MB / 0.8788 GB, free: 31.51 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001554/1.841, allocations: 215 kB / 0.879 GB, free: 31.28 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.014/6.855, allocations: 0 / 0.879 GB, free: 31.28 MB / 458.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe 2>&1)