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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001226/0.001226, allocations: 181.4 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.624/1.624, allocations: 205.4 MB / 223.1 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009916/0.0009916, allocations: 96.14 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003475/0.0003476, allocations: 4 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3106, allocations: 47.57 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.4427, allocations: 119.9 MB / 495.8 MB, free: 8.648 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002838/0.4431, allocations: 91.94 kB / 495.9 MB, free: 8.559 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.353/0.7961, allocations: 84.83 MB / 0.5672 GB, free: 50.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7962, allocations: 0 / 0.5672 GB, free: 50.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000338/0.7965, allocations: 115.9 kB / 0.5673 GB, free: 50.8 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.01172/0.8082, allocations: 4.989 MB / 0.5721 GB, free: 45.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.65e-05/0.8083, allocations: 12.03 kB / 0.5721 GB, free: 45.71 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001715/0.81, allocations: 0.5715 MB / 0.5727 GB, free: 45.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001495/0.8115, allocations: 0.5717 MB / 0.5733 GB, free: 44.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006123/0.8176, allocations: 3.115 MB / 0.5763 GB, free: 41.37 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000656/0.8183, allocations: 437.6 kB / 0.5767 GB, free: 40.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007463/0.8191, allocations: 399.9 kB / 0.5771 GB, free: 40.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01408/0.8332, allocations: 6.508 MB / 0.5835 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001756/0.8334, allocations: 11.84 kB / 0.5835 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001025/0.8344, allocations: 184 kB / 0.5836 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000144/0.8346, allocations: 171.9 kB / 0.5838 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01442/0.849, allocations: 6.441 MB / 0.5901 GB, free: 26.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03078/0.8799, allocations: 18.62 MB / 0.6083 GB, free: 8.047 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008727/0.8886, allocations: 4.856 MB / 0.613 GB, free: 3.211 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004988/0.8892, allocations: 159.2 kB / 0.6132 GB, free: 3.035 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006213/0.8954, allocations: 2.81 MB / 0.6159 GB, free: 156 kB / 378.7 MB Notification: Performance of pre-optimization done (n=293): time 5.571e-06/0.8955, allocations: 4 kB / 0.6159 GB, free: 152 kB / 378.7 MB Notification: Performance of matching and sorting (n=319): time 0.06478/0.9603, allocations: 23.67 MB / 0.639 GB, free: 8.188 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.9605, allocations: 329.2 kB / 0.6394 GB, free: 7.797 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005201/0.9657, allocations: 2.649 MB / 0.6419 GB, free: 5.141 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006809/0.9664, allocations: 85.7 kB / 0.642 GB, free: 5.051 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001973/0.9684, allocations: 1.795 MB / 0.6438 GB, free: 3.238 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001269/0.9696, allocations: 1.028 MB / 0.6448 GB, free: 2.195 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003685/0.97, allocations: 64 kB / 0.6448 GB, free: 2.133 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002525/0.9703, allocations: 432.2 kB / 0.6453 GB, free: 1.703 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2231/1.193, allocations: 2.434 MB / 0.6476 GB, free: 86.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006397/1.2, allocations: 2.94 MB / 0.6505 GB, free: 86.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00584/1.206, allocations: 2.636 MB / 0.6531 GB, free: 86.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-05/1.206, allocations: 6.781 kB / 0.6531 GB, free: 86.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.01377/1.22, allocations: 6.849 MB / 0.6598 GB, free: 85.99 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.044e-05/1.22, allocations: 36.8 kB / 0.6598 GB, free: 85.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/1.22, allocations: 12.16 kB / 0.6598 GB, free: 85.96 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003951/1.224, allocations: 1.912 MB / 0.6617 GB, free: 85.91 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002128/1.226, allocations: 490.5 kB / 0.6621 GB, free: 85.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02306/1.249, allocations: 17.52 MB / 0.6793 GB, free: 81.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00491/1.254, allocations: 456.1 kB / 0.6797 GB, free: 81.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004558/1.254, allocations: 104.6 kB / 0.6798 GB, free: 81.52 MB / 410.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 260 * 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: 2 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {23 96} Notification: Performance of prepare postOptimizeDAE: time 0.003954/1.258, allocations: 1.551 MB / 0.6813 GB, free: 80.79 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/1.259, allocations: 349.2 kB / 0.6816 GB, free: 80.79 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/1.274, allocations: 7.162 MB / 0.6886 GB, free: 78.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.477e-05/1.274, allocations: 32 kB / 0.6887 GB, free: 78.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/1.274, allocations: 0 / 0.6887 GB, free: 78.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.684e-05/1.274, allocations: 13.22 kB / 0.6887 GB, free: 78.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02387/1.298, allocations: 12.16 MB / 0.7006 GB, free: 73.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/1.298, allocations: 5.844 kB / 0.7006 GB, free: 73.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001532/1.3, allocations: 364.7 kB / 0.7009 GB, free: 73.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004701/1.305, allocations: 1.973 MB / 0.7028 GB, free: 73.36 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004009/1.305, allocations: 77.42 kB / 0.7029 GB, free: 73.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02234/1.327, allocations: 19.08 MB / 0.7215 GB, free: 57.54 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/1.327, allocations: 5.219 kB / 0.7215 GB, free: 57.54 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02203/1.349, allocations: 10.63 MB / 0.7319 GB, free: 48.25 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003546/1.353, allocations: 0.9049 MB / 0.7328 GB, free: 47.44 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001809/1.355, allocations: 74.77 kB / 0.7329 GB, free: 47.37 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005119/1.36, allocations: 431.7 kB / 0.7333 GB, free: 47.07 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002263/1.362, allocations: 0.5271 MB / 0.7338 GB, free: 46.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007977/1.363, allocations: 96.41 kB / 0.7339 GB, free: 46.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00462/1.368, allocations: 2.05 MB / 0.7359 GB, free: 44.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/1.368, allocations: 0 / 0.7359 GB, free: 44.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005874/1.374, allocations: 1.17 MB / 0.737 GB, free: 43.77 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 11 (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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (191): * Single equations (assignments): 185 * 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: 3 * 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: 2 {(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {23 96} Notification: Performance of Backend phase and start with SimCode phase: time 0.02401/1.398, allocations: 12.16 MB / 0.7489 GB, free: 33.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01544/1.413, allocations: 7.003 MB / 0.7558 GB, free: 27.09 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/1.413, allocations: 4.062 kB / 0.7558 GB, free: 27.09 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0108/1.424, allocations: 5.802 MB / 0.7614 GB, free: 22.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005271/1.429, allocations: 0.939 MB / 0.7623 GB, free: 21.27 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08724/1.517, allocations: 41.43 MB / 0.8028 GB, free: 10.59 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006312/1.523, allocations: 3.341 MB / 0.8061 GB, free: 7.223 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003645/1.527, allocations: 0.768 MB / 0.8068 GB, free: 6.473 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003371/1.53, allocations: 1.667 MB / 0.8084 GB, free: 4.812 MB / 442.7 MB Notification: Performance of SimCode: time 1.182e-06/1.53, allocations: 4 kB / 0.8084 GB, free: 4.809 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.343/1.873, allocations: 108.6 MB / 0.9145 GB, free: 54.42 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/1.873, allocations: 257.8 kB / 0.9148 GB, free: 54.08 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.203/7.076, allocations: 3.953 kB / 0.9148 GB, free: 54.07 MB / 442.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_InverterDrive_res.mat does not exist to compare? outputFormat=mat