Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoBLDCVoltages.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/BLDC 1.9.0/package.mo", uses=false) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.DemoBLDCVoltages,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDCVoltages") translateModel(BLDC.Examples.DemoBLDCVoltages,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoBLDCVoltages") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008238/0.0008238, allocations: 86.09 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009051/0.000905, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.3 MB / 240 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1215/0.1215, allocations: 2.568 MB / 293.7 MB, free: 4.207 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004335/0.0004336, allocations: 12 kB / 355.1 MB, free: 4.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08689/0.08734, allocations: 51.02 MB / 406.2 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCVoltages): time 0.00622/0.09358, allocations: 4.96 MB / 411.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003479/0.0971, allocations: 1.808 MB / 412.9 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007871/0.09791, allocations: 31.81 kB / 413 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006604/0.09859, allocations: 198.6 kB / 413.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001874/0.1005, allocations: 0.6379 MB / 413.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005793/0.1011, allocations: 179.7 kB / 414 MB, free: 9.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003391/0.1045, allocations: 3.122 MB / 417.1 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002409/0.1069, allocations: 1.744 MB / 418.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00134/0.1083, allocations: 0.9145 MB / 419.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001986/0.1103, allocations: 1.308 MB / 421.1 MB, free: 2.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004769/0.1108, allocations: 136 kB / 421.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008946/0.1117, allocations: 215.9 kB / 421.4 MB, free: 2.477 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001018/0.1127, allocations: 0.7788 MB / 422.2 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009878/0.1137, allocations: 0.5627 MB / 422.7 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1756/0.2893, allocations: 3.975 MB / 426.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2893, allocations: 0 / 426.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2893, allocations: 3.125 kB / 426.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001116/0.2894, allocations: 0 / 426.7 MB, free: 37.77 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 627 * Number of variables: 627 Notification: Performance of Generate backend data structure: time 0.005972/0.2954, allocations: 3.208 MB / 429.9 MB, free: 36.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.2954, allocations: 9.531 kB / 429.9 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005857/0.296, allocations: 322.5 kB / 430.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.2987, allocations: 1.875 MB / 432.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.2988, allocations: 174.9 kB / 432.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003635/0.2992, allocations: 226.4 kB / 432.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005454/0.3046, allocations: 3.726 MB / 436.3 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.339e-05/0.3047, allocations: 3.469 kB / 436.3 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000229/0.3049, allocations: 106.8 kB / 436.4 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.005e-05/0.305, allocations: 115.8 kB / 436.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005372/0.3104, allocations: 3.561 MB / 440 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01486/0.3253, allocations: 11.7 MB / 451.7 MB, free: 30.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004166/0.3295, allocations: 2.882 MB / 454.6 MB, free: 29.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002209/0.3317, allocations: 1.669 MB / 456.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001916/0.3319, allocations: 195 kB / 456.5 MB, free: 28.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.793e-05/0.332, allocations: 50.91 kB / 456.5 MB, free: 28.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=169): time 3.557e-06/0.332, allocations: 4 kB / 456.5 MB, free: 28.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=169): time 0.01295/0.3449, allocations: 6.084 MB / 462.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/0.345, allocations: 74.09 kB / 462.7 MB, free: 26.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003464/0.3485, allocations: 2.22 MB / 464.9 MB, free: 25.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003044/0.3488, allocations: 56.61 kB / 465 MB, free: 25.31 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007337/0.3496, allocations: 1.063 MB / 466 MB, free: 24.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005549/0.3501, allocations: 0.5071 MB / 466.5 MB, free: 24.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.3502, allocations: 35.38 kB / 466.6 MB, free: 24.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001049/0.3504, allocations: 374.8 kB / 466.9 MB, free: 23.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001812/0.3522, allocations: 1.029 MB / 468 MB, free: 23.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001915/0.3541, allocations: 1.417 MB / 469.4 MB, free: 22.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001697/0.3558, allocations: 1.075 MB / 470.4 MB, free: 22.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.554e-06/0.3558, allocations: 3.25 kB / 470.5 MB, free: 22.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005499/0.3613, allocations: 3.275 MB / 473.7 MB, free: 20.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.3614, allocations: 16.28 kB / 473.7 MB, free: 20.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/0.3614, allocations: 10.5 kB / 473.8 MB, free: 20.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002577/0.364, allocations: 1.241 MB / 475 MB, free: 20.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007932/0.3648, allocations: 210.9 kB / 475.2 MB, free: 20.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01463/0.3794, allocations: 15.6 MB / 490.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/0.3812, allocations: 286.2 kB / 491.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001684/0.3814, allocations: 74.11 kB / 491.2 MB, free: 8.316 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 45 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5],inverter.andCondition_p[1].y,inverter.andCondition_p[2].y,inverter.andCondition_p[3].y,inverter.andCondition_p[4].y,inverter.andCondition_p[5].y,inverter.andCondition_n[1].y,inverter.andCondition_n[2].y,inverter.andCondition_n[3].y,inverter.andCondition_n[4].y,inverter.andCondition_n[5].y,inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[4].off,inverter.transistor_p.idealGTOThyristor[5].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[4].off,inverter.diode_p.idealDiode[5].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[4].off,inverter.transistor_n.idealGTOThyristor[5].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[4].off,inverter.diode_n.idealDiode[5].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {4 13,4 13,4 13,4 13,4 13} Notification: Performance of prepare postOptimizeDAE: time 0.001485/0.3829, allocations: 0.9998 MB / 492.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004008/0.3833, allocations: 216.3 kB / 492.4 MB, free: 7.574 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005309/0.3886, allocations: 3.379 MB / 495.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.3887, allocations: 20 kB / 495.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.3887, allocations: 2.812 kB / 495.8 MB, free: 4.793 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.499e-05/0.3887, allocations: 11.92 kB / 495.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009828/0.3985, allocations: 6.691 MB / 0.4907 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.3986, allocations: 0 / 0.4907 GB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006202/0.3992, allocations: 133.2 kB / 0.4908 GB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002737/0.4019, allocations: 1.195 MB / 0.492 GB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001895/0.4022, allocations: 35.98 kB / 0.492 GB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0181/0.4203, allocations: 15.16 MB / 0.5068 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4203, allocations: 0 / 0.5068 GB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008291/0.4286, allocations: 4.769 MB / 0.5115 GB, free: 8.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/0.43, allocations: 0.5995 MB / 0.5121 GB, free: 7.523 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003276/0.4303, allocations: 28 kB / 0.5121 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001101/0.4314, allocations: 171.9 kB / 0.5123 GB, free: 7.328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007275/0.4322, allocations: 317.5 kB / 0.5126 GB, free: 7.012 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/0.4323, allocations: 51.47 kB / 0.5126 GB, free: 6.965 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00244/0.4348, allocations: 1.555 MB / 0.5141 GB, free: 5.387 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4348, allocations: 4 kB / 0.5141 GB, free: 5.383 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002634/0.4374, allocations: 0.7793 MB / 0.5149 GB, free: 4.602 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (constantSpeed.phi) * Number of discrete variables: 45 (hallSensor.yC[1],hallSensor.yC[2],hallSensor.yC[3],hallSensor.yC[4],hallSensor.yC[5],electronicCommutator.fire_p[1],electronicCommutator.fire_p[2],electronicCommutator.fire_p[3],electronicCommutator.fire_p[4],electronicCommutator.fire_p[5],electronicCommutator.fire_n[1],electronicCommutator.fire_n[2],electronicCommutator.fire_n[3],electronicCommutator.fire_n[4],electronicCommutator.fire_n[5],inverter.andCondition_p[1].y,inverter.andCondition_p[2].y,inverter.andCondition_p[3].y,inverter.andCondition_p[4].y,inverter.andCondition_p[5].y,inverter.andCondition_n[1].y,inverter.andCondition_n[2].y,inverter.andCondition_n[3].y,inverter.andCondition_n[4].y,inverter.andCondition_n[5].y,inverter.transistor_p.idealGTOThyristor[1].off,inverter.transistor_p.idealGTOThyristor[2].off,inverter.transistor_p.idealGTOThyristor[3].off,inverter.transistor_p.idealGTOThyristor[4].off,inverter.transistor_p.idealGTOThyristor[5].off,inverter.diode_p.idealDiode[1].off,inverter.diode_p.idealDiode[2].off,inverter.diode_p.idealDiode[3].off,inverter.diode_p.idealDiode[4].off,inverter.diode_p.idealDiode[5].off,inverter.transistor_n.idealGTOThyristor[1].off,inverter.transistor_n.idealGTOThyristor[2].off,inverter.transistor_n.idealGTOThyristor[3].off,inverter.transistor_n.idealGTOThyristor[4].off,inverter.transistor_n.idealGTOThyristor[5].off,inverter.diode_n.idealDiode[1].off,inverter.diode_n.idealDiode[2].off,inverter.diode_n.idealDiode[3].off,inverter.diode_n.idealDiode[4].off,inverter.diode_n.idealDiode[5].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {4 12,4 12,4 12,4 12,4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004021/0.4378, allocations: 194.9 kB / 0.5151 GB, free: 4.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005857/0.4437, allocations: 3.583 MB / 0.5186 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.4437, allocations: 0 / 0.5186 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003529/0.4472, allocations: 2.35 MB / 0.5209 GB, free: 14.42 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002455/0.4497, allocations: 0.5908 MB / 0.5214 GB, free: 13.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01164/0.4614, allocations: 6.477 MB / 0.5278 GB, free: 7.359 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002067/0.4635, allocations: 2.175 MB / 0.5299 GB, free: 5.148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001573/0.4651, allocations: 0.5173 MB / 0.5304 GB, free: 4.629 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003605/0.4654, allocations: 119.4 kB / 0.5305 GB, free: 4.512 MB / 398.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4654, allocations: 0 / 0.5305 GB, free: 4.512 MB / 398.1 MB [CodegenCFunctions.tpl:7578:14-7578:14:writable] Error: Template error: non INDEX(_) (i.e., slice) subscripts probably should not reach here. Check indexedAssign template..