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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 88.31 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.648e-05/2.627e-05, allocations: 4 kB / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 50.43 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3884/0.4941, allocations: 119.4 MB / 0.4951 GB, free: 7.195 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/0.4944, allocations: 90.98 kB / 0.4952 GB, free: 7.109 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4542/0.9486, allocations: 84.61 MB / 0.5778 GB, free: 99.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.9486, allocations: 0 / 0.5778 GB, free: 99.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004325/0.949, allocations: 117 kB / 0.5779 GB, free: 99.05 MB / 426.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.01212/0.9612, allocations: 4.485 MB / 0.5823 GB, free: 97.36 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.9612, allocations: 11.75 kB / 0.5823 GB, free: 97.36 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002505/0.9638, allocations: 0.5647 MB / 0.5829 GB, free: 97.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006191/0.97, allocations: 3.094 MB / 0.5859 GB, free: 96.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006874/0.9707, allocations: 298.6 kB / 0.5862 GB, free: 96.37 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001007/0.9717, allocations: 244.2 kB / 0.5864 GB, free: 96.37 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009124/0.9808, allocations: 5.091 MB / 0.5914 GB, free: 95.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009968/0.9908, allocations: 5.324 MB / 0.5966 GB, free: 93.08 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.602e-05/0.991, allocations: 7.406 kB / 0.5966 GB, free: 93.08 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003895/0.9914, allocations: 10.83 kB / 0.5966 GB, free: 93.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001295/0.9915, allocations: 177 kB / 0.5968 GB, free: 93.06 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02865/1.02, allocations: 17.81 MB / 0.6142 GB, free: 84.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004384/1.025, allocations: 4.159 MB / 0.6182 GB, free: 82.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003121/1.028, allocations: 2.798 MB / 0.621 GB, free: 81.28 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003702/1.028, allocations: 147.5 kB / 0.6211 GB, free: 81.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002667/1.031, allocations: 2.187 MB / 0.6232 GB, free: 79.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 4.739e-06/1.031, allocations: 0 / 0.6232 GB, free: 79.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=309): time 0.0151/1.046, allocations: 9.971 MB / 0.633 GB, free: 70.58 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.408e-05/1.046, allocations: 328.1 kB / 0.6333 GB, free: 70.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/1.049, allocations: 2.215 MB / 0.6355 GB, free: 68.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005994/1.05, allocations: 29.7 kB / 0.6355 GB, free: 68.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/1.051, allocations: 1.789 MB / 0.6372 GB, free: 66.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009259/1.052, allocations: 0.953 MB / 0.6382 GB, free: 65.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001803/1.052, allocations: 4 kB / 0.6382 GB, free: 65.71 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/1.052, allocations: 424.8 kB / 0.6386 GB, free: 65.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0022/1.055, allocations: 1.766 MB / 0.6403 GB, free: 63.75 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/1.057, allocations: 2.253 MB / 0.6425 GB, free: 61.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/1.059, allocations: 1.937 MB / 0.6444 GB, free: 59.91 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/1.059, allocations: 4 kB / 0.6444 GB, free: 59.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.006648/1.066, allocations: 5.226 MB / 0.6495 GB, free: 54.91 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.052e-05/1.066, allocations: 37.7 kB / 0.6495 GB, free: 54.87 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.806e-05/1.066, allocations: 16.25 kB / 0.6495 GB, free: 54.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/1.069, allocations: 1.625 MB / 0.6511 GB, free: 53.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002102/1.071, allocations: 0.5071 MB / 0.6516 GB, free: 52.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01596/1.087, allocations: 15.22 MB / 0.6665 GB, free: 37.15 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004179/1.091, allocations: 387.6 kB / 0.6669 GB, free: 36.77 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005129/1.092, allocations: 104 kB / 0.667 GB, free: 36.67 MB / 426.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.0007624/1.093, allocations: 240.6 kB / 0.6672 GB, free: 36.43 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00677/1.099, allocations: 4.96 MB / 0.672 GB, free: 31.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007367/1.1, allocations: 320.2 kB / 0.6723 GB, free: 31.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007306/1.107, allocations: 5.256 MB / 0.6775 GB, free: 25.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-05/1.107, allocations: 32 kB / 0.6775 GB, free: 25.73 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/1.107, allocations: 96 / 0.6775 GB, free: 25.73 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-05/1.107, allocations: 23.84 kB / 0.6775 GB, free: 25.71 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0141/1.122, allocations: 9.96 MB / 0.6872 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.094e-05/1.122, allocations: 4 kB / 0.6873 GB, free: 15.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001617/1.123, allocations: 383.9 kB / 0.6876 GB, free: 15.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003266/1.127, allocations: 1.689 MB / 0.6893 GB, free: 13.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003368/1.127, allocations: 23.97 kB / 0.6893 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01717/1.144, allocations: 16.69 MB / 0.7056 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/1.144, allocations: 7.938 kB / 0.7056 GB, free: 12.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01296/1.157, allocations: 8.346 MB / 0.7137 GB, free: 3.848 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002557/1.16, allocations: 0.8562 MB / 0.7146 GB, free: 2.969 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009342/1.161, allocations: 16 kB / 0.7146 GB, free: 2.953 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00348/1.164, allocations: 371.5 kB / 0.715 GB, free: 2.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001226/1.165, allocations: 0.5255 MB / 0.7155 GB, free: 2.066 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002569/1.166, allocations: 83.97 kB / 0.7155 GB, free: 1.984 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003082/1.169, allocations: 1.67 MB / 0.7172 GB, free: 316 kB / 442.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.169, allocations: 0 / 0.7172 GB, free: 316 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.2496/1.418, allocations: 0.9751 MB / 0.7181 GB, free: 105.9 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.01605/1.434, allocations: 9.898 MB / 0.7278 GB, free: 103.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009074/1.444, allocations: 5.472 MB / 0.7331 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.444, allocations: 4.75 kB / 0.7331 GB, free: 103.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008069/1.452, allocations: 5.071 MB / 0.7381 GB, free: 102.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005132/1.457, allocations: 0.7767 MB / 0.7389 GB, free: 102.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02566/1.483, allocations: 9.628 MB / 0.7483 GB, free: 100.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004155/1.487, allocations: 3.32 MB / 0.7515 GB, free: 99.36 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003138/1.49, allocations: 0.7332 MB / 0.7522 GB, free: 99.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002841/1.493, allocations: 1.692 MB / 0.7539 GB, free: 97.89 MB / 442.7 MB Notification: Performance of SimCode: time 9.32e-07/1.493, allocations: 3.75 kB / 0.7539 GB, free: 97.89 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1284/1.621, allocations: 92.14 MB / 0.8439 GB, free: 34.27 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001361/1.621, allocations: 170.8 kB / 0.844 GB, free: 34.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.689/6.31, allocations: 0 / 0.844 GB, free: 34.08 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe 2>&1)