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.001574/0.001574, allocations: 106.9 kB / 16.36 MB, free: 5.824 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.001803/0.001803, allocations: 190.5 kB / 17.29 MB, free: 5.48 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.378/1.378, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01272/0.01272, allocations: 2.596 MB / 293.7 MB, free: 12.19 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001751/0.001751, allocations: 91.84 kB / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1978/0.1995, allocations: 50.04 MB / 405.5 MB, free: 33.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003318/0.2029, allocations: 2.993 MB / 408.5 MB, free: 30.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00169/0.2046, allocations: 1.305 MB / 409.8 MB, free: 28.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001945/0.2048, allocations: 19.94 kB / 409.8 MB, free: 28.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002814/0.2051, allocations: 95.16 kB / 409.9 MB, free: 28.83 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008667/0.206, allocations: 441.8 kB / 410.4 MB, free: 28.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.2062, allocations: 175.8 kB / 410.5 MB, free: 28.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007206/0.207, allocations: 0.7798 MB / 411.3 MB, free: 27.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003696/0.2074, allocations: 365.3 kB / 411.7 MB, free: 27.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002474/0.2076, allocations: 307 kB / 412 MB, free: 26.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002721/0.2079, allocations: 346.5 kB / 412.3 MB, free: 26.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.701e-05/0.208, allocations: 60 kB / 412.4 MB, free: 26.38 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.2082, allocations: 147.9 kB / 412.5 MB, free: 26.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.2083, allocations: 235.3 kB / 412.7 MB, free: 26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002036/0.2086, allocations: 338 kB / 413.1 MB, free: 25.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005686/0.2091, allocations: 0.8425 MB / 413.9 MB, free: 24.83 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2091, allocations: 0 / 413.9 MB, free: 24.83 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2092, allocations: 0 / 413.9 MB, free: 24.83 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.2092, allocations: 0 / 413.9 MB, free: 24.83 MB / 302.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.002134/0.2113, allocations: 1.181 MB / 415.1 MB, free: 23.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.27e-05/0.2113, allocations: 12.03 kB / 415.1 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000175/0.2115, allocations: 80 kB / 415.2 MB, free: 23.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006853/0.2122, allocations: 0.5677 MB / 415.7 MB, free: 22.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.2123, allocations: 33.69 kB / 415.8 MB, free: 22.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.424e-05/0.2123, allocations: 56.36 kB / 415.8 MB, free: 22.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001099/0.2134, allocations: 0.7299 MB / 416.6 MB, free: 22.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.705e-05/0.2135, allocations: 0 / 416.6 MB, free: 22.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.818e-05/0.2135, allocations: 24 kB / 416.6 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.109e-05/0.2136, allocations: 37.3 kB / 416.6 MB, free: 22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.2149, allocations: 0.6257 MB / 417.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002974/0.2179, allocations: 2.191 MB / 419.4 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.2193, allocations: 0.5609 MB / 420 MB, free: 18.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005302/0.2198, allocations: 260.7 kB / 420.3 MB, free: 18.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001171/0.22, allocations: 178.1 kB / 420.4 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.637e-05/0.22, allocations: 42.56 kB / 420.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.013e-06/0.22, allocations: 0 / 420.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.001746/0.2217, allocations: 0.7313 MB / 421.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.249e-05/0.2218, allocations: 59.39 kB / 421.3 MB, free: 17.21 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000519/0.2223, allocations: 0.6046 MB / 421.9 MB, free: 16.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.314e-05/0.2223, allocations: 33.7 kB / 421.9 MB, free: 16.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001452/0.2225, allocations: 331.8 kB / 422.2 MB, free: 16.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.391e-05/0.2226, allocations: 134 kB / 422.4 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001426/0.2227, allocations: 118.2 kB / 422.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.37e-05/0.2228, allocations: 374.8 kB / 422.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000533/0.2233, allocations: 221 kB / 423.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005535/0.2239, allocations: 343.1 kB / 423.4 MB, free: 15 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009581/0.2249, allocations: 494.6 kB / 423.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2249, allocations: 0 / 423.9 MB, free: 14.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001273/0.2262, allocations: 0.6234 MB / 424.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.2262, allocations: 12.06 kB / 424.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2262, allocations: 4 kB / 424.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.783e-05/0.2262, allocations: 4 kB / 424.5 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002728/0.2265, allocations: 87.88 kB / 424.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.2265, allocations: 7.938 kB / 424.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003788/0.2269, allocations: 83.3 kB / 424.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.227, allocations: 23.98 kB / 424.7 MB, free: 13.62 MB / 302.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.0002528/0.2272, allocations: 271.8 kB / 425 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000132/0.2274, allocations: 63.19 kB / 425 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001368/0.2287, allocations: 0.6088 MB / 425.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.2288, allocations: 4 kB / 425.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.2288, allocations: 4 kB / 425.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.2288, allocations: 3.984 kB / 425.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002088/0.2309, allocations: 1.346 MB / 427 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.2309, allocations: 3.938 kB / 427 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002426/0.2311, allocations: 59.89 kB / 427.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.2311, allocations: 4 kB / 427.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-05/0.2312, allocations: 12 kB / 427.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.2312, allocations: 7.984 kB / 427.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2312, allocations: 0 / 427.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00176/0.233, allocations: 0.9545 MB / 428 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000239/0.2332, allocations: 204.1 kB / 428.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.369e-05/0.2333, allocations: 4 kB / 428.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004015/0.2337, allocations: 59.92 kB / 428.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.2339, allocations: 115.8 kB / 428.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.72e-05/0.234, allocations: 24.05 kB / 428.4 MB, free: 9.781 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003688/0.2344, allocations: 430.8 kB / 428.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2344, allocations: 0 / 428.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004503/0.2348, allocations: 147.7 kB / 429 MB, free: 9.219 MB / 302.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.0001968/0.235, allocations: 153.4 kB / 429.2 MB, free: 9.059 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.2362, allocations: 0.5388 MB / 429.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2362, allocations: 0 / 429.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005738/0.2368, allocations: 299.4 kB / 430 MB, free: 8.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004539/0.2373, allocations: 67.14 kB / 430.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.2389, allocations: 1.226 MB / 431.3 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.2393, allocations: 0.938 MB / 432.2 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003795/0.2396, allocations: 192.5 kB / 432.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.2398, allocations: 63.41 kB / 432.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2398, allocations: 0 / 432.5 MB, free: 5.688 MB / 302.1 MB Notification: Performance of Templates: time 0.01064/0.2504, allocations: 7.138 MB / 439.6 MB, free: 14.57 MB / 318.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 -s cvode -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)