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: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|capacitor.v|inductor.inductor.2..i|inductor.inductor.3..i|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|capacitor.v|inductor.inductor.2..i|inductor.inductor.3..i|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive") [: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 4.0.0+maint.om/package.mo): time 0.0009504/0.0009528, allocations: 180.2 kB / 8.13 MB, free: 2.199 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.138/1.138, allocations: 221.4 MB / 229.9 MB, free: 3.047 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.0008868/0.0008867, allocations: 100.2 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.895e-06/7.945e-06, allocations: 4 kB / 336.5 MB, free: 9.488 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1756/0.1756, allocations: 50.39 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2448/0.4204, allocations: 119.4 MB / 0.4944 GB, free: 81.24 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002053/0.4207, allocations: 88.73 kB / 0.4945 GB, free: 81.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.1877/0.6084, allocations: 84.48 MB / 0.577 GB, free: 21.62 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002802/0.6087, allocations: 119.5 kB / 0.5771 GB, free: 21.51 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.008681/0.6174, allocations: 4.47 MB / 0.5815 GB, free: 16.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.6174, allocations: 12.02 kB / 0.5815 GB, free: 16.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00119/0.6186, allocations: 0.5755 MB / 0.5821 GB, free: 16.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005301/0.6239, allocations: 3.127 MB / 0.5851 GB, free: 13.24 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006779/0.6246, allocations: 305.7 kB / 0.5854 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005875/0.6252, allocations: 247.9 kB / 0.5856 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007028/0.6323, allocations: 5.205 MB / 0.5907 GB, free: 7.477 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006911/0.6392, allocations: 5.419 MB / 0.596 GB, free: 1.816 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.953e-05/0.6393, allocations: 11.84 kB / 0.596 GB, free: 1.805 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000359/0.6397, allocations: 8 kB / 0.596 GB, free: 1.797 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/0.6398, allocations: 183.9 kB / 0.5962 GB, free: 1.617 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02838/0.6682, allocations: 18 MB / 0.6138 GB, free: 15.47 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002975/0.6712, allocations: 2.225 MB / 0.6159 GB, free: 13.25 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0036/0.6748, allocations: 2.832 MB / 0.6187 GB, free: 10.41 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003771/0.6752, allocations: 147.3 kB / 0.6189 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002922/0.6781, allocations: 2.243 MB / 0.621 GB, free: 7.938 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 4.469e-06/0.6782, allocations: 0 / 0.621 GB, free: 7.938 MB / 410.7 MB Notification: Performance of matching and sorting (n=309): time 0.01743/0.6956, allocations: 10.1 MB / 0.6309 GB, free: 13.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.6958, allocations: 340.6 kB / 0.6312 GB, free: 13.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003422/0.6992, allocations: 2.247 MB / 0.6334 GB, free: 11.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000287/0.6995, allocations: 33.7 kB / 0.6335 GB, free: 11.01 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.7007, allocations: 1.327 MB / 0.6348 GB, free: 9.672 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008546/0.7015, allocations: 0.9541 MB / 0.6357 GB, free: 8.707 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001739/0.7017, allocations: 0 / 0.6357 GB, free: 8.707 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001988/0.7019, allocations: 424.1 kB / 0.6361 GB, free: 8.285 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/0.7044, allocations: 1.829 MB / 0.6379 GB, free: 6.453 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00286/0.7072, allocations: 2.322 MB / 0.6401 GB, free: 3.965 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002803/0.7101, allocations: 2.004 MB / 0.6421 GB, free: 1.941 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/0.7101, allocations: 0 / 0.6421 GB, free: 1.941 MB / 426.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.008411/0.7185, allocations: 5.394 MB / 0.6474 GB, free: 12.5 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.7185, allocations: 8 kB / 0.6474 GB, free: 12.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/0.7186, allocations: 8 kB / 0.6474 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003806/0.7224, allocations: 1.66 MB / 0.649 GB, free: 10.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002355/0.7247, allocations: 0.5031 MB / 0.6495 GB, free: 10.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1277/0.8524, allocations: 14.12 MB / 0.6633 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004019/0.8565, allocations: 390.9 kB / 0.6637 GB, free: 127.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002742/0.8568, allocations: 95.12 kB / 0.6638 GB, free: 127.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] 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.0006348/0.8574, allocations: 243 kB / 0.664 GB, free: 127.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004613/0.8579, allocations: 326.3 kB / 0.6643 GB, free: 127.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007062/0.865, allocations: 5.365 MB / 0.6695 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.865, allocations: 27.91 kB / 0.6696 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.865, allocations: 3.438 kB / 0.6696 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.215e-05/0.865, allocations: 14.72 kB / 0.6696 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01326/0.8783, allocations: 10.1 MB / 0.6794 GB, free: 127 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.708e-06/0.8783, allocations: 11.19 kB / 0.6795 GB, free: 127 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001705/0.88, allocations: 383.4 kB / 0.6798 GB, free: 127 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003479/0.8835, allocations: 1.709 MB / 0.6815 GB, free: 126.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000216/0.8838, allocations: 30.59 kB / 0.6815 GB, free: 126.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01522/0.899, allocations: 15.57 MB / 0.6967 GB, free: 122.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.899, allocations: 3.156 kB / 0.6967 GB, free: 122.1 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009755/0.9088, allocations: 8.566 MB / 0.7051 GB, free: 121.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002442/0.9112, allocations: 0.8546 MB / 0.7059 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008579/0.9121, allocations: 27.47 kB / 0.706 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003185/0.9153, allocations: 381.1 kB / 0.7063 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007638/0.9161, allocations: 443.9 kB / 0.7067 GB, free: 121.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002169/0.9163, allocations: 85.95 kB / 0.7068 GB, free: 121.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.002118/0.9184, allocations: 1.697 MB / 0.7085 GB, free: 121 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002536/0.921, allocations: 0.9532 MB / 0.7094 GB, free: 121 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.0005933/0.9216, allocations: 375.8 kB / 0.7098 GB, free: 120.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006447/0.928, allocations: 5.294 MB / 0.7149 GB, free: 119.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.9281, allocations: 1.156 kB / 0.7149 GB, free: 119.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006885/0.935, allocations: 4.835 MB / 0.7197 GB, free: 117.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004009/0.939, allocations: 0.7352 MB / 0.7204 GB, free: 117.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01893/0.9579, allocations: 8.69 MB / 0.7289 GB, free: 114.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004305/0.9623, allocations: 3.471 MB / 0.7323 GB, free: 113.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.704e-06/0.9623, allocations: 3.844 kB / 0.7323 GB, free: 113.3 MB / 442.7 MB Notification: Performance of Templates: time 0.08527/1.048, allocations: 63.58 MB / 0.7943 GB, free: 69.43 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe 2>&1)