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.001253/0.001253, allocations: 105.6 kB / 16.27 MB, free: 6.414 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.001227/0.001227, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.268/1.268, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01253/0.01253, allocations: 2.597 MB / 293.6 MB, free: 12.25 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 95.84 kB / 354.7 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1929/0.1946, allocations: 50.03 MB / 404.7 MB, free: 33.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003546/0.1982, allocations: 2.995 MB / 407.7 MB, free: 30.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.2, allocations: 1.313 MB / 409.1 MB, free: 29.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/0.2002, allocations: 15.94 kB / 409.1 MB, free: 29.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003048/0.2005, allocations: 95.17 kB / 409.2 MB, free: 28.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008911/0.2014, allocations: 444.9 kB / 409.6 MB, free: 28.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002442/0.2017, allocations: 179.7 kB / 409.8 MB, free: 28.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006951/0.2024, allocations: 0.7682 MB / 410.5 MB, free: 27.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003478/0.2028, allocations: 361.3 kB / 410.9 MB, free: 27.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002475/0.203, allocations: 319 kB / 411.2 MB, free: 26.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002739/0.2033, allocations: 338.6 kB / 411.5 MB, free: 26.6 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.181e-05/0.2034, allocations: 64 kB / 411.6 MB, free: 26.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002231/0.2036, allocations: 143.9 kB / 411.7 MB, free: 26.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000152/0.2038, allocations: 223.4 kB / 412 MB, free: 26.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000203/0.204, allocations: 334 kB / 412.3 MB, free: 25.85 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005819/0.2046, allocations: 0.8235 MB / 413.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2046, allocations: 0 / 413.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2046, allocations: 4 kB / 413.1 MB, free: 25.02 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.2046, allocations: 0 / 413.1 MB, free: 25.02 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.002234/0.2068, allocations: 1.177 MB / 414.3 MB, free: 23.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.832e-05/0.2069, allocations: 12.03 kB / 414.3 MB, free: 23.78 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.2071, allocations: 83.98 kB / 414.4 MB, free: 23.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005689/0.2076, allocations: 0.5404 MB / 414.9 MB, free: 23.12 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.2077, allocations: 37.69 kB / 415 MB, free: 23.08 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.948e-05/0.2078, allocations: 48.38 kB / 415 MB, free: 23.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.2089, allocations: 0.7299 MB / 415.7 MB, free: 22.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.209, allocations: 8 kB / 415.7 MB, free: 22.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.225e-05/0.209, allocations: 20 kB / 415.8 MB, free: 22.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.113e-05/0.2091, allocations: 41.28 kB / 415.8 MB, free: 22.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001412/0.2105, allocations: 0.6257 MB / 416.4 MB, free: 21.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002985/0.2135, allocations: 2.207 MB / 418.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001534/0.215, allocations: 0.5726 MB / 419.2 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005766/0.2156, allocations: 252.7 kB / 419.5 MB, free: 18.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001115/0.2157, allocations: 182.1 kB / 419.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.984e-05/0.2158, allocations: 42.5 kB / 419.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.724e-06/0.2158, allocations: 4 kB / 419.7 MB, free: 18.21 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.001905/0.2177, allocations: 0.7275 MB / 420.4 MB, free: 17.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.276e-05/0.2177, allocations: 59.41 kB / 420.5 MB, free: 17.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000527/0.2182, allocations: 0.6046 MB / 421.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.2183, allocations: 29.7 kB / 421.1 MB, free: 16.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001525/0.2184, allocations: 323.8 kB / 421.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.992e-05/0.2185, allocations: 138 kB / 421.5 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001382/0.2187, allocations: 114.2 kB / 421.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.565e-05/0.2187, allocations: 374.8 kB / 422 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005755/0.2193, allocations: 221 kB / 422.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006093/0.2199, allocations: 347.1 kB / 422.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.221, allocations: 490.6 kB / 423.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.2211, allocations: 4 kB / 423.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001359/0.2224, allocations: 0.6191 MB / 423.7 MB, free: 14.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.2224, allocations: 12.45 kB / 423.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.2225, allocations: 8 kB / 423.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.2225, allocations: 4 kB / 423.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002808/0.2228, allocations: 83.89 kB / 423.8 MB, free: 13.94 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.818e-06/0.2228, allocations: 7.938 kB / 423.8 MB, free: 13.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000412/0.2232, allocations: 83.3 kB / 423.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.067e-05/0.2233, allocations: 23.98 kB / 423.9 MB, free: 13.82 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.0002417/0.2235, allocations: 271.8 kB / 424.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001267/0.2236, allocations: 67.19 kB / 424.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001445/0.2251, allocations: 0.6127 MB / 424.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.2251, allocations: 4 kB / 424.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2251, allocations: 4 kB / 424.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.2251, allocations: 0 / 424.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002083/0.2272, allocations: 1.341 MB / 426.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.2272, allocations: 0 / 426.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002316/0.2275, allocations: 63.89 kB / 426.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.2275, allocations: 0 / 426.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-05/0.2275, allocations: 15.98 kB / 426.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/0.2275, allocations: 8 kB / 426.3 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.2275, allocations: 3.938 kB / 426.3 MB, free: 11.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.2295, allocations: 0.9525 MB / 427.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/0.2297, allocations: 200.2 kB / 427.4 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.571e-05/0.2297, allocations: 12 kB / 427.4 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004335/0.2302, allocations: 51.92 kB / 427.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.2304, allocations: 127.9 kB / 427.6 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.447e-05/0.2305, allocations: 23.98 kB / 427.6 MB, free: 9.977 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003688/0.2308, allocations: 426.8 kB / 428.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2308, allocations: 0 / 428.1 MB, free: 9.562 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004589/0.2313, allocations: 151.7 kB / 428.2 MB, free: 9.414 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.0001862/0.2315, allocations: 141.4 kB / 428.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001466/0.233, allocations: 0.6555 MB / 429 MB, free: 8.609 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.233, allocations: 0 / 429 MB, free: 8.609 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006226/0.2336, allocations: 287.7 kB / 429.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004497/0.2341, allocations: 66.28 kB / 429.3 MB, free: 8.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.2359, allocations: 1.294 MB / 430.6 MB, free: 6.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002932/0.2362, allocations: 0.942 MB / 431.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.2364, allocations: 67.41 kB / 431.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2364, allocations: 0 / 431.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of Templates: time 0.0102/0.2466, allocations: 9.035 MB / 440.7 MB, free: 12.88 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 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)