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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_InverterDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_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 3.2.3+maint.om/package.mo): time 0.0009414/0.0009414, allocations: 188.8 kB / 8.482 MB, free: 1.727 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.035/1.035, allocations: 205.2 MB / 214.1 MB, free: 1.883 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.0008891/0.0008891, allocations: 87.38 kB / 262.1 MB, free: 1.836 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1338/0.1347, allocations: 52.97 MB / 315.1 MB, free: 22.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06629/0.201, allocations: 47.58 MB / 362.6 MB, free: 7.289 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2326/0.4336, allocations: 119.4 MB / 482 MB, free: 8.766 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.4339, allocations: 87.45 kB / 482.1 MB, free: 8.723 MB / 362.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.3326/0.7665, allocations: 88.36 MB / 0.5571 GB, free: 91.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.7665, allocations: 11.16 kB / 0.5571 GB, free: 91.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001549/0.7681, allocations: 0.5712 MB / 0.5576 GB, free: 91.03 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00578/0.7739, allocations: 3.135 MB / 0.5607 GB, free: 90.36 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006334/0.7745, allocations: 306.6 kB / 0.561 GB, free: 90.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006449/0.7752, allocations: 240 kB / 0.5612 GB, free: 90.31 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006895/0.7821, allocations: 5.223 MB / 0.5663 GB, free: 90.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006819/0.7889, allocations: 5.445 MB / 0.5716 GB, free: 89.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-05/0.789, allocations: 10.69 kB / 0.5717 GB, free: 89.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003588/0.7894, allocations: 11.84 kB / 0.5717 GB, free: 89.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/0.7895, allocations: 187.1 kB / 0.5718 GB, free: 89.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02473/0.8142, allocations: 18.01 MB / 0.5894 GB, free: 80.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002741/0.817, allocations: 2.225 MB / 0.5916 GB, free: 79.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003449/0.8205, allocations: 2.84 MB / 0.5944 GB, free: 78.79 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003449/0.8208, allocations: 150.9 kB / 0.5945 GB, free: 78.7 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002748/0.8236, allocations: 2.237 MB / 0.5967 GB, free: 77.79 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 5.109e-06/0.8236, allocations: 0 / 0.5967 GB, free: 77.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=309): time 0.01497/0.8386, allocations: 10.13 MB / 0.6066 GB, free: 71.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.961e-05/0.8387, allocations: 328.8 kB / 0.6069 GB, free: 71.12 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002646/0.8414, allocations: 2.25 MB / 0.6091 GB, free: 69.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001872/0.8416, allocations: 33.7 kB / 0.6091 GB, free: 69.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007591/0.8423, allocations: 1.333 MB / 0.6105 GB, free: 67.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005253/0.8429, allocations: 0.9489 MB / 0.6114 GB, free: 67.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/0.843, allocations: 0 / 0.6114 GB, free: 67.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.8432, allocations: 434.2 kB / 0.6118 GB, free: 66.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001922/0.8451, allocations: 1.827 MB / 0.6136 GB, free: 65.03 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002216/0.8473, allocations: 2.317 MB / 0.6158 GB, free: 62.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002118/0.8494, allocations: 2.012 MB / 0.6178 GB, free: 61.06 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.8494, allocations: 4 kB / 0.6178 GB, free: 61.05 MB / 410.7 MB Notification: Performance of matching and sorting (n=377) (initialization): time 0.0065/0.856, allocations: 5.396 MB / 0.6231 GB, free: 56.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.856, allocations: 4 kB / 0.6231 GB, free: 56.26 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.856, allocations: 15.84 kB / 0.6231 GB, free: 56.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003034/0.859, allocations: 1.667 MB / 0.6247 GB, free: 54.87 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001891/0.8609, allocations: 0.4971 MB / 0.6252 GB, free: 54.44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01423/0.8752, allocations: 14.14 MB / 0.639 GB, free: 41.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003724/0.8789, allocations: 390.5 kB / 0.6394 GB, free: 41.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002372/0.8792, allocations: 106.5 kB / 0.6395 GB, free: 41.22 MB / 410.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.0005916/0.8798, allocations: 234.8 kB / 0.6397 GB, free: 40.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004321/0.8802, allocations: 320.8 kB / 0.64 GB, free: 40.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007213/0.8874, allocations: 5.376 MB / 0.6453 GB, free: 36.07 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/0.8875, allocations: 32.64 kB / 0.6453 GB, free: 36.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.267e-06/0.8875, allocations: 4 kB / 0.6453 GB, free: 36.04 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.081e-05/0.8875, allocations: 18.42 kB / 0.6453 GB, free: 36.04 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01311/0.9006, allocations: 10.13 MB / 0.6552 GB, free: 26.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.776e-06/0.9007, allocations: 4 kB / 0.6552 GB, free: 26.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/0.9023, allocations: 375.5 kB / 0.6556 GB, free: 25.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003222/0.9056, allocations: 1.705 MB / 0.6572 GB, free: 23.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002038/0.9058, allocations: 31.97 kB / 0.6573 GB, free: 23.95 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01439/0.9202, allocations: 15.59 MB / 0.6725 GB, free: 7.918 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.9202, allocations: 4.062 kB / 0.6725 GB, free: 7.914 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009271/0.9295, allocations: 8.582 MB / 0.6809 GB, free: 15.13 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01399/0.9435, allocations: 12.01 MB / 0.6926 GB, free: 2.926 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00177/0.9453, allocations: 0.8524 MB / 0.6934 GB, free: 2.051 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005508/0.9458, allocations: 31.92 kB / 0.6935 GB, free: 2.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003067/0.9489, allocations: 375 kB / 0.6938 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008291/0.9498, allocations: 457.6 kB / 0.6943 GB, free: 1.207 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000223/0.95, allocations: 83.92 kB / 0.6943 GB, free: 1.125 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.1029/1.053, allocations: 1.7 MB / 0.696 GB, free: 141.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003891/1.057, allocations: 0.9636 MB / 0.6969 GB, free: 141.7 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.0006292/1.057, allocations: 363.1 kB / 0.6973 GB, free: 141.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00613/1.064, allocations: 5.303 MB / 0.7025 GB, free: 141 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/1.064, allocations: 2.5 kB / 0.7025 GB, free: 141 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005547/1.069, allocations: 4.827 MB / 0.7072 GB, free: 140.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003049/1.072, allocations: 0.7402 MB / 0.7079 GB, free: 140.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/1.087, allocations: 8.729 MB / 0.7164 GB, free: 138.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003155/1.091, allocations: 3.518 MB / 0.7199 GB, free: 138.1 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/1.091, allocations: 0 / 0.7199 GB, free: 138.1 MB / 426.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_InverterDrive_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_InverterDrive.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive.pipe 2>&1)