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: "" <> buildModelFMU(BLDC.Examples.DemoBLDCVoltages,fileNamePrefix="BLDC_BLDC_Examples_DemoBLDCVoltages",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BLDC.Examples.DemoBLDCVoltages,fileNamePrefix="BLDC_BLDC_Examples_DemoBLDCVoltages",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001125/0.001125, 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.591/1.591, allocations: 223.2 MB / 239.9 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1564/0.1564, allocations: 2.558 MB / 293.5 MB, free: 4.227 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003755/0.0003756, allocations: 12 kB / 355.1 MB, free: 4.82 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1068, allocations: 51.02 MB / 406.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCVoltages): time 0.005442/0.1123, allocations: 4.656 MB / 410.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003007/0.1153, allocations: 1.855 MB / 412.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003614/0.1157, allocations: 27.81 kB / 412.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004493/0.1161, allocations: 214.8 kB / 412.9 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001452/0.1176, allocations: 0.6269 MB / 413.5 MB, free: 10.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.118, allocations: 191.7 kB / 413.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002301/0.1203, allocations: 1.93 MB / 415.6 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00188/0.1222, allocations: 1.752 MB / 417.4 MB, free: 6.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001201/0.1234, allocations: 0.8523 MB / 418.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.1249, allocations: 1.16 MB / 419.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002224/0.1251, allocations: 140 kB / 419.5 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004879/0.1256, allocations: 203.9 kB / 419.7 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007078/0.1263, allocations: 0.7361 MB / 420.5 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005691/0.1269, allocations: 0.5666 MB / 421 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2729/0.3998, allocations: 3.953 MB / 425 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3999, allocations: 0 / 425 MB, free: 37.61 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.3999, allocations: 3.844 kB / 425 MB, free: 37.61 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001826/0.4001, allocations: 0 / 425 MB, free: 37.61 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.006959/0.407, allocations: 3.214 MB / 428.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.4071, allocations: 8.5 kB / 428.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004099/0.4075, allocations: 351.7 kB / 428.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004886/0.408, allocations: 318.7 kB / 428.9 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003088/0.4111, allocations: 1.873 MB / 430.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001447/0.4112, allocations: 173.3 kB / 430.9 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004101/0.4117, allocations: 229 kB / 431.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00538/0.417, allocations: 3.707 MB / 434.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.694e-05/0.4171, allocations: 6.969 kB / 434.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002382/0.4173, allocations: 100.4 kB / 435 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001059/0.4175, allocations: 115.5 kB / 435.1 MB, free: 35.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005353/0.4228, allocations: 3.557 MB / 438.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01476/0.4376, allocations: 11.69 MB / 450.3 MB, free: 30.07 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0043/0.4419, allocations: 2.886 MB / 453.2 MB, free: 28.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001946/0.4421, allocations: 193.5 kB / 453.4 MB, free: 28.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.4422, allocations: 54.2 kB / 453.5 MB, free: 28.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=169): time 3.817e-06/0.4422, allocations: 4 kB / 453.5 MB, free: 28.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=169): time 0.0118/0.454, allocations: 5.965 MB / 459.4 MB, free: 26.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.212e-05/0.4541, allocations: 71.38 kB / 459.5 MB, free: 26.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00389/0.458, allocations: 2.22 MB / 461.7 MB, free: 25.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000168/0.4582, allocations: 57.08 kB / 461.8 MB, free: 25.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001007/0.4592, allocations: 1.059 MB / 462.8 MB, free: 24.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004667/0.4597, allocations: 0.5067 MB / 463.3 MB, free: 24.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.4598, allocations: 35.53 kB / 463.4 MB, free: 24.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.4599, allocations: 375.4 kB / 463.7 MB, free: 24.01 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002056/0.462, allocations: 1.04 MB / 464.8 MB, free: 23.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002207/0.4642, allocations: 1.423 MB / 466.2 MB, free: 22.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002042/0.4662, allocations: 1.087 MB / 467.3 MB, free: 22.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.157e-05/0.4663, allocations: 3.156 kB / 467.3 MB, free: 22.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006628/0.4729, allocations: 3.25 MB / 470.5 MB, free: 21.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.224e-05/0.4729, allocations: 11.66 kB / 470.5 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.626e-05/0.473, allocations: 14.92 kB / 470.6 MB, free: 21.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002917/0.4759, allocations: 1.189 MB / 471.8 MB, free: 20.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009276/0.4768, allocations: 228.5 kB / 472 MB, free: 20.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01689/0.4937, allocations: 15.18 MB / 487.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002338/0.4961, allocations: 289.6 kB / 487.4 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001966/0.4963, allocations: 72.39 kB / 487.5 MB, free: 9.773 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.001751/0.4981, allocations: 1 MB / 488.5 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005121/0.4986, allocations: 216.6 kB / 488.7 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0053/0.5039, allocations: 3.347 MB / 492.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.78e-05/0.504, allocations: 15.41 kB / 492.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.504, allocations: 0 / 492.1 MB, free: 7.098 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.748e-05/0.504, allocations: 10.72 kB / 492.1 MB, free: 7.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009281/0.5133, allocations: 6.105 MB / 498.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.5133, allocations: 0 / 498.2 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000605/0.514, allocations: 146.4 kB / 498.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002107/0.5161, allocations: 1.174 MB / 499.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.5162, allocations: 38.84 kB / 499.6 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01746/0.5337, allocations: 15.15 MB / 0.5026 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.5337, allocations: 1.969 kB / 0.5026 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008101/0.5418, allocations: 4.786 MB / 0.5073 GB, free: 11.16 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/0.5435, allocations: 0.5878 MB / 0.5079 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002834/0.5438, allocations: 31.98 kB / 0.5079 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001165/0.545, allocations: 167.2 kB / 0.5081 GB, free: 10.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007211/0.5457, allocations: 325.5 kB / 0.5084 GB, free: 10.04 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.5459, allocations: 43.98 kB / 0.5084 GB, free: 9.992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002482/0.5484, allocations: 1.555 MB / 0.51 GB, free: 8.414 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5484, allocations: 3.938 kB / 0.51 GB, free: 8.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002765/0.5511, allocations: 0.7793 MB / 0.5107 GB, free: 7.629 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.00894/0.5601, allocations: 5.437 MB / 0.516 GB, free: 2.152 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006894/0.567, allocations: 3.532 MB / 0.5195 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.5671, allocations: 0 / 0.5195 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004128/0.5712, allocations: 2.304 MB / 0.5217 GB, free: 12.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003248/0.5745, allocations: 0.5706 MB / 0.5223 GB, free: 11.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04573/0.6202, allocations: 25.69 MB / 0.5474 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002264/0.6226, allocations: 2.214 MB / 0.5495 GB, free: 14.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001856/0.6244, allocations: 0.5368 MB / 0.5501 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001249/0.6257, allocations: 0.9015 MB / 0.5509 GB, free: 13.17 MB / 430.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6257, allocations: 0 / 0.5509 GB, free: 13.17 MB / 430.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..