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/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.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/BLDC 1.9.0/package.mo): time 0.0103/0.0103, allocations: 2.571 MB / 17.84 MB, free: 3.961 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.0006911/0.0006911, allocations: 172.7 kB / 19.3 MB, free: 2.496 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.177/1.177, allocations: 222.9 MB / 243.5 MB, free: 8.48 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.0007932/0.0007932, allocations: 96.8 kB / 294.9 MB, free: 8.352 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003764/0.0003765, allocations: 12 kB / 356.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1683/0.1687, allocations: 50.6 MB / 406.8 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.00303/0.1718, allocations: 3.035 MB / 409.8 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.1732, allocations: 1.298 MB / 411.1 MB, free: 25.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.1734, allocations: 15.94 kB / 411.1 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002453/0.1736, allocations: 71.5 kB / 411.2 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007487/0.1744, allocations: 402.4 kB / 411.6 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002109/0.1746, allocations: 167.8 kB / 411.8 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006986/0.1753, allocations: 0.8304 MB / 412.6 MB, free: 24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003052/0.1756, allocations: 337.4 kB / 412.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002121/0.1759, allocations: 278.9 kB / 413.2 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.1761, allocations: 334.5 kB / 413.5 MB, free: 23.06 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.132e-05/0.1762, allocations: 32 kB / 413.6 MB, free: 23.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.1763, allocations: 123.9 kB / 413.7 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.1765, allocations: 187.3 kB / 413.9 MB, free: 22.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001588/0.1766, allocations: 310 kB / 414.2 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004556/0.1771, allocations: 0.7688 MB / 414.9 MB, free: 21.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.1771, allocations: 0 / 414.9 MB, free: 21.65 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1771, allocations: 0 / 414.9 MB, free: 21.65 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.1771, allocations: 0 / 414.9 MB, free: 21.65 MB / 298.7 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.002004/0.1791, allocations: 1.181 MB / 416.1 MB, free: 20.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.682e-05/0.1792, allocations: 8.031 kB / 416.1 MB, free: 20.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.1793, allocations: 83.98 kB / 416.2 MB, free: 20.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005198/0.1799, allocations: 0.5443 MB / 416.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/0.1799, allocations: 41.69 kB / 416.8 MB, free: 19.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.787e-05/0.18, allocations: 52.38 kB / 416.8 MB, free: 19.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001064/0.181, allocations: 0.7339 MB / 417.6 MB, free: 18.9 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1811, allocations: 0 / 417.6 MB, free: 18.9 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/0.1811, allocations: 16 kB / 417.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.001e-05/0.1812, allocations: 41.3 kB / 417.6 MB, free: 18.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.1824, allocations: 0.6218 MB / 418.3 MB, free: 18.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002717/0.1852, allocations: 2.207 MB / 420.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/0.1866, allocations: 0.5611 MB / 421 MB, free: 15.38 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005417/0.1871, allocations: 256.7 kB / 421.3 MB, free: 15.12 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001011/0.1872, allocations: 182.1 kB / 421.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.1872, allocations: 42.55 kB / 421.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.573e-06/0.1872, allocations: 0 / 421.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.001678/0.1889, allocations: 0.7274 MB / 422.2 MB, free: 14.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.888e-05/0.189, allocations: 55.41 kB / 422.3 MB, free: 14.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004705/0.1894, allocations: 0.6124 MB / 422.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.891e-05/0.1895, allocations: 37.64 kB / 422.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000142/0.1896, allocations: 327.9 kB / 423.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.275e-05/0.1897, allocations: 142 kB / 423.4 MB, free: 12.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001274/0.1898, allocations: 106.2 kB / 423.5 MB, free: 12.81 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.655e-05/0.1899, allocations: 374.8 kB / 423.9 MB, free: 12.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005261/0.1904, allocations: 217 kB / 424.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005879/0.191, allocations: 347.7 kB / 424.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009902/0.192, allocations: 0.4908 MB / 424.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.192, allocations: 0 / 424.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001266/0.1933, allocations: 0.6192 MB / 425.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.1933, allocations: 4 kB / 425.5 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1934, allocations: 4 kB / 425.5 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.1934, allocations: 11.94 kB / 425.5 MB, free: 10.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.1936, allocations: 79.89 kB / 425.6 MB, free: 10.57 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.1937, allocations: 16.39 kB / 425.6 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003754/0.194, allocations: 83.3 kB / 425.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.173e-05/0.1941, allocations: 31.98 kB / 425.7 MB, free: 10.45 MB / 298.7 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.0002182/0.1943, allocations: 255.8 kB / 426 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.1944, allocations: 75.17 kB / 426.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001404/0.1958, allocations: 0.6127 MB / 426.7 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1959, allocations: 4 kB / 426.7 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1959, allocations: 0 / 426.7 MB, free: 9.492 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.1959, allocations: 3.984 kB / 426.7 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001953/0.1978, allocations: 1.345 MB / 428 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1979, allocations: 0 / 428 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000224/0.1981, allocations: 55.91 kB / 428.1 MB, free: 8.031 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.1981, allocations: 4 kB / 428.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.221e-05/0.1981, allocations: 15.98 kB / 428.1 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1981, allocations: 0 / 428.1 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1981, allocations: 0 / 428.1 MB, free: 8.012 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.2, allocations: 0.9607 MB / 429.1 MB, free: 7.035 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001747/0.2001, allocations: 196.2 kB / 429.3 MB, free: 6.824 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.227e-05/0.2002, allocations: 8 kB / 429.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004095/0.2006, allocations: 63.86 kB / 429.3 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.2008, allocations: 119.7 kB / 429.4 MB, free: 6.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.338e-05/0.2009, allocations: 15.98 kB / 429.5 MB, free: 6.621 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003461/0.2012, allocations: 438.8 kB / 429.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2012, allocations: 0 / 429.9 MB, free: 6.195 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000421/0.2017, allocations: 151.8 kB / 430 MB, free: 6.047 MB / 298.7 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.0001635/0.2018, allocations: 136.9 kB / 430.2 MB, free: 5.902 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001198/0.203, allocations: 0.5429 MB / 430.7 MB, free: 5.359 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2031, allocations: 4 kB / 430.7 MB, free: 5.355 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005927/0.2037, allocations: 291.6 kB / 431 MB, free: 5.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004447/0.2041, allocations: 69.38 kB / 431.1 MB, free: 5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.206, allocations: 1.477 MB / 432.5 MB, free: 3.492 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.2063, allocations: 0.9383 MB / 433.5 MB, free: 2.531 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000467/0.2068, allocations: 192.5 kB / 433.7 MB, free: 2.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000152/0.207, allocations: 55.42 kB / 433.7 MB, free: 2.285 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.207, allocations: 0 / 433.7 MB, free: 2.285 MB / 298.7 MB Notification: Performance of Templates: time 0.01033/0.2173, allocations: 6.348 MB / 440.1 MB, free: 11.96 MB / 314.7 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)