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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 180 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.267/1.267, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009778/0.0009776, allocations: 93.2 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002466, allocations: 12 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2155/0.2157, allocations: 50.39 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3306/0.5464, allocations: 120.2 MB / 0.5095 GB, free: 50.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003328/0.5469, allocations: 94.36 kB / 0.5096 GB, free: 50.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1907/0.7376, allocations: 85.5 MB / 0.5931 GB, free: 10.29 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.7376, allocations: 3.984 kB / 0.5931 GB, free: 10.29 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003962/0.7381, allocations: 119.8 kB / 0.5932 GB, free: 10.17 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.01249/0.7506, allocations: 5.013 MB / 0.5981 GB, free: 5.066 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.7506, allocations: 12.03 kB / 0.5981 GB, free: 5.055 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001926/0.7525, allocations: 0.5793 MB / 0.5987 GB, free: 4.465 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002136/0.7547, allocations: 0.5678 MB / 0.5993 GB, free: 3.891 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00732/0.762, allocations: 3.119 MB / 0.6023 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007169/0.7628, allocations: 437.6 kB / 0.6027 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001222/0.764, allocations: 407.9 kB / 0.6031 GB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0157/0.7797, allocations: 6.489 MB / 0.6094 GB, free: 9.129 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001529/0.7799, allocations: 4 kB / 0.6094 GB, free: 9.125 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001001/0.7809, allocations: 180 kB / 0.6096 GB, free: 8.949 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002003/0.7811, allocations: 175.9 kB / 0.6098 GB, free: 8.777 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/0.7969, allocations: 6.429 MB / 0.6161 GB, free: 2.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0346/0.8315, allocations: 18.59 MB / 0.6342 GB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009111/0.8406, allocations: 4.848 MB / 0.639 GB, free: 10.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004547/0.8411, allocations: 163.2 kB / 0.6391 GB, free: 10.42 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006611/0.8478, allocations: 2.818 MB / 0.6419 GB, free: 7.531 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 7.124e-06/0.8478, allocations: 4 kB / 0.6419 GB, free: 7.527 MB / 426.7 MB Notification: Performance of matching and sorting (n=319): time 0.2668/1.115, allocations: 23.7 MB / 0.665 GB, free: 89.49 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/1.115, allocations: 334.6 kB / 0.6653 GB, free: 89.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003864/1.119, allocations: 2.65 MB / 0.6679 GB, free: 88.94 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006575/1.119, allocations: 90.19 kB / 0.668 GB, free: 88.91 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001346/1.121, allocations: 1.786 MB / 0.6698 GB, free: 88.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009162/1.122, allocations: 1.025 MB / 0.6708 GB, free: 88.38 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/1.122, allocations: 59.62 kB / 0.6708 GB, free: 88.38 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/1.122, allocations: 430 kB / 0.6712 GB, free: 88.07 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005208/1.127, allocations: 2.432 MB / 0.6736 GB, free: 88.06 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005163/1.132, allocations: 2.942 MB / 0.6765 GB, free: 87.61 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005353/1.138, allocations: 2.628 MB / 0.679 GB, free: 87.54 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/1.138, allocations: 3.031 kB / 0.679 GB, free: 87.54 MB / 442.7 MB Notification: Performance of matching and sorting (n=386) (initialization): time 0.01308/1.151, allocations: 6.856 MB / 0.6857 GB, free: 87.17 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/1.151, allocations: 39.39 kB / 0.6858 GB, free: 87.14 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.985e-05/1.151, allocations: 11.31 kB / 0.6858 GB, free: 87.14 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003898/1.155, allocations: 1.918 MB / 0.6877 GB, free: 87.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001946/1.157, allocations: 495.9 kB / 0.6881 GB, free: 87.09 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02063/1.177, allocations: 17.52 MB / 0.7052 GB, free: 82.45 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004362/1.182, allocations: 456.2 kB / 0.7057 GB, free: 82.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003972/1.182, allocations: 109.1 kB / 0.7058 GB, free: 82.37 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.002887/1.185, allocations: 1.541 MB / 0.7073 GB, free: 81.64 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006925/1.186, allocations: 352.3 kB / 0.7076 GB, free: 81.47 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01511/1.201, allocations: 7.166 MB / 0.7146 GB, free: 79.03 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-05/1.201, allocations: 37.34 kB / 0.7147 GB, free: 79.03 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/1.201, allocations: 3.719 kB / 0.7147 GB, free: 79.03 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-05/1.201, allocations: 20.44 kB / 0.7147 GB, free: 79.03 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02635/1.228, allocations: 12.13 MB / 0.7265 GB, free: 74.61 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/1.228, allocations: 6 kB / 0.7265 GB, free: 74.61 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001745/1.229, allocations: 367.4 kB / 0.7269 GB, free: 74.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004339/1.234, allocations: 1.97 MB / 0.7288 GB, free: 74.02 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004781/1.234, allocations: 78.41 kB / 0.7289 GB, free: 73.97 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02145/1.256, allocations: 19.07 MB / 0.7475 GB, free: 62.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/1.256, allocations: 4 kB / 0.7475 GB, free: 62.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01889/1.275, allocations: 10.63 MB / 0.7579 GB, free: 53.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00237/1.277, allocations: 0.9046 MB / 0.7588 GB, free: 52.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007359/1.278, allocations: 75.75 kB / 0.7588 GB, free: 52.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003311/1.281, allocations: 434.7 kB / 0.7593 GB, free: 52.07 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009587/1.282, allocations: 0.5248 MB / 0.7598 GB, free: 51.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002126/1.282, allocations: 87.84 kB / 0.7599 GB, free: 51.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002522/1.285, allocations: 2.049 MB / 0.7619 GB, free: 49.95 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.2e-07/1.285, allocations: 0 / 0.7619 GB, free: 49.95 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002996/1.288, allocations: 1.169 MB / 0.763 GB, free: 48.79 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.01964/1.307, allocations: 12.17 MB / 0.7749 GB, free: 38.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01388/1.321, allocations: 7.003 MB / 0.7817 GB, free: 32.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/1.321, allocations: 0 / 0.7817 GB, free: 32.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009635/1.331, allocations: 5.816 MB / 0.7874 GB, free: 27.02 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004438/1.336, allocations: 0.9304 MB / 0.7883 GB, free: 26.29 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07443/1.41, allocations: 41.75 MB / 0.8291 GB, free: 2.984 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1844/1.595, allocations: 3.346 MB / 0.8323 GB, free: 99.52 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003881/1.598, allocations: 0.7682 MB / 0.8331 GB, free: 99.49 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002775/1.601, allocations: 1.674 MB / 0.8347 GB, free: 99.49 MB / 458.7 MB Notification: Performance of SimCode: time 9.52e-07/1.601, allocations: 0 / 0.8347 GB, free: 99.49 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.151/1.752, allocations: 108.6 MB / 0.9408 GB, free: 48.01 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002496/1.753, allocations: 244 kB / 0.941 GB, free: 47.77 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.884/6.637, allocations: 0 / 0.941 GB, free: 47.77 MB / 458.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive_res.mat does not exist to compare? outputFormat=mat