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/BLDC 1.9.0/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/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) Using package BLDC with version 1.9.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/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/BLDC 1.9.0/package.mo): time 0.01767/0.01767, allocations: 2.573 MB / 17.54 MB, free: 4.211 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008012/0.0008011, allocations: 172.8 kB / 19 MB, free: 3.023 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.545/1.545, allocations: 223.3 MB / 243.6 MB, free: 14.34 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.0009478/0.0009476, allocations: 95.11 kB / 295.4 MB, free: 11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005314/0.0005317, allocations: 23.98 kB / 356.9 MB, free: 13.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3322, allocations: 50.99 MB / 407.9 MB, free: 50.09 MB / 330.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCVoltages): time 0.006114/0.3384, allocations: 4.955 MB / 412.8 MB, free: 48.66 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004107/0.3425, allocations: 1.815 MB / 414.6 MB, free: 47.38 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006062/0.3432, allocations: 28.28 kB / 414.7 MB, free: 47.38 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004925/0.3437, allocations: 203 kB / 414.9 MB, free: 47.27 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001641/0.3453, allocations: 0.6425 MB / 415.5 MB, free: 46.91 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000481/0.3458, allocations: 175.8 kB / 415.7 MB, free: 46.82 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003711/0.3495, allocations: 3.119 MB / 418.8 MB, free: 45.42 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002675/0.3522, allocations: 1.745 MB / 420.5 MB, free: 44.85 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002421/0.3547, allocations: 0.9151 MB / 421.5 MB, free: 44.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002137/0.3568, allocations: 1.308 MB / 422.8 MB, free: 43.97 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003237/0.3572, allocations: 134.8 kB / 422.9 MB, free: 43.97 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008515/0.358, allocations: 221.5 kB / 423.1 MB, free: 43.94 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009123/0.3589, allocations: 0.7713 MB / 423.9 MB, free: 43.64 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006436/0.3596, allocations: 0.5671 MB / 424.5 MB, free: 43.3 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00674/0.3663, allocations: 3.972 MB / 428.4 MB, free: 41.71 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.002e-05/0.3664, allocations: 4 kB / 428.4 MB, free: 41.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.877e-06/0.3664, allocations: 0 / 428.4 MB, free: 41.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002677/0.3667, allocations: 1.031 kB / 428.4 MB, free: 41.7 MB / 330.7 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.01012/0.3768, allocations: 3.216 MB / 431.6 MB, free: 39.63 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.3769, allocations: 9.469 kB / 431.7 MB, free: 39.63 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.3781, allocations: 323.4 kB / 432 MB, free: 39.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/0.3814, allocations: 1.867 MB / 433.8 MB, free: 38.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001286/0.3816, allocations: 170.6 kB / 434 MB, free: 38.14 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004087/0.382, allocations: 235.1 kB / 434.2 MB, free: 38.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007477/0.3895, allocations: 3.728 MB / 438 MB, free: 35.44 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.256e-05/0.3896, allocations: 7.938 kB / 438 MB, free: 35.43 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002607/0.3898, allocations: 99.95 kB / 438.1 MB, free: 35.33 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001037/0.3899, allocations: 120.7 kB / 438.2 MB, free: 35.21 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006244/0.3962, allocations: 3.562 MB / 441.7 MB, free: 31.63 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01842/0.4147, allocations: 11.7 MB / 453.4 MB, free: 19.74 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004768/0.4195, allocations: 2.885 MB / 456.3 MB, free: 16.85 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002525/0.422, allocations: 1.675 MB / 458 MB, free: 15.17 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002888/0.4224, allocations: 188.2 kB / 458.2 MB, free: 14.95 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.361e-05/0.4224, allocations: 52.56 kB / 458.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of pre-optimization done (n=169): time 6.121e-06/0.4224, allocations: 0 / 458.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of matching and sorting (n=169): time 0.01305/0.4355, allocations: 6.087 MB / 464.3 MB, free: 8.688 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.4356, allocations: 81.23 kB / 464.4 MB, free: 8.594 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00341/0.439, allocations: 2.217 MB / 466.6 MB, free: 6.332 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002552/0.4393, allocations: 61.69 kB / 466.7 MB, free: 6.266 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005877/0.4399, allocations: 1.057 MB / 467.7 MB, free: 5.195 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004333/0.4403, allocations: 0.5084 MB / 468.2 MB, free: 4.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.766e-05/0.4404, allocations: 40 kB / 468.3 MB, free: 4.641 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.915e-05/0.4405, allocations: 373.9 kB / 468.7 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001668/0.4422, allocations: 1.031 MB / 469.7 MB, free: 3.238 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.4439, allocations: 1.406 MB / 471.1 MB, free: 1.688 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001551/0.4454, allocations: 1.083 MB / 472.2 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/0.4454, allocations: 0 / 472.2 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.005865/0.4513, allocations: 3.275 MB / 475.4 MB, free: 13.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.482e-05/0.4514, allocations: 13.09 kB / 475.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.4514, allocations: 8 kB / 475.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002872/0.4543, allocations: 1.246 MB / 476.7 MB, free: 12.03 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008728/0.4552, allocations: 211.6 kB / 476.9 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01879/0.474, allocations: 15.6 MB / 492.5 MB, free: 11.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002818/0.4768, allocations: 281.9 kB / 492.8 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003298/0.4772, allocations: 67.98 kB / 492.9 MB, free: 11.21 MB / 362.7 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.002404/0.4796, allocations: 1.009 MB / 493.9 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008121/0.4804, allocations: 221.3 kB / 494.1 MB, free: 9.973 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00697/0.4874, allocations: 3.374 MB / 497.5 MB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.301e-05/0.4875, allocations: 20 kB / 497.5 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4875, allocations: 0 / 497.5 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.267e-05/0.4875, allocations: 11.92 kB / 497.5 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/0.5013, allocations: 6.697 MB / 0.4924 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.5014, allocations: 4 kB / 0.4924 GB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006614/0.502, allocations: 131.8 kB / 0.4925 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00285/0.5049, allocations: 1.202 MB / 0.4937 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001472/0.5051, allocations: 35.98 kB / 0.4937 GB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01937/0.5245, allocations: 15.14 MB / 0.5085 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/0.5245, allocations: 0 / 0.5085 GB, free: 14.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/0.5345, allocations: 4.767 MB / 0.5131 GB, free: 9.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001725/0.5363, allocations: 0.5994 MB / 0.5137 GB, free: 9.148 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007238/0.5371, allocations: 28 kB / 0.5138 GB, free: 9.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/0.5388, allocations: 171.9 kB / 0.5139 GB, free: 8.953 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008564/0.5397, allocations: 321.5 kB / 0.5142 GB, free: 8.641 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001775/0.5399, allocations: 47.98 kB / 0.5143 GB, free: 8.594 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003489/0.5434, allocations: 1.555 MB / 0.5158 GB, free: 7.016 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5434, allocations: 0 / 0.5158 GB, free: 7.016 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004477/0.5479, allocations: 0.7871 MB / 0.5166 GB, free: 6.227 MB / 394.7 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.0006426/0.5486, allocations: 207.2 kB / 0.5168 GB, free: 6.016 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00738/0.556, allocations: 3.582 MB / 0.5203 GB, free: 2.367 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.556, allocations: 0 / 0.5203 GB, free: 2.367 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004302/0.5603, allocations: 2.341 MB / 0.5225 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004175/0.5645, allocations: 0.5929 MB / 0.5231 GB, free: 15.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/0.5814, allocations: 6.488 MB / 0.5295 GB, free: 8.887 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003275/0.5848, allocations: 2.167 MB / 0.5316 GB, free: 6.676 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002211/0.587, allocations: 0.5134 MB / 0.5321 GB, free: 6.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006111/0.5877, allocations: 131.4 kB / 0.5322 GB, free: 6.031 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5877, allocations: 0 / 0.5322 GB, free: 6.031 MB / 410.7 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..