Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001015/0.001015, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.2 MB / 245 MB, free: 7.648 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008968/0.0008969, allocations: 104.2 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002211/0.0002214, allocations: 8 kB / 358 MB, free: 9.445 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1952, allocations: 51.48 MB / 409.5 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2729/0.4681, allocations: 121 MB / 0.518 GB, free: 94.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/0.4684, allocations: 95.95 kB / 0.5181 GB, free: 94.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1788/0.6472, allocations: 86.15 MB / 0.6023 GB, free: 8.133 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.6472, allocations: 0 / 0.6023 GB, free: 8.133 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000271/0.6475, allocations: 115.9 kB / 0.6024 GB, free: 8.02 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.009709/0.6572, allocations: 5.029 MB / 0.6073 GB, free: 2.902 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.24e-05/0.6573, allocations: 8.031 kB / 0.6073 GB, free: 2.895 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001256/0.6586, allocations: 0.5715 MB / 0.6078 GB, free: 2.312 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001476/0.6601, allocations: 0.6147 MB / 0.6084 GB, free: 1.691 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006346/0.6664, allocations: 3.115 MB / 0.6115 GB, free: 14.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007483/0.6672, allocations: 425.7 kB / 0.6119 GB, free: 14.07 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006435/0.6679, allocations: 411.8 kB / 0.6123 GB, free: 13.68 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01331/0.6812, allocations: 6.493 MB / 0.6186 GB, free: 6.938 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.241e-05/0.6813, allocations: 4 kB / 0.6186 GB, free: 6.934 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004155/0.6817, allocations: 176 kB / 0.6188 GB, free: 6.762 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.6819, allocations: 179.9 kB / 0.619 GB, free: 6.586 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01441/0.6963, allocations: 6.429 MB / 0.6253 GB, free: 152 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0298/0.7261, allocations: 18.6 MB / 0.6434 GB, free: 13.24 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00827/0.7344, allocations: 4.86 MB / 0.6482 GB, free: 8.395 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003377/0.7348, allocations: 155.3 kB / 0.6483 GB, free: 8.223 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005944/0.7408, allocations: 2.814 MB / 0.6511 GB, free: 5.336 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 5.671e-06/0.7408, allocations: 3.984 kB / 0.6511 GB, free: 5.332 MB / 426.7 MB Notification: Performance of matching and sorting (n=319): time 0.2369/0.9777, allocations: 23.7 MB / 0.6742 GB, free: 86.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001004/0.9778, allocations: 336.6 kB / 0.6745 GB, free: 85.84 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/0.9812, allocations: 2.652 MB / 0.6771 GB, free: 85.63 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000363/0.9816, allocations: 84.86 kB / 0.6772 GB, free: 85.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.9828, allocations: 1.795 MB / 0.6789 GB, free: 85.5 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006974/0.9835, allocations: 1.033 MB / 0.68 GB, free: 85.07 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/0.9837, allocations: 59.25 kB / 0.68 GB, free: 85.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.9838, allocations: 424.5 kB / 0.6804 GB, free: 84.76 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005064/0.9889, allocations: 2.438 MB / 0.6828 GB, free: 84.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005016/0.9939, allocations: 2.94 MB / 0.6857 GB, free: 84.3 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004822/0.9987, allocations: 2.63 MB / 0.6882 GB, free: 84.23 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.9987, allocations: 3.719 kB / 0.6882 GB, free: 84.23 MB / 442.7 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.01226/1.011, allocations: 6.855 MB / 0.6949 GB, free: 83.86 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.809e-05/1.011, allocations: 40.12 kB / 0.695 GB, free: 83.83 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.859e-05/1.011, allocations: 9.625 kB / 0.695 GB, free: 83.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003736/1.015, allocations: 1.913 MB / 0.6969 GB, free: 83.78 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00178/1.017, allocations: 499.2 kB / 0.6973 GB, free: 83.78 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01889/1.036, allocations: 17.52 MB / 0.7144 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003749/1.039, allocations: 455 kB / 0.7149 GB, free: 77.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002111/1.04, allocations: 106.9 kB / 0.715 GB, free: 77.4 MB / 442.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.002191/1.042, allocations: 1.537 MB / 0.7165 GB, free: 76.68 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004662/1.042, allocations: 346.2 kB / 0.7168 GB, free: 76.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01307/1.055, allocations: 7.169 MB / 0.7238 GB, free: 74.07 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/1.055, allocations: 29.47 kB / 0.7238 GB, free: 74.07 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.055, allocations: 7.516 kB / 0.7238 GB, free: 74.06 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.099e-05/1.055, allocations: 14.39 kB / 0.7239 GB, free: 74.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01926/1.075, allocations: 12.15 MB / 0.7357 GB, free: 69.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/1.075, allocations: 3.094 kB / 0.7357 GB, free: 69.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001422/1.076, allocations: 372.6 kB / 0.7361 GB, free: 69.62 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003877/1.08, allocations: 1.955 MB / 0.738 GB, free: 69.05 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002376/1.08, allocations: 75.03 kB / 0.7381 GB, free: 69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01896/1.099, allocations: 19.09 MB / 0.7567 GB, free: 56.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/1.099, allocations: 6.812 kB / 0.7567 GB, free: 56.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01762/1.117, allocations: 10.63 MB / 0.7671 GB, free: 47.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002313/1.119, allocations: 0.9051 MB / 0.768 GB, free: 46.49 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000509/1.12, allocations: 71.39 kB / 0.768 GB, free: 46.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002882/1.123, allocations: 438.3 kB / 0.7684 GB, free: 46.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009776/1.124, allocations: 0.5233 MB / 0.769 GB, free: 45.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002012/1.124, allocations: 94.38 kB / 0.769 GB, free: 45.69 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002553/1.126, allocations: 2.052 MB / 0.7711 GB, free: 43.98 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.01e-07/1.126, allocations: 0 / 0.7711 GB, free: 43.98 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002855/1.129, allocations: 1.17 MB / 0.7722 GB, free: 42.82 MB / 442.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.01817/1.147, allocations: 12.16 MB / 0.7841 GB, free: 32.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01207/1.16, allocations: 7.002 MB / 0.7909 GB, free: 26.15 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/1.16, allocations: 0 / 0.7909 GB, free: 26.15 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008867/1.168, allocations: 5.798 MB / 0.7966 GB, free: 21.07 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003455/1.172, allocations: 0.9418 MB / 0.7975 GB, free: 20.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06026/1.232, allocations: 41.41 MB / 0.8379 GB, free: 12.38 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003162/1.235, allocations: 3.349 MB / 0.8412 GB, free: 9.02 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00264/1.238, allocations: 0.7686 MB / 0.8419 GB, free: 8.27 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00219/1.24, allocations: 1.675 MB / 0.8436 GB, free: 6.602 MB / 474.7 MB Notification: Performance of SimCode: time 6.72e-07/1.24, allocations: 3.609 kB / 0.8436 GB, free: 6.602 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3103/1.551, allocations: 108.7 MB / 0.9497 GB, free: 66.07 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001373/1.551, allocations: 235.8 kB / 0.9499 GB, free: 65.83 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.787/6.338, allocations: 2.719 kB / 0.9499 GB, free: 65.83 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_InverterDrive.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive_res.mat does not exist to compare? outputFormat=mat