Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive") translateModel(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_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 3.2.3+maint.om/package.mo): time 0.001525/0.001525, allocations: 181.8 kB / 8.476 MB, free: 1.863 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.193/1.193, allocations: 205.2 MB / 214.1 MB, free: 5.438 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008523/0.0008523, allocations: 87.72 kB / 262.1 MB, free: 5.504 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.173e-06/7.203e-06, allocations: 4 kB / 315 MB, free: 41.53 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06506/0.06508, allocations: 47.57 MB / 362.6 MB, free: 10 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2421/0.3072, allocations: 119.1 MB / 481.7 MB, free: 6.008 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002576/0.3076, allocations: 87.39 kB / 481.7 MB, free: 5.965 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.213/0.5206, allocations: 83.79 MB / 0.5523 GB, free: 9.188 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002963/0.5209, allocations: 123.9 kB / 0.5524 GB, free: 9.066 MB / 410.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.009788/0.5307, allocations: 4.437 MB / 0.5567 GB, free: 4.555 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/0.5308, allocations: 12.03 kB / 0.5567 GB, free: 4.543 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001925/0.5327, allocations: 0.5717 MB / 0.5573 GB, free: 3.965 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005976/0.5387, allocations: 3.134 MB / 0.5604 GB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007334/0.5394, allocations: 309.7 kB / 0.5606 GB, free: 456 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006004/0.5401, allocations: 243.9 kB / 0.5609 GB, free: 212 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008572/0.5486, allocations: 5.225 MB / 0.566 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009337/0.558, allocations: 5.435 MB / 0.5713 GB, free: 5.297 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.754e-05/0.5581, allocations: 11.94 kB / 0.5713 GB, free: 5.285 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003778/0.5585, allocations: 11.91 kB / 0.5713 GB, free: 5.273 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001508/0.5587, allocations: 179.9 kB / 0.5715 GB, free: 5.098 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1385/0.6971, allocations: 18.01 MB / 0.5891 GB, free: 132.8 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002403/0.6996, allocations: 2.221 MB / 0.5912 GB, free: 132.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002957/0.7026, allocations: 2.83 MB / 0.594 GB, free: 132.7 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003464/0.7029, allocations: 159.1 kB / 0.5942 GB, free: 132.6 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002471/0.7054, allocations: 2.238 MB / 0.5963 GB, free: 132.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 4.909e-06/0.7054, allocations: 0 / 0.5963 GB, free: 132.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=309): time 0.0139/0.7193, allocations: 10.12 MB / 0.6062 GB, free: 131.2 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.914e-05/0.7194, allocations: 331.8 kB / 0.6065 GB, free: 130.9 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0027/0.7221, allocations: 2.25 MB / 0.6087 GB, free: 130.7 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002105/0.7224, allocations: 33.98 kB / 0.6088 GB, free: 130.6 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008388/0.7232, allocations: 1.334 MB / 0.6101 GB, free: 130.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006106/0.7238, allocations: 0.957 MB / 0.611 GB, free: 129.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/0.724, allocations: 0 / 0.611 GB, free: 129.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.7241, allocations: 424.8 kB / 0.6114 GB, free: 129.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002041/0.7262, allocations: 1.826 MB / 0.6132 GB, free: 129.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002255/0.7284, allocations: 2.32 MB / 0.6155 GB, free: 128.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002253/0.7307, allocations: 2.011 MB / 0.6174 GB, free: 128.8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.7307, allocations: 3.344 kB / 0.6174 GB, free: 128.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.006948/0.7377, allocations: 5.401 MB / 0.6227 GB, free: 127.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.7377, allocations: 7.031 kB / 0.6227 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.115e-05/0.7378, allocations: 15.67 kB / 0.6227 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003156/0.7409, allocations: 1.67 MB / 0.6244 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002086/0.743, allocations: 0.4957 MB / 0.6248 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01439/0.7574, allocations: 14.14 MB / 0.6387 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003931/0.7614, allocations: 384.3 kB / 0.639 GB, free: 119 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002808/0.7617, allocations: 100.2 kB / 0.6391 GB, free: 119 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.0006453/0.7623, allocations: 245.5 kB / 0.6393 GB, free: 118.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004631/0.7628, allocations: 318.2 kB / 0.6397 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007368/0.7702, allocations: 5.379 MB / 0.6449 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/0.7702, allocations: 26.94 kB / 0.6449 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.799e-06/0.7702, allocations: 3.969 kB / 0.6449 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-05/0.7703, allocations: 19.44 kB / 0.645 GB, free: 116.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01406/0.7843, allocations: 10.12 MB / 0.6548 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.7844, allocations: 0 / 0.6548 GB, free: 110.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001796/0.7862, allocations: 380 kB / 0.6552 GB, free: 110.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003449/0.7896, allocations: 1.71 MB / 0.6569 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002446/0.7899, allocations: 27.78 kB / 0.6569 GB, free: 108.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/0.8049, allocations: 15.6 MB / 0.6721 GB, free: 94.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.805, allocations: 4 kB / 0.6721 GB, free: 94.66 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009683/0.8147, allocations: 8.576 MB / 0.6805 GB, free: 86.87 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001942/0.8167, allocations: 0.854 MB / 0.6813 GB, free: 86.11 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006132/0.8173, allocations: 27.42 kB / 0.6814 GB, free: 86.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003113/0.8204, allocations: 375.6 kB / 0.6817 GB, free: 85.85 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007645/0.8212, allocations: 450.3 kB / 0.6822 GB, free: 85.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002262/0.8214, allocations: 85.56 kB / 0.6822 GB, free: 85.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002113/0.8235, allocations: 1.703 MB / 0.6839 GB, free: 83.96 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002894/0.8264, allocations: 0.9472 MB / 0.6848 GB, free: 83.02 MB / 426.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.0006597/0.8271, allocations: 372.4 kB / 0.6852 GB, free: 82.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006344/0.8335, allocations: 5.307 MB / 0.6904 GB, free: 77.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.8335, allocations: 3.375 kB / 0.6904 GB, free: 77.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00585/0.8393, allocations: 4.833 MB / 0.6951 GB, free: 73.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003508/0.8429, allocations: 0.7411 MB / 0.6958 GB, free: 73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01647/0.8594, allocations: 8.714 MB / 0.7043 GB, free: 65.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003245/0.8626, allocations: 3.462 MB / 0.7077 GB, free: 62.73 MB / 426.7 MB Notification: Performance of SimCode: time 8.32e-07/0.8627, allocations: 0 / 0.7077 GB, free: 62.73 MB / 426.7 MB Notification: Performance of Templates: time 0.08144/0.9441, allocations: 63.61 MB / 0.7698 GB, free: 4.918 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe 2>&1)