Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BLDC_BLDC.Examples.DemoElectronicCommutator.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.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=199998,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001588/0.001588, allocations: 194.4 kB / 16.25 MB, free: 6.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.567/1.567, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.1847/0.1847, allocations: 2.578 MB / 292.7 MB, free: 3.414 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001637/0.001637, allocations: 91.86 kB / 353.5 MB, free: 5.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1215, allocations: 50.03 MB / 403.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004588/0.1262, allocations: 3.036 MB / 406.6 MB, free: 112 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002328/0.1285, allocations: 1.29 MB / 407.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002901/0.1288, allocations: 19.94 kB / 407.9 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003706/0.1292, allocations: 71.44 kB / 408 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001159/0.1304, allocations: 394.4 kB / 408.4 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003396/0.1308, allocations: 159.9 kB / 408.5 MB, free: 14.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001/0.1318, allocations: 0.7759 MB / 409.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004578/0.1322, allocations: 369.3 kB / 409.7 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003562/0.1326, allocations: 326.9 kB / 410 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003743/0.133, allocations: 354.6 kB / 410.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.632e-05/0.1331, allocations: 64 kB / 410.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002734/0.1334, allocations: 147.9 kB / 410.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.1336, allocations: 227.3 kB / 410.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000289/0.1339, allocations: 338.1 kB / 411.1 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008709/0.1348, allocations: 0.818 MB / 411.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.1348, allocations: 0 / 411.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1348, allocations: 0 / 411.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.094e-05/0.1348, allocations: 0 / 411.9 MB, free: 10.79 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: 143 * Number of variables: 143 Notification: Performance of Generate backend data structure: time 0.00271/0.1375, allocations: 1.177 MB / 413.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.25e-05/0.1376, allocations: 8.031 kB / 413.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002176/0.1378, allocations: 87.98 kB / 413.2 MB, free: 9.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007056/0.1385, allocations: 0.5442 MB / 413.7 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.67e-05/0.1386, allocations: 41.69 kB / 413.8 MB, free: 8.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.076e-05/0.1386, allocations: 48.38 kB / 413.8 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001396/0.14, allocations: 0.7339 MB / 414.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.143e-05/0.1401, allocations: 0 / 414.5 MB, free: 8.039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.986e-05/0.1401, allocations: 23.98 kB / 414.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.336e-05/0.1402, allocations: 41.3 kB / 414.6 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001512/0.1417, allocations: 0.6218 MB / 415.2 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003642/0.1454, allocations: 2.207 MB / 417.4 MB, free: 5.074 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.147, allocations: 0.5572 MB / 418 MB, free: 4.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006177/0.1476, allocations: 260.6 kB / 418.2 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001955/0.1478, allocations: 178.1 kB / 418.4 MB, free: 4.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.1478, allocations: 38.55 kB / 418.5 MB, free: 3.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.775e-06/0.1478, allocations: 4 kB / 418.5 MB, free: 3.988 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002133/0.15, allocations: 0.7198 MB / 419.2 MB, free: 3.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.446e-05/0.15, allocations: 55.41 kB / 419.2 MB, free: 3.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007357/0.1508, allocations: 0.6162 MB / 419.9 MB, free: 2.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.617e-05/0.1508, allocations: 37.7 kB / 419.9 MB, free: 2.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002362/0.1511, allocations: 323.8 kB / 420.2 MB, free: 2.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.1512, allocations: 134.1 kB / 420.3 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.1514, allocations: 106.2 kB / 420.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001703/0.1516, allocations: 374.8 kB / 420.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005928/0.1522, allocations: 220.9 kB / 421 MB, free: 1.371 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006812/0.1529, allocations: 351.1 kB / 421.4 MB, free: 0.9844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.154, allocations: 494.3 kB / 421.8 MB, free: 460 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.154, allocations: 7.938 kB / 421.9 MB, free: 452 kB / 350.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.2429/0.3969, allocations: 0.6105 MB / 422.5 MB, free: 50.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.375e-05/0.397, allocations: 10.44 kB / 422.5 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.397, allocations: 3.781 kB / 422.5 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.042e-05/0.397, allocations: 5.875 kB / 422.5 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004256/0.3975, allocations: 88.06 kB / 422.6 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.884e-05/0.3975, allocations: 10.62 kB / 422.6 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006135/0.3981, allocations: 84.47 kB / 422.7 MB, free: 50.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.548e-05/0.3982, allocations: 26.53 kB / 422.7 MB, free: 50.34 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.fire_n[5],electronicCommutator.fire_n[4],electronicCommutator.fire_n[3],electronicCommutator.fire_n[2],electronicCommutator.fire_n[1],electronicCommutator.fire_p[5],electronicCommutator.fire_p[4],electronicCommutator.fire_p[3],electronicCommutator.fire_p[2],electronicCommutator.fire_p[1],hallSensor.yC[5],hallSensor.yC[4],hallSensor.yC[3],hallSensor.yC[2],hallSensor.yC[1],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (59): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000446/0.3986, allocations: 266.8 kB / 422.9 MB, free: 50.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002397/0.3989, allocations: 64.78 kB / 423 MB, free: 50.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/0.4005, allocations: 0.6217 MB / 423.6 MB, free: 50.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.4005, allocations: 3.438 kB / 423.6 MB, free: 50.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4005, allocations: 0 / 423.6 MB, free: 50.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.426e-06/0.4005, allocations: 6.609 kB / 423.6 MB, free: 50.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00214/0.4027, allocations: 1.34 MB / 425 MB, free: 49.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4027, allocations: 0 / 425 MB, free: 49.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002392/0.4029, allocations: 59.55 kB / 425 MB, free: 49.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.403, allocations: 3.188 kB / 425 MB, free: 49.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.06e-05/0.403, allocations: 11.33 kB / 425.1 MB, free: 49.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.403, allocations: 3.156 kB / 425.1 MB, free: 49.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.403, allocations: 0 / 425.1 MB, free: 49.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001973/0.405, allocations: 0.9592 MB / 426 MB, free: 49.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.4052, allocations: 200.8 kB / 426.2 MB, free: 49.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.661e-05/0.4053, allocations: 11.09 kB / 426.2 MB, free: 49.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004191/0.4057, allocations: 54.81 kB / 426.3 MB, free: 49.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002564/0.406, allocations: 118.3 kB / 426.4 MB, free: 49.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.151e-05/0.406, allocations: 28.25 kB / 426.4 MB, free: 49.37 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004319/0.4065, allocations: 428 kB / 426.8 MB, free: 49.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4065, allocations: 0 / 426.8 MB, free: 49.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005714/0.4071, allocations: 153.4 kB / 427 MB, free: 49.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002549/0.4073, allocations: 141.4 kB / 427.1 MB, free: 49.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001486/0.4088, allocations: 0.6478 MB / 427.8 MB, free: 48.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.4088, allocations: 3.25 kB / 427.8 MB, free: 48.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006029/0.4094, allocations: 291.9 kB / 428.1 MB, free: 48.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005187/0.41, allocations: 63.44 kB / 428.1 MB, free: 48.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002171/0.4121, allocations: 1.478 MB / 429.6 MB, free: 47.98 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.4125, allocations: 0.9483 MB / 430.6 MB, free: 47.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004629/0.413, allocations: 194.9 kB / 430.7 MB, free: 47.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001593/0.4132, allocations: 56.77 kB / 430.8 MB, free: 47.22 MB / 350.1 MB Notification: Performance of SimCode: time 1.643e-06/0.4132, allocations: 1.312 kB / 430.8 MB, free: 47.22 MB / 350.1 MB Notification: Performance of Templates: time 0.01143/0.4246, allocations: 6.693 MB / 437.5 MB, free: 46.77 MB / 350.1 MB make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile (rm -f BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; mkfifo BLDC_BLDC.Examples.DemoElectronicCommutator.pipe ; head -c 1048576 < BLDC_BLDC.Examples.DemoElectronicCommutator.pipe >> ../files/BLDC_BLDC.Examples.DemoElectronicCommutator.sim & ./BLDC_BLDC.Examples.DemoElectronicCommutator -abortSlowSimulation -alarm=480 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)