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.01341/0.01341, allocations: 2.577 MB / 17.52 MB, free: 4.188 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.0007689/0.0007689, allocations: 181.3 kB / 18.99 MB, free: 3.004 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.116/1.116, allocations: 223.2 MB / 243.5 MB, free: 6.711 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.0007997/0.0007997, allocations: 89.78 kB / 295.3 MB, free: 7.863 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003616/0.0003617, allocations: 15.98 kB / 356.8 MB, free: 10.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1748/0.1752, allocations: 51 MB / 407.8 MB, free: 29.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08216/0.2574, allocations: 82.4 MB / 490.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001831/0.2576, allocations: 71.97 kB / 490.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04584/0.3034, allocations: 16.29 MB / 0.4947 GB, free: 10.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.3035, allocations: 0 / 0.4947 GB, free: 10.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.817e-05/0.3035, allocations: 23.98 kB / 0.4947 GB, free: 10.11 MB / 378.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.00285/0.3064, allocations: 1.247 MB / 0.4959 GB, free: 8.812 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.224e-05/0.3064, allocations: 8.031 kB / 0.4959 GB, free: 8.805 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001674/0.3066, allocations: 82.97 kB / 0.496 GB, free: 8.723 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004475/0.3111, allocations: 1.937 MB / 0.4979 GB, free: 6.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.147e-05/0.3112, allocations: 53.3 kB / 0.498 GB, free: 6.691 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.682e-05/0.3112, allocations: 52.34 kB / 0.498 GB, free: 6.641 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001258/0.3125, allocations: 0.6809 MB / 0.4987 GB, free: 5.934 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.3125, allocations: 3.984 kB / 0.4987 GB, free: 5.93 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.104e-05/0.3126, allocations: 27.94 kB / 0.4987 GB, free: 5.902 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.656e-05/0.3127, allocations: 29 kB / 0.4987 GB, free: 5.871 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001588/0.3143, allocations: 0.5893 MB / 0.4993 GB, free: 5.285 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003816/0.3181, allocations: 2.208 MB / 0.5015 GB, free: 2.965 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00136/0.3195, allocations: 0.4909 MB / 0.5019 GB, free: 2.457 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001055/0.3196, allocations: 178.2 kB / 0.5021 GB, free: 2.246 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.3196, allocations: 38.69 kB / 0.5021 GB, free: 2.199 MB / 378.7 MB Notification: Performance of pre-optimization done (n=41): time 2.195e-06/0.3196, allocations: 0 / 0.5021 GB, free: 2.199 MB / 378.7 MB Notification: Performance of matching and sorting (n=41): time 0.00158/0.3212, allocations: 0.6073 MB / 0.5027 GB, free: 1.59 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.3212, allocations: 85.05 kB / 0.5028 GB, free: 1.488 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000532/0.3218, allocations: 0.5177 MB / 0.5033 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.3218, allocations: 37.7 kB / 0.5034 GB, free: 0.918 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000198/0.322, allocations: 359.8 kB / 0.5037 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.705e-05/0.3221, allocations: 121.6 kB / 0.5038 GB, free: 456 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.596e-05/0.3222, allocations: 12 kB / 0.5038 GB, free: 444 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.3223, allocations: 374.8 kB / 0.5042 GB, free: 60 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.14/0.4622, allocations: 191.7 kB / 0.5044 GB, free: 93.53 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000658/0.4629, allocations: 396 kB / 0.5047 GB, free: 93.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005832/0.4635, allocations: 225.2 kB / 0.505 GB, free: 93.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/0.4636, allocations: 1.969 kB / 0.505 GB, free: 93.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001589/0.4651, allocations: 0.646 MB / 0.5056 GB, free: 93.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.4652, allocations: 7.75 kB / 0.5056 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.4652, allocations: 7.656 kB / 0.5056 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.549e-05/0.4652, allocations: 18.34 kB / 0.5056 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003574/0.4656, allocations: 112.8 kB / 0.5057 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.576e-05/0.4656, allocations: 10.77 kB / 0.5057 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004338/0.4661, allocations: 73.86 kB / 0.5058 GB, free: 93.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.843e-05/0.4661, allocations: 26.98 kB / 0.5058 GB, free: 93.26 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 16 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[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],sinCosEvaluation.integralController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003525/0.4665, allocations: 273 kB / 0.5061 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.4666, allocations: 66.19 kB / 0.5062 GB, free: 93.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.4678, allocations: 0.52 MB / 0.5067 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.4679, allocations: 4.609 kB / 0.5067 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.4679, allocations: 1.062 kB / 0.5067 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.762e-06/0.4679, allocations: 4.344 kB / 0.5067 GB, free: 93.06 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002171/0.47, allocations: 1.34 MB / 0.508 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.4701, allocations: 5.516 kB / 0.508 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000202/0.4703, allocations: 51.17 kB / 0.508 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.4703, allocations: 9.109 kB / 0.5081 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.087e-05/0.4703, allocations: 10.95 kB / 0.5081 GB, free: 92.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.192e-06/0.4703, allocations: 8.25 kB / 0.5081 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4703, allocations: 3.469 kB / 0.5081 GB, free: 92.58 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001516/0.4719, allocations: 0.9198 MB / 0.509 GB, free: 92.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001945/0.4721, allocations: 177.5 kB / 0.5091 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.4721, allocations: 15.25 kB / 0.5092 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000341/0.4725, allocations: 32.47 kB / 0.5092 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.4726, allocations: 66.72 kB / 0.5093 GB, free: 92.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.744e-05/0.4727, allocations: 19.91 kB / 0.5093 GB, free: 92.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004983/0.4732, allocations: 438.3 kB / 0.5097 GB, free: 91.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4732, allocations: 0.5312 kB / 0.5097 GB, free: 91.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005005/0.4737, allocations: 140.7 kB / 0.5098 GB, free: 91.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (constantSpeed.phi,sinCosEvaluation.integralController.y) * Number of discrete variables: 15 (electronicCommutator.uC[1],electronicCommutator.uC[2],electronicCommutator.uC[3],electronicCommutator.uC[4],electronicCommutator.uC[5],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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001786/0.4739, allocations: 141.6 kB / 0.51 GB, free: 91.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.475, allocations: 494.7 kB / 0.5104 GB, free: 91.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.475, allocations: 0 / 0.5104 GB, free: 91.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005307/0.4756, allocations: 287.3 kB / 0.5107 GB, free: 91.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003206/0.4759, allocations: 67.2 kB / 0.5108 GB, free: 91.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.4785, allocations: 1.697 MB / 0.5124 GB, free: 91.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.4788, allocations: 0.952 MB / 0.5134 GB, free: 90.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004452/0.4792, allocations: 194.4 kB / 0.5135 GB, free: 90.36 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.4794, allocations: 54.23 kB / 0.5136 GB, free: 90.35 MB / 378.7 MB Notification: Performance of SimCode: time 3.2e-07/0.4794, allocations: 0 / 0.5136 GB, free: 90.35 MB / 378.7 MB Notification: Performance of Templates: time 0.007013/0.4864, allocations: 4.39 MB / 0.5179 GB, free: 90.12 MB / 378.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)