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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 208.1 kB / 8.544 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.121/1.121, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008621/0.0008621, allocations: 94.98 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09166/0.09255, allocations: 56.91 MB / 343.2 MB, free: 8.586 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08021/0.1728, allocations: 51.47 MB / 394.7 MB, free: 5.066 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2423/0.4151, allocations: 120.2 MB / 0.5028 GB, free: 5.613 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.4154, allocations: 90.88 kB / 0.5029 GB, free: 5.566 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.3583/0.7737, allocations: 89.66 MB / 0.5905 GB, free: 74.15 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.158e-05/0.7738, allocations: 11.81 kB / 0.5905 GB, free: 74.15 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001573/0.7754, allocations: 0.6178 MB / 0.5911 GB, free: 73.88 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004899/0.7803, allocations: 3.129 MB / 0.5941 GB, free: 73.24 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006099/0.7809, allocations: 307.9 kB / 0.5944 GB, free: 73.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004987/0.7814, allocations: 247.6 kB / 0.5947 GB, free: 73.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007178/0.7886, allocations: 5.206 MB / 0.5997 GB, free: 73.16 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007312/0.7959, allocations: 5.42 MB / 0.605 GB, free: 72.48 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.073e-05/0.7961, allocations: 13.62 kB / 0.6051 GB, free: 72.48 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003617/0.7964, allocations: 7.219 kB / 0.6051 GB, free: 72.48 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001117/0.7965, allocations: 177 kB / 0.6052 GB, free: 72.47 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02661/0.8232, allocations: 18.01 MB / 0.6228 GB, free: 67.07 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002705/0.8259, allocations: 2.217 MB / 0.625 GB, free: 66.25 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003062/0.829, allocations: 2.833 MB / 0.6277 GB, free: 65.26 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000373/0.8294, allocations: 154.3 kB / 0.6279 GB, free: 65.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002436/0.8318, allocations: 2.24 MB / 0.6301 GB, free: 64.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=293): time 4.979e-06/0.8319, allocations: 0 / 0.6301 GB, free: 64.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=309): time 0.01539/0.8472, allocations: 10.11 MB / 0.64 GB, free: 60.18 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.569e-05/0.8474, allocations: 332.1 kB / 0.6403 GB, free: 59.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00343/0.8508, allocations: 2.246 MB / 0.6425 GB, free: 58.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003864/0.8512, allocations: 33.05 kB / 0.6425 GB, free: 58.95 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/0.8523, allocations: 1.334 MB / 0.6438 GB, free: 58.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007956/0.8531, allocations: 0.9516 MB / 0.6447 GB, free: 57.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001708/0.8533, allocations: 1.344 kB / 0.6447 GB, free: 57.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.8534, allocations: 424.1 kB / 0.6451 GB, free: 56.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002426/0.8558, allocations: 1.833 MB / 0.6469 GB, free: 56.26 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002608/0.8585, allocations: 2.309 MB / 0.6492 GB, free: 55.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00267/0.8611, allocations: 2.005 MB / 0.6511 GB, free: 54.34 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.8612, allocations: 10.5 kB / 0.6512 GB, free: 54.33 MB / 442.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.008211/0.8694, allocations: 5.39 MB / 0.6564 GB, free: 52.42 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.8694, allocations: 3.5 kB / 0.6564 GB, free: 52.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.8695, allocations: 10.62 kB / 0.6564 GB, free: 52.42 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003338/0.8728, allocations: 1.666 MB / 0.6581 GB, free: 51.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002187/0.875, allocations: 0.4982 MB / 0.6585 GB, free: 51.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01518/0.8902, allocations: 14.12 MB / 0.6723 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00403/0.8943, allocations: 387.7 kB / 0.6727 GB, free: 43.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003519/0.8946, allocations: 105.5 kB / 0.6728 GB, free: 43.91 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.0006291/0.8953, allocations: 244.4 kB / 0.673 GB, free: 43.74 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000524/0.8958, allocations: 322.9 kB / 0.6733 GB, free: 43.58 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007273/0.9031, allocations: 5.359 MB / 0.6786 GB, free: 41.61 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.135e-05/0.9031, allocations: 29.28 kB / 0.6786 GB, free: 41.61 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.9032, allocations: 3.094 kB / 0.6786 GB, free: 41.61 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-05/0.9032, allocations: 18 kB / 0.6786 GB, free: 41.61 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01589/0.9191, allocations: 10.11 MB / 0.6885 GB, free: 37.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.9191, allocations: 3.906 kB / 0.6885 GB, free: 37.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.9209, allocations: 387.2 kB / 0.6889 GB, free: 36.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003456/0.9244, allocations: 1.712 MB / 0.6905 GB, free: 35.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002635/0.9246, allocations: 27.45 kB / 0.6906 GB, free: 35.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01532/0.94, allocations: 15.56 MB / 0.7058 GB, free: 21.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/0.94, allocations: 8.688 kB / 0.7058 GB, free: 21.17 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01033/0.9503, allocations: 8.561 MB / 0.7141 GB, free: 13.38 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01323/0.9636, allocations: 12.01 MB / 0.7259 GB, free: 2.453 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001931/0.9656, allocations: 0.8575 MB / 0.7267 GB, free: 1.688 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006114/0.9662, allocations: 26.89 kB / 0.7267 GB, free: 1.668 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003036/0.9692, allocations: 378.5 kB / 0.7271 GB, free: 1.398 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007519/0.97, allocations: 455 kB / 0.7275 GB, free: 1.094 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002274/0.9702, allocations: 82.75 kB / 0.7276 GB, free: 1.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002558/0.9728, allocations: 1.74 MB / 0.7293 GB, free: 15.61 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003467/0.9763, allocations: 0.9682 MB / 0.7302 GB, free: 14.64 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.0006252/0.9769, allocations: 371.6 kB / 0.7306 GB, free: 14.33 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.007394/0.9843, allocations: 5.307 MB / 0.7358 GB, free: 9.438 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.9843, allocations: 0 / 0.7358 GB, free: 9.438 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006994/0.9913, allocations: 4.823 MB / 0.7405 GB, free: 5.008 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003479/0.9948, allocations: 0.746 MB / 0.7412 GB, free: 4.43 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1296/1.124, allocations: 8.714 MB / 0.7497 GB, free: 128.8 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003419/1.128, allocations: 3.509 MB / 0.7531 GB, free: 128 MB / 458.7 MB Notification: Performance of SimCode: time 9.42e-07/1.128, allocations: 0 / 0.7531 GB, free: 128 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)