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.000828/0.000828, allocations: 84.38 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.0008652/0.0008652, 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.384/1.384, allocations: 223.2 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1617/0.1617, allocations: 2.568 MB / 293.6 MB, free: 4.145 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004399/0.00044, allocations: 12 kB / 355.2 MB, free: 4.836 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1102, allocations: 51.02 MB / 406.3 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoBLDCVoltages): time 0.006822/0.1171, allocations: 4.948 MB / 411.2 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004348/0.1215, allocations: 1.82 MB / 413 MB, free: 10.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.1227, allocations: 27.88 kB / 413.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009084/0.1237, allocations: 194.6 kB / 413.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002197/0.1259, allocations: 0.6457 MB / 413.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007703/0.1267, allocations: 179.8 kB / 414.1 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003738/0.1304, allocations: 3.126 MB / 417.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002118/0.1325, allocations: 1.728 MB / 418.9 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001593/0.1341, allocations: 0.9106 MB / 419.8 MB, free: 4.109 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001759/0.1359, allocations: 1.315 MB / 421.2 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002242/0.1361, allocations: 136 kB / 421.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005882/0.1367, allocations: 211.9 kB / 421.5 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006915/0.1374, allocations: 0.7749 MB / 422.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006192/0.1381, allocations: 0.5705 MB / 422.8 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2323/0.3704, allocations: 3.973 MB / 426.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.3705, allocations: 3.328 kB / 426.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.3705, allocations: 0 / 426.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001412/0.3706, allocations: 3.312 kB / 426.8 MB, free: 37.82 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.006265/0.3769, allocations: 3.211 MB / 430 MB, free: 36.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.377, allocations: 8.062 kB / 430 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008011/0.3778, allocations: 351.3 kB / 430.4 MB, free: 36.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006803/0.3785, allocations: 319.7 kB / 430.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00285/0.3813, allocations: 1.876 MB / 432.6 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.887e-05/0.3814, allocations: 173.8 kB / 432.7 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003005/0.3817, allocations: 227.5 kB / 433 MB, free: 35.87 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00604/0.3878, allocations: 3.733 MB / 436.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.081e-05/0.3879, allocations: 4.25 kB / 436.7 MB, free: 35.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002524/0.3881, allocations: 95.58 kB / 436.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000139/0.3883, allocations: 117.4 kB / 436.9 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005957/0.3942, allocations: 3.563 MB / 440.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01601/0.4103, allocations: 11.7 MB / 452.2 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004386/0.4147, allocations: 2.895 MB / 455.1 MB, free: 29.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002306/0.417, allocations: 1.662 MB / 456.7 MB, free: 28.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002228/0.4173, allocations: 185 kB / 456.9 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/0.4173, allocations: 54.84 kB / 457 MB, free: 28.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=169): time 4.058e-06/0.4173, allocations: 0 / 457 MB, free: 28.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=169): time 0.0134/0.4307, allocations: 6.088 MB / 463 MB, free: 26.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.442e-05/0.4308, allocations: 70.22 kB / 463.1 MB, free: 26.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00398/0.4348, allocations: 2.222 MB / 465.3 MB, free: 25.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002679/0.4351, allocations: 56.02 kB / 465.4 MB, free: 25.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008325/0.4359, allocations: 1.071 MB / 466.5 MB, free: 24.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005528/0.4365, allocations: 0.5038 MB / 467 MB, free: 23.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.4366, allocations: 30.91 kB / 467 MB, free: 23.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.4368, allocations: 374.2 kB / 467.4 MB, free: 23.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/0.4387, allocations: 1.034 MB / 468.4 MB, free: 23.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002072/0.4408, allocations: 1.418 MB / 469.8 MB, free: 22.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001886/0.4427, allocations: 1.078 MB / 470.9 MB, free: 21.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.779e-06/0.4427, allocations: 3.594 kB / 470.9 MB, free: 21.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.006253/0.449, allocations: 3.269 MB / 474.2 MB, free: 20.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.449, allocations: 10.66 kB / 474.2 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.724e-05/0.4491, allocations: 10.91 kB / 474.2 MB, free: 20.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002745/0.4518, allocations: 1.247 MB / 475.4 MB, free: 20.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00077/0.4526, allocations: 216.8 kB / 475.6 MB, free: 20.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01522/0.4678, allocations: 15.6 MB / 491.2 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/0.47, allocations: 283.7 kB / 491.5 MB, free: 8.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/0.4702, allocations: 72.08 kB / 491.6 MB, free: 8.113 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.001797/0.472, allocations: 1.003 MB / 492.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005095/0.4725, allocations: 220 kB / 492.8 MB, free: 7.367 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005211/0.4778, allocations: 3.38 MB / 496.2 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.579e-05/0.4778, allocations: 16 kB / 496.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.4778, allocations: 0 / 496.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.5e-05/0.4778, allocations: 11.92 kB / 496.2 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009588/0.4874, allocations: 6.692 MB / 0.4911 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.4875, allocations: 4 kB / 0.4911 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005741/0.488, allocations: 131.4 kB / 0.4912 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00244/0.4905, allocations: 1.194 MB / 0.4924 GB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001293/0.4906, allocations: 31.98 kB / 0.4924 GB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01778/0.5084, allocations: 15.16 MB / 0.5073 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.5085, allocations: 0 / 0.5073 GB, free: 12.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008666/0.5171, allocations: 4.761 MB / 0.5119 GB, free: 7.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001504/0.5187, allocations: 0.6034 MB / 0.5125 GB, free: 7.215 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00027/0.519, allocations: 32.06 kB / 0.5125 GB, free: 7.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.5201, allocations: 163.8 kB / 0.5127 GB, free: 7.02 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007636/0.5209, allocations: 325.5 kB / 0.513 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001274/0.521, allocations: 47.75 kB / 0.513 GB, free: 6.656 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00277/0.5238, allocations: 1.555 MB / 0.5146 GB, free: 5.078 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.224e-06/0.5238, allocations: 2.719 kB / 0.5146 GB, free: 5.078 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003028/0.5268, allocations: 0.785 MB / 0.5153 GB, free: 4.293 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.008153/0.535, allocations: 5.412 MB / 0.5206 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00649/0.5415, allocations: 3.584 MB / 0.5241 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.5416, allocations: 4 kB / 0.5241 GB, free: 11.24 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003755/0.5453, allocations: 2.349 MB / 0.5264 GB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002918/0.5483, allocations: 0.593 MB / 0.527 GB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04192/0.5902, allocations: 18.99 MB / 0.5455 GB, free: 4.328 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002239/0.5925, allocations: 2.171 MB / 0.5477 GB, free: 2.117 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001594/0.5941, allocations: 0.5134 MB / 0.5482 GB, free: 1.602 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001211/0.5953, allocations: 0.9015 MB / 0.549 GB, free: 0.6992 MB / 414.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5953, allocations: 3.938 kB / 0.549 GB, free: 0.6953 MB / 414.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..