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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|capacitor.v|inductor.inductor.2..i|inductor.inductor.3..i|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|capacitor.v|inductor.inductor.2..i|inductor.inductor.3..i|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001085/0.001085, allocations: 107.1 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001149, allocations: 203.9 kB / 19.4 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 59.91 kB / 359.4 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2222, allocations: 50.54 MB / 410 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive): time 0.01505/0.2373, allocations: 14.75 MB / 424.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00824/0.2455, allocations: 4.616 MB / 429.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002232/0.2478, allocations: 95.56 kB / 429.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002159/0.25, allocations: 1.003 MB / 430.4 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00352/0.2535, allocations: 1.422 MB / 431.9 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001431/0.255, allocations: 0.7372 MB / 432.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005605/0.2606, allocations: 5.769 MB / 438.4 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004627/0.2652, allocations: 4.476 MB / 442.8 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003315/0.2686, allocations: 2.633 MB / 445.5 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004496/0.2731, allocations: 3.137 MB / 448.6 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009212/0.274, allocations: 0.6601 MB / 449.3 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.2755, allocations: 0.7498 MB / 450 MB, free: 9.293 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001642/0.2772, allocations: 1.905 MB / 451.9 MB, free: 7.383 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003077/0.2803, allocations: 2.971 MB / 454.9 MB, free: 4.398 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007699/0.288, allocations: 8.806 MB / 463.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.288, allocations: 0 / 463.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.288, allocations: 0 / 463.7 MB, free: 11.57 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001429/0.2882, allocations: 0 / 463.7 MB, free: 11.57 MB / 382.1 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.01388/0.3021, allocations: 5.945 MB / 469.6 MB, free: 5.539 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.3021, allocations: 8.031 kB / 469.6 MB, free: 5.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001619/0.3037, allocations: 0.5959 MB / 470.2 MB, free: 4.93 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005846/0.3096, allocations: 3.231 MB / 473.5 MB, free: 1.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007429/0.3104, allocations: 429.6 kB / 473.9 MB, free: 1.195 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006397/0.311, allocations: 407.9 kB / 474.3 MB, free: 0.7969 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01251/0.3235, allocations: 6.389 MB / 480.7 MB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.008e-05/0.3236, allocations: 7.938 kB / 480.7 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004125/0.3241, allocations: 171.9 kB / 480.9 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001622/0.3242, allocations: 187.9 kB / 481 MB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01408/0.3383, allocations: 6.198 MB / 487.2 MB, free: 3.68 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03312/0.3715, allocations: 18.37 MB / 0.4938 GB, free: 0.9844 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008731/0.3802, allocations: 4.602 MB / 0.4983 GB, free: 12.4 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00688/0.3871, allocations: 3.184 MB / 0.5014 GB, free: 9.215 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003728/0.3875, allocations: 143.2 kB / 0.5015 GB, free: 9.055 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006079/0.3936, allocations: 2.569 MB / 0.504 GB, free: 6.422 MB / 430.1 MB Notification: Performance of pre-optimization done (n=290): time 5.891e-06/0.3937, allocations: 0 / 0.504 GB, free: 6.422 MB / 430.1 MB Notification: Performance of matching and sorting (n=313): time 0.06247/0.4561, allocations: 22.24 MB / 0.5257 GB, free: 15.93 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.4563, allocations: 252.1 kB / 0.526 GB, free: 15.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004386/0.4607, allocations: 2.968 MB / 0.5289 GB, free: 12.64 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002346/0.4609, allocations: 81.7 kB / 0.5289 GB, free: 12.56 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.4624, allocations: 1.822 MB / 0.5307 GB, free: 10.72 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008286/0.4633, allocations: 1.001 MB / 0.5317 GB, free: 9.703 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009887/0.4643, allocations: 0.5726 MB / 0.5323 GB, free: 9.121 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.361e-05/0.4644, allocations: 305.1 kB / 0.5325 GB, free: 8.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005362/0.4697, allocations: 2.157 MB / 0.5347 GB, free: 6.66 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005692/0.4754, allocations: 2.673 MB / 0.5373 GB, free: 3.809 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1957/0.6711, allocations: 4.811 MB / 0.542 GB, free: 123 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/0.6712, allocations: 3.469 kB / 0.542 GB, free: 123 MB / 462.1 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01336/0.6845, allocations: 6.293 MB / 0.5481 GB, free: 121.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.6846, allocations: 39.45 kB / 0.5482 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.6846, allocations: 15.12 kB / 0.5482 GB, free: 121.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003767/0.6884, allocations: 1.869 MB / 0.55 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001815/0.6902, allocations: 494.2 kB / 0.5505 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01981/0.71, allocations: 17.84 MB / 0.5679 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003726/0.7138, allocations: 369.5 kB / 0.5682 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002991/0.7141, allocations: 179.9 kB / 0.5684 GB, free: 107.4 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 52 (pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.firstTrigger,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiRef,$PRE.pwm.svPWM.phiRef,pwm.svPWM.uRef,$PRE.pwm.svPWM.uRef,pwm.svPWM.sampleTrigger,$whenCondition1,$whenCondition2,pwm.svPWM.T0,$PRE.pwm.svPWM.T0,pwm.svPWM.t0,$PRE.pwm.svPWM.t0,pwm.svPWM.tb,$PRE.pwm.svPWM.tb,pwm.svPWM.ta,$PRE.pwm.svPWM.ta,pwm.svPWM.kb,$PRE.pwm.svPWM.kb,pwm.svPWM.ka,$PRE.pwm.svPWM.ka,pwm.fire_n[3],pwm.fire_n[2],pwm.fire_n[1],inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[1].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[1].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[1].off,inverter.andCondition_n[3].y,inverter.andCondition_n[2].y,inverter.andCondition_n[1].y,inverter.andCondition_p[3].y,inverter.andCondition_p[2].y,inverter.andCondition_p[1].y,rectifier.diode_n.idealDiode[3].off,rectifier.diode_n.idealDiode[2].off,rectifier.diode_n.idealDiode[1].off,rectifier.diode_p.idealDiode[3].off,rectifier.diode_p.idealDiode[2].off,rectifier.diode_p.idealDiode[1].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (264): * Single equations (assignments): 259 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(23,93)} Notification: Performance of prepare postOptimizeDAE: time 0.002168/0.7163, allocations: 1.553 MB / 0.5699 GB, free: 105.8 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00058/0.7169, allocations: 345.9 kB / 0.5702 GB, free: 105.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01239/0.7293, allocations: 6.39 MB / 0.5765 GB, free: 99.22 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.593e-05/0.7293, allocations: 19.66 kB / 0.5765 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.7293, allocations: 0 / 0.5765 GB, free: 99.21 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002032/0.7314, allocations: 0.8853 MB / 0.5774 GB, free: 98.44 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007035/0.7321, allocations: 67.98 kB / 0.5774 GB, free: 98.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002836/0.7349, allocations: 343.6 kB / 0.5778 GB, free: 98.04 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005798/0.7355, allocations: 258 kB / 0.578 GB, free: 97.79 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01678/0.7523, allocations: 7.451 MB / 0.5853 GB, free: 90.33 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01529/0.7676, allocations: 8.198 MB / 0.5933 GB, free: 82.06 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004663/0.7723, allocations: 2.642 MB / 0.5959 GB, free: 79.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00241/0.7747, allocations: 2.048 MB / 0.5979 GB, free: 77.36 MB / 462.1 MB Notification: Performance of Backend: time 8.42e-07/0.7748, allocations: 0 / 0.5979 GB, free: 77.36 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008763/0.7835, allocations: 4.49 MB / 0.6023 GB, free: 72.79 MB / 462.1 MB Notification: Performance of SimCode: time 0.01213/0.7957, allocations: 10.16 MB / 0.6122 GB, free: 62.64 MB / 462.1 MB Notification: Performance of Templates: time 0.09172/0.8874, allocations: 73.81 MB / 0.6843 GB, free: 5.375 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_InverterDrive.pipe 2>&1)