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"}) [: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.001007/0.001007, allocations: 181.9 kB / 8.135 MB, free: 2.223 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.113/1.113, allocations: 221.4 MB / 229.9 MB, free: 3.02 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.0008906/0.0008903, allocations: 99.3 kB / 280.8 MB, free: 1.23 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09419/0.09511, allocations: 55.83 MB / 336.6 MB, free: 9.402 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1838/0.2789, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2345/0.5134, allocations: 119.4 MB / 0.4945 GB, free: 103.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001898/0.5136, allocations: 84.56 kB / 0.4946 GB, free: 103.4 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.1922/0.7058, allocations: 89.07 MB / 0.5816 GB, free: 27.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.7059, allocations: 12 kB / 0.5816 GB, free: 27.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001568/0.7075, allocations: 0.5678 MB / 0.5821 GB, free: 27.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00521/0.7127, allocations: 3.119 MB / 0.5852 GB, free: 24.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006281/0.7133, allocations: 317.7 kB / 0.5855 GB, free: 23.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005686/0.7139, allocations: 239.9 kB / 0.5857 GB, free: 23.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007003/0.7209, allocations: 5.213 MB / 0.5908 GB, free: 18.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007294/0.7282, allocations: 5.416 MB / 0.5961 GB, free: 12.72 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-05/0.7284, allocations: 11.84 kB / 0.5961 GB, free: 12.71 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003739/0.7287, allocations: 8 kB / 0.5961 GB, free: 12.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001082/0.7289, allocations: 179.9 kB / 0.5963 GB, free: 12.53 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02835/0.7572, allocations: 18 MB / 0.6139 GB, free: 10.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003297/0.7606, allocations: 2.222 MB / 0.616 GB, free: 8 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003663/0.7642, allocations: 2.828 MB / 0.6188 GB, free: 5.164 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003891/0.7646, allocations: 155.3 kB / 0.619 GB, free: 4.992 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003152/0.7678, allocations: 2.236 MB / 0.6211 GB, free: 2.688 MB / 394.7 MB Notification: Performance of pre-optimization done (n=293): time 5.29e-06/0.7678, allocations: 0 / 0.6211 GB, free: 2.688 MB / 394.7 MB Notification: Performance of matching and sorting (n=309): time 0.0172/0.785, allocations: 10.11 MB / 0.631 GB, free: 8.438 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001535/0.7852, allocations: 333.2 kB / 0.6313 GB, free: 8.043 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003405/0.7886, allocations: 2.25 MB / 0.6335 GB, free: 5.785 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003198/0.789, allocations: 29.7 kB / 0.6335 GB, free: 5.75 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001171/0.7902, allocations: 1.336 MB / 0.6349 GB, free: 4.391 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009521/0.7911, allocations: 0.9547 MB / 0.6358 GB, free: 3.422 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.7913, allocations: 0 / 0.6358 GB, free: 3.422 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002102/0.7915, allocations: 424.1 kB / 0.6362 GB, free: 3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002536/0.7941, allocations: 1.825 MB / 0.638 GB, free: 1.172 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002889/0.797, allocations: 2.314 MB / 0.6402 GB, free: 14.69 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002747/0.7997, allocations: 2.008 MB / 0.6422 GB, free: 12.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/0.7997, allocations: 7.938 kB / 0.6422 GB, free: 12.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.008367/0.8081, allocations: 5.391 MB / 0.6475 GB, free: 7.207 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.8082, allocations: 4.25 kB / 0.6475 GB, free: 7.203 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.099e-05/0.8082, allocations: 16 kB / 0.6475 GB, free: 7.188 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003684/0.8119, allocations: 1.665 MB / 0.6491 GB, free: 5.504 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002277/0.8142, allocations: 0.4954 MB / 0.6496 GB, free: 5.008 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1269/0.9411, allocations: 14.12 MB / 0.6634 GB, free: 114.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003705/0.9449, allocations: 380 kB / 0.6637 GB, free: 114.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004026/0.9453, allocations: 102.6 kB / 0.6638 GB, free: 114.6 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.0007283/0.946, allocations: 238.6 kB / 0.6641 GB, free: 114.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006373/0.9467, allocations: 328.8 kB / 0.6644 GB, free: 114.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007066/0.9537, allocations: 5.361 MB / 0.6696 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/0.9538, allocations: 29.06 kB / 0.6697 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.9538, allocations: 3.75 kB / 0.6697 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.413e-05/0.9538, allocations: 15.23 kB / 0.6697 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.9673, allocations: 10.11 MB / 0.6795 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.9674, allocations: 6.875 kB / 0.6795 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/0.969, allocations: 378.2 kB / 0.6799 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003277/0.9723, allocations: 1.72 MB / 0.6816 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002206/0.9726, allocations: 25.09 kB / 0.6816 GB, free: 113.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01479/0.9874, allocations: 15.57 MB / 0.6968 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.9874, allocations: 2.906 kB / 0.6968 GB, free: 108.7 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009585/0.997, allocations: 8.573 MB / 0.7052 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01407/1.011, allocations: 12 MB / 0.7169 GB, free: 101.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002066/1.013, allocations: 0.8567 MB / 0.7177 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008371/1.014, allocations: 21.12 kB / 0.7178 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00327/1.017, allocations: 381.5 kB / 0.7181 GB, free: 100.9 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008214/1.018, allocations: 449.9 kB / 0.7186 GB, free: 100.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002185/1.018, allocations: 92.55 kB / 0.7186 GB, free: 100.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002338/1.021, allocations: 1.698 MB / 0.7203 GB, free: 100.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003316/1.024, allocations: 0.957 MB / 0.7212 GB, free: 100.1 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.0006633/1.025, allocations: 381.1 kB / 0.7216 GB, free: 100 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006322/1.031, allocations: 5.302 MB / 0.7268 GB, free: 97.87 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/1.031, allocations: 3.5 kB / 0.7268 GB, free: 97.87 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006002/1.037, allocations: 4.819 MB / 0.7315 GB, free: 95.85 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003479/1.041, allocations: 0.7421 MB / 0.7322 GB, free: 95.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0168/1.057, allocations: 8.697 MB / 0.7407 GB, free: 88.84 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0038/1.061, allocations: 3.507 MB / 0.7441 GB, free: 86.12 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/1.061, allocations: 0 / 0.7441 GB, free: 86.12 MB / 426.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)