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.001114/0.001114, allocations: 99.08 kB / 15.05 MB, free: 1.113 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.001262/0.001262, allocations: 177.3 kB / 15.94 MB, free: 228 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.379/1.379, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1494/0.1494, allocations: 2.562 MB / 293.5 MB, free: 4.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000527/0.0005274, allocations: 20 kB / 355.1 MB, free: 4.938 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1236, allocations: 51.01 MB / 406.1 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCVoltages): time 0.005782/0.1294, allocations: 4.668 MB / 410.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003788/0.1332, allocations: 1.852 MB / 412.6 MB, free: 11.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009647/0.1342, allocations: 27.81 kB / 412.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007475/0.135, allocations: 214.7 kB / 412.8 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002111/0.1371, allocations: 0.6269 MB / 413.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005805/0.1377, allocations: 187.7 kB / 413.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002747/0.1405, allocations: 1.934 MB / 415.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002391/0.1429, allocations: 1.744 MB / 417.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001428/0.1443, allocations: 0.8563 MB / 418.2 MB, free: 5.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002123/0.1465, allocations: 1.16 MB / 419.3 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006396/0.1471, allocations: 136 kB / 419.5 MB, free: 4.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.1483, allocations: 203.9 kB / 419.7 MB, free: 4.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001185/0.1495, allocations: 0.7399 MB / 420.4 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001054/0.1506, allocations: 0.5666 MB / 421 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2272/0.3777, allocations: 3.958 MB / 424.9 MB, free: 37.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.683e-06/0.3778, allocations: 0 / 424.9 MB, free: 37.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.783e-06/0.3778, allocations: 1.156 kB / 424.9 MB, free: 37.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002233/0.3781, allocations: 0 / 424.9 MB, free: 37.53 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.01213/0.3902, allocations: 3.209 MB / 428.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.524e-05/0.3903, allocations: 9.469 kB / 428.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002067/0.3924, allocations: 316 kB / 428.4 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00562/0.398, allocations: 1.875 MB / 430.3 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001697/0.3982, allocations: 180.3 kB / 430.5 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00076/0.399, allocations: 229.2 kB / 430.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01018/0.4092, allocations: 3.698 MB / 434.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.959e-05/0.4093, allocations: 10.08 kB / 434.4 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004201/0.4097, allocations: 105.1 kB / 434.5 MB, free: 35.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000155/0.4099, allocations: 118.5 kB / 434.6 MB, free: 35.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009841/0.4198, allocations: 3.554 MB / 438.2 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02656/0.4464, allocations: 11.69 MB / 449.9 MB, free: 30.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007305/0.4537, allocations: 2.888 MB / 452.8 MB, free: 29.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002896/0.4541, allocations: 192.7 kB / 453 MB, free: 28.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/0.4541, allocations: 49.75 kB / 453 MB, free: 28.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=169): time 6.241e-06/0.4541, allocations: 0 / 453 MB, free: 28.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=169): time 0.01947/0.4736, allocations: 5.969 MB / 459 MB, free: 26.71 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.847e-05/0.4737, allocations: 70.47 kB / 459.1 MB, free: 26.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00488/0.4786, allocations: 2.219 MB / 461.3 MB, free: 25.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000429/0.4791, allocations: 52.45 kB / 461.3 MB, free: 25.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.4801, allocations: 1.071 MB / 462.4 MB, free: 24.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006878/0.4808, allocations: 0.5079 MB / 462.9 MB, free: 24.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.4809, allocations: 30.69 kB / 462.9 MB, free: 24.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.4811, allocations: 378.7 kB / 463.3 MB, free: 24.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002846/0.484, allocations: 1.045 MB / 464.3 MB, free: 23.82 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003152/0.4871, allocations: 1.416 MB / 465.8 MB, free: 23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002895/0.49, allocations: 1.087 MB / 466.8 MB, free: 22.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.248e-05/0.4901, allocations: 7.812 kB / 466.9 MB, free: 22.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.008622/0.4987, allocations: 3.251 MB / 470.1 MB, free: 21.3 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.364e-05/0.4988, allocations: 11.17 kB / 470.1 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.117e-05/0.4988, allocations: 10.25 kB / 470.1 MB, free: 21.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003095/0.5019, allocations: 1.185 MB / 471.3 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009426/0.5029, allocations: 233.5 kB / 471.5 MB, free: 20.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01626/0.5191, allocations: 15.18 MB / 486.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002079/0.5213, allocations: 282.3 kB / 487 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/0.5215, allocations: 70.92 kB / 487.1 MB, free: 10.06 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 (145): * Single equations (assignments): 139 * 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 11,4 11,4 11,4 11,4 11} Notification: Performance of prepare postOptimizeDAE: time 0.001574/0.523, allocations: 1.009 MB / 488.1 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004381/0.5235, allocations: 213.1 kB / 488.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004883/0.5284, allocations: 3.349 MB / 491.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.5284, allocations: 18 kB / 491.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.5284, allocations: 0 / 491.7 MB, free: 7.375 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.5284, allocations: 7.969 kB / 491.7 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008198/0.5366, allocations: 6.108 MB / 497.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.847e-06/0.5367, allocations: 1.969 kB / 497.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006185/0.5373, allocations: 149.9 kB / 497.9 MB, free: 1.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/0.5393, allocations: 1.161 MB / 499.1 MB, free: 152 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.5395, allocations: 35.98 kB / 499.1 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01675/0.5562, allocations: 15.16 MB / 0.5022 GB, free: 320 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.5563, allocations: 4 kB / 0.5022 GB, free: 316 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007902/0.5642, allocations: 4.784 MB / 0.5069 GB, free: 11.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/0.5657, allocations: 0.5996 MB / 0.5075 GB, free: 10.88 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002744/0.566, allocations: 24 kB / 0.5075 GB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/0.5672, allocations: 167.8 kB / 0.5077 GB, free: 10.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006707/0.5679, allocations: 317.5 kB / 0.508 GB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.568, allocations: 47.98 kB / 0.508 GB, free: 10.33 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002326/0.5703, allocations: 1.557 MB / 0.5095 GB, free: 8.754 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5703, allocations: 0 / 0.5095 GB, free: 8.754 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002896/0.5732, allocations: 0.7793 MB / 0.5103 GB, free: 7.973 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 (100): * Single equations (assignments): 94 * 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 11,4 11,4 11,4 11,4 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005564/0.5738, allocations: 201.9 kB / 0.5105 GB, free: 7.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006918/0.5807, allocations: 3.524 MB / 0.5139 GB, free: 4.191 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/0.5808, allocations: 0 / 0.5139 GB, free: 4.191 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004015/0.5848, allocations: 2.316 MB / 0.5162 GB, free: 1.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/0.5875, allocations: 0.5629 MB / 0.5167 GB, free: 1.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.6, allocations: 6.416 MB / 0.523 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002122/0.6021, allocations: 2.21 MB / 0.5252 GB, free: 8.578 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00167/0.6038, allocations: 0.5407 MB / 0.5257 GB, free: 8.035 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003587/0.6042, allocations: 127.4 kB / 0.5258 GB, free: 7.91 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6042, allocations: 0 / 0.5258 GB, free: 7.91 MB / 398.1 MB [CodegenCFunctions.tpl:7542:14-7542:14:writable] Error: Template error: non INDEX(_) (i.e., slice) subscripts probably should not reach here. Check indexedAssign template..