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.001613/0.001613, allocations: 196.2 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.491/1.491, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000811/0.000811, allocations: 94.36 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.638e-05/2.643e-05, allocations: 4 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1255, allocations: 51.48 MB / 395.3 MB, free: 4.645 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4089/0.5345, allocations: 120.2 MB / 0.5034 GB, free: 5.305 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002782/0.5348, allocations: 92.16 kB / 0.5035 GB, free: 5.258 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4695/1.004, allocations: 85.21 MB / 0.5867 GB, free: 74.01 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.004, allocations: 1.688 kB / 0.5867 GB, free: 74.01 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000484/1.005, allocations: 126.7 kB / 0.5869 GB, free: 74 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.01331/1.018, allocations: 4.486 MB / 0.5912 GB, free: 72.48 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/1.018, allocations: 8.969 kB / 0.5912 GB, free: 72.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003634/1.022, allocations: 0.6102 MB / 0.5918 GB, free: 72.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00793/1.03, allocations: 3.098 MB / 0.5949 GB, free: 71.57 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007737/1.031, allocations: 293 kB / 0.5951 GB, free: 71.52 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001869/1.033, allocations: 246.1 kB / 0.5954 GB, free: 71.52 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01001/1.043, allocations: 5.104 MB / 0.6004 GB, free: 71.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009135/1.052, allocations: 5.32 MB / 0.6056 GB, free: 70.81 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.128e-05/1.052, allocations: 9.625 kB / 0.6056 GB, free: 70.81 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003543/1.052, allocations: 9 kB / 0.6056 GB, free: 70.81 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001384/1.052, allocations: 176.4 kB / 0.6057 GB, free: 70.8 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03566/1.088, allocations: 17.81 MB / 0.6231 GB, free: 66.71 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005182/1.093, allocations: 4.163 MB / 0.6272 GB, free: 64.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003592/1.097, allocations: 2.794 MB / 0.6299 GB, free: 63.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003813/1.097, allocations: 159.9 kB / 0.6301 GB, free: 63.75 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002582/1.1, allocations: 2.178 MB / 0.6322 GB, free: 62.85 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 4.809e-06/1.1, allocations: 7.188 kB / 0.6322 GB, free: 62.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=309): time 0.0151/1.115, allocations: 9.956 MB / 0.6419 GB, free: 58.73 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.791e-05/1.115, allocations: 336.2 kB / 0.6423 GB, free: 58.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002986/1.118, allocations: 2.204 MB / 0.6444 GB, free: 57.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003275/1.118, allocations: 33.58 kB / 0.6444 GB, free: 57.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001196/1.12, allocations: 1.794 MB / 0.6462 GB, free: 56.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008332/1.121, allocations: 0.9501 MB / 0.6471 GB, free: 55.42 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001825/1.121, allocations: 3.609 kB / 0.6471 GB, free: 55.42 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001444/1.121, allocations: 425.7 kB / 0.6475 GB, free: 55.06 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/1.123, allocations: 1.766 MB / 0.6493 GB, free: 54.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002195/1.125, allocations: 2.254 MB / 0.6515 GB, free: 53.18 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002286/1.127, allocations: 1.931 MB / 0.6533 GB, free: 52.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/1.127, allocations: 3.875 kB / 0.6533 GB, free: 52.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.007596/1.135, allocations: 5.231 MB / 0.6585 GB, free: 50.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.356e-05/1.135, allocations: 34.52 kB / 0.6585 GB, free: 50.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.428e-05/1.135, allocations: 11.75 kB / 0.6585 GB, free: 50.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003738/1.139, allocations: 1.626 MB / 0.6601 GB, free: 49.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002329/1.141, allocations: 0.5032 MB / 0.6606 GB, free: 49.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01618/1.157, allocations: 15.22 MB / 0.6754 GB, free: 41.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004063/1.162, allocations: 382.1 kB / 0.6758 GB, free: 41.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000348/1.162, allocations: 110.5 kB / 0.6759 GB, free: 41.17 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] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: capacitor.n.v:VARIABLE(flow=false unit = "V" ) "Potential at the pin" type: Real 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.0007351/1.163, allocations: 250.9 kB / 0.6762 GB, free: 41 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.006488/1.169, allocations: 4.95 MB / 0.681 GB, free: 39.12 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006664/1.17, allocations: 321.2 kB / 0.6813 GB, free: 38.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007028/1.177, allocations: 5.267 MB / 0.6864 GB, free: 36.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/1.177, allocations: 28.59 kB / 0.6865 GB, free: 36.94 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/1.177, allocations: 3.875 kB / 0.6865 GB, free: 36.94 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.862e-05/1.177, allocations: 18.05 kB / 0.6865 GB, free: 36.94 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/1.191, allocations: 9.957 MB / 0.6962 GB, free: 30.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/1.191, allocations: 0 / 0.6962 GB, free: 30.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001627/1.193, allocations: 389.1 kB / 0.6966 GB, free: 30.28 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003252/1.196, allocations: 1.683 MB / 0.6982 GB, free: 28.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002521/1.196, allocations: 27.03 kB / 0.6982 GB, free: 28.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01621/1.213, allocations: 16.69 MB / 0.7145 GB, free: 13.74 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.313e-06/1.213, allocations: 15.95 kB / 0.7146 GB, free: 13.72 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01018/1.223, allocations: 8.332 MB / 0.7227 GB, free: 6.148 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002345/1.225, allocations: 0.8574 MB / 0.7235 GB, free: 5.383 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007285/1.226, allocations: 22.83 kB / 0.7236 GB, free: 5.363 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00309/1.229, allocations: 378.5 kB / 0.7239 GB, free: 5.113 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009656/1.23, allocations: 0.5189 MB / 0.7244 GB, free: 4.762 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002103/1.23, allocations: 83.66 kB / 0.7245 GB, free: 4.684 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002247/1.232, allocations: 1.671 MB / 0.7261 GB, free: 3.203 MB / 442.7 MB Notification: Performance of sort global known variables: time 6.02e-07/1.232, allocations: 0 / 0.7261 GB, free: 3.203 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003545/1.236, allocations: 0.984 MB / 0.7271 GB, free: 2.223 MB / 442.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.01453/1.251, allocations: 10.15 MB / 0.737 GB, free: 9.758 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007986/1.259, allocations: 5.467 MB / 0.7423 GB, free: 4.754 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.259, allocations: 5.875 kB / 0.7424 GB, free: 4.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006665/1.265, allocations: 5.058 MB / 0.7473 GB, free: 128 kB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006936/1.272, allocations: 0.9869 MB / 0.7483 GB, free: 0 / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.257/1.529, allocations: 9.634 MB / 0.7577 GB, free: 80.31 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002744/1.532, allocations: 3.315 MB / 0.7609 GB, free: 79.53 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002566/1.535, allocations: 0.7367 MB / 0.7616 GB, free: 79.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002061/1.537, allocations: 1.7 MB / 0.7633 GB, free: 79.5 MB / 458.7 MB Notification: Performance of SimCode: time 7.91e-07/1.537, allocations: 0 / 0.7633 GB, free: 79.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1457/1.682, allocations: 92.21 MB / 0.8533 GB, free: 56.92 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001384/1.683, allocations: 174.5 kB / 0.8535 GB, free: 56.72 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.608/6.29, allocations: 2.406 kB / 0.8535 GB, free: 56.72 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)