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.001039/0.001039, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.365/1.365, allocations: 221.3 MB / 235.5 MB, free: 2.957 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.001125/0.001125, allocations: 98.34 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.29e-05/3.321e-05, allocations: 4 kB / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09386/0.09392, allocations: 50.41 MB / 394.4 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3415/0.4355, allocations: 120.1 MB / 0.5024 GB, free: 15.28 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4358, allocations: 83.95 kB / 0.5025 GB, free: 15.2 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4321/0.8679, allocations: 85.69 MB / 0.5862 GB, free: 100.3 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.8679, allocations: 0 / 0.5862 GB, free: 100.3 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003796/0.8683, allocations: 120.8 kB / 0.5863 GB, free: 100.2 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.01047/0.8788, allocations: 4.474 MB / 0.5906 GB, free: 98.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.8789, allocations: 7 kB / 0.5907 GB, free: 98.23 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001227/0.8801, allocations: 0.5779 MB / 0.5912 GB, free: 97.9 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/0.8816, allocations: 0.5713 MB / 0.5918 GB, free: 97.63 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005746/0.8874, allocations: 3.086 MB / 0.5948 GB, free: 96.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006437/0.8881, allocations: 433.1 kB / 0.5952 GB, free: 95.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006505/0.8887, allocations: 409.9 kB / 0.5956 GB, free: 95.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008086/0.8968, allocations: 5.918 MB / 0.6014 GB, free: 92.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.901e-05/0.8969, allocations: 5.906 kB / 0.6014 GB, free: 92.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004098/0.8973, allocations: 182.5 kB / 0.6016 GB, free: 92.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/0.8975, allocations: 175 kB / 0.6017 GB, free: 92.81 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008184/0.9057, allocations: 5.33 MB / 0.6069 GB, free: 90.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02804/0.9338, allocations: 18.6 MB / 0.6251 GB, free: 78.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004421/0.9382, allocations: 4.297 MB / 0.6293 GB, free: 74.27 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003077/0.9413, allocations: 2.884 MB / 0.6321 GB, free: 71.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003666/0.9417, allocations: 171 kB / 0.6323 GB, free: 71.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002629/0.9443, allocations: 2.268 MB / 0.6345 GB, free: 68.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 4.598e-06/0.9444, allocations: 0 / 0.6345 GB, free: 68.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=309): time 0.01814/0.9625, allocations: 11.28 MB / 0.6455 GB, free: 57.43 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.9626, allocations: 333.1 kB / 0.6458 GB, free: 57.03 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003595/0.9663, allocations: 2.622 MB / 0.6484 GB, free: 54.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003248/0.9666, allocations: 81.7 kB / 0.6484 GB, free: 54.31 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.968, allocations: 1.789 MB / 0.6502 GB, free: 52.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009417/0.9689, allocations: 0.9927 MB / 0.6512 GB, free: 51.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.9691, allocations: 56 kB / 0.6512 GB, free: 51.48 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.9693, allocations: 428 kB / 0.6516 GB, free: 51.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/0.9715, allocations: 1.825 MB / 0.6534 GB, free: 49.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002364/0.9739, allocations: 2.328 MB / 0.6557 GB, free: 46.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/0.9762, allocations: 2.03 MB / 0.6577 GB, free: 44.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.376e-06/0.9763, allocations: 4 kB / 0.6577 GB, free: 44.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.007514/0.9838, allocations: 5.557 MB / 0.6631 GB, free: 39.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.872e-05/0.9839, allocations: 38.94 kB / 0.6631 GB, free: 39 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.418e-05/0.9839, allocations: 16.25 kB / 0.6631 GB, free: 38.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003228/0.9871, allocations: 1.647 MB / 0.6648 GB, free: 37.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002464/0.9896, allocations: 0.5072 MB / 0.6653 GB, free: 36.82 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0161/1.006, allocations: 15.67 MB / 0.6806 GB, free: 20.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004393/1.01, allocations: 455 kB / 0.681 GB, free: 20.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003445/1.011, allocations: 106.1 kB / 0.6811 GB, free: 20.2 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] 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.0006813/1.011, allocations: 345.6 kB / 0.6814 GB, free: 19.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005894/1.012, allocations: 347.8 kB / 0.6817 GB, free: 19.51 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007653/1.019, allocations: 5.619 MB / 0.6872 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/1.02, allocations: 28 kB / 0.6873 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/1.02, allocations: 4 kB / 0.6873 GB, free: 13.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/1.02, allocations: 19.94 kB / 0.6873 GB, free: 13.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/1.036, allocations: 10.79 MB / 0.6978 GB, free: 2.844 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.227e-05/1.036, allocations: 4 kB / 0.6978 GB, free: 2.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001585/1.037, allocations: 395.8 kB / 0.6982 GB, free: 2.453 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003294/1.041, allocations: 1.702 MB / 0.6999 GB, free: 0.7461 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003235/1.041, allocations: 75.92 kB / 0.6999 GB, free: 0.6719 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2757/1.317, allocations: 17.19 MB / 0.7167 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.941e-06/1.317, allocations: 3.312 kB / 0.7167 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01498/1.332, allocations: 8.696 MB / 0.7252 GB, free: 104.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002547/1.334, allocations: 0.8866 MB / 0.7261 GB, free: 104.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007754/1.335, allocations: 72.08 kB / 0.7261 GB, free: 104.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003324/1.338, allocations: 422.2 kB / 0.7266 GB, free: 104.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001225/1.34, allocations: 0.5177 MB / 0.7271 GB, free: 104.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/1.34, allocations: 92.39 kB / 0.7271 GB, free: 104.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003703/1.344, allocations: 2.017 MB / 0.7291 GB, free: 104.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.344, allocations: 0 / 0.7291 GB, free: 104.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004616/1.348, allocations: 1.13 MB / 0.7302 GB, free: 104.2 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.01305/1.361, allocations: 10.29 MB / 0.7403 GB, free: 101.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00761/1.369, allocations: 5.684 MB / 0.7458 GB, free: 99.31 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.369, allocations: 3.938 kB / 0.7458 GB, free: 99.31 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007353/1.376, allocations: 5.196 MB / 0.7509 GB, free: 97 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004225/1.381, allocations: 0.9452 MB / 0.7518 GB, free: 96.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01976/1.4, allocations: 9.959 MB / 0.7615 GB, free: 93.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002531/1.403, allocations: 3.312 MB / 0.7648 GB, free: 91.99 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002547/1.406, allocations: 0.7733 MB / 0.7655 GB, free: 91.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002046/1.408, allocations: 1.709 MB / 0.7672 GB, free: 90.51 MB / 442.7 MB Notification: Performance of SimCode: time 1.272e-06/1.408, allocations: 2.844 kB / 0.7672 GB, free: 90.51 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1319/1.54, allocations: 104.7 MB / 0.8695 GB, free: 2.551 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001654/1.54, allocations: 218.9 kB / 0.8697 GB, free: 2.324 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.948/6.488, allocations: 0 / 0.8697 GB, free: 2.324 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)