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.01611/0.01611, allocations: 2.593 MB / 18.39 MB, free: 3.34 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.001058/0.001058, allocations: 184.7 kB / 19.86 MB, free: 1.875 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.213/1.213, allocations: 222.9 MB / 244.1 MB, free: 7.723 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.001021/0.001021, allocations: 106.7 kB / 294.9 MB, free: 8.113 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001387/0.001387, allocations: 75.88 kB / 355.8 MB, free: 11.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1752/0.1766, allocations: 50.02 MB / 405.8 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003159/0.1798, allocations: 3.042 MB / 408.8 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001469/0.1813, allocations: 1.3 MB / 410.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.1815, allocations: 11.94 kB / 410.1 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002548/0.1817, allocations: 75.5 kB / 410.2 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007778/0.1825, allocations: 407.2 kB / 410.6 MB, free: 24.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002136/0.1827, allocations: 155.8 kB / 410.8 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007147/0.1835, allocations: 0.8461 MB / 411.6 MB, free: 23.99 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003244/0.1838, allocations: 341.3 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002181/0.184, allocations: 286.9 kB / 412.2 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002493/0.1843, allocations: 326.6 kB / 412.5 MB, free: 23.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.74e-05/0.1844, allocations: 32 kB / 412.6 MB, free: 23.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001837/0.1845, allocations: 119.9 kB / 412.7 MB, free: 22.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000118/0.1847, allocations: 191.3 kB / 412.9 MB, free: 22.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001668/0.1848, allocations: 310 kB / 413.2 MB, free: 22.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004975/0.1854, allocations: 0.7886 MB / 414 MB, free: 21.62 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.885e-06/0.1854, allocations: 3.938 kB / 414 MB, free: 21.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1854, allocations: 4 kB / 414 MB, free: 21.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1854, allocations: 0 / 414 MB, free: 21.62 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.002135/0.1875, allocations: 1.169 MB / 415.1 MB, free: 20.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.76e-05/0.1876, allocations: 8.031 kB / 415.2 MB, free: 20.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00017/0.1877, allocations: 87.98 kB / 415.2 MB, free: 20.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005829/0.1883, allocations: 0.5443 MB / 415.8 MB, free: 19.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.1884, allocations: 37.69 kB / 415.8 MB, free: 19.68 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.784e-05/0.1884, allocations: 52.36 kB / 415.9 MB, free: 19.63 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.1896, allocations: 0.73 MB / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.1896, allocations: 0 / 416.6 MB, free: 18.88 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.53e-05/0.1896, allocations: 20 kB / 416.6 MB, free: 18.86 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.738e-05/0.1897, allocations: 41.3 kB / 416.7 MB, free: 18.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.1911, allocations: 0.6218 MB / 417.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002937/0.194, allocations: 2.218 MB / 419.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/0.1956, allocations: 0.5494 MB / 420.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005829/0.1962, allocations: 256.7 kB / 420.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.1963, allocations: 178.1 kB / 420.5 MB, free: 14.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.472e-05/0.1963, allocations: 46.55 kB / 420.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.123e-06/0.1963, allocations: 0 / 420.5 MB, free: 14.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=44): time 0.002012/0.1984, allocations: 0.7275 MB / 421.3 MB, free: 14.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.253e-05/0.1984, allocations: 55.41 kB / 421.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005143/0.1989, allocations: 0.6045 MB / 421.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.199, allocations: 37.81 kB / 421.9 MB, free: 13.37 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.1991, allocations: 331.9 kB / 422.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.414e-05/0.1992, allocations: 138 kB / 422.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.1994, allocations: 114.2 kB / 422.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.854e-05/0.1994, allocations: 374.8 kB / 422.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005748/0.2, allocations: 217 kB / 423.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006099/0.2006, allocations: 351.1 kB / 423.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.2017, allocations: 498.6 kB / 423.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2017, allocations: 0 / 423.9 MB, free: 11.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001396/0.2031, allocations: 0.6273 MB / 424.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.2032, allocations: 4 kB / 424.6 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.2032, allocations: 4 kB / 424.6 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.2032, allocations: 8 kB / 424.6 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000281/0.2035, allocations: 79.89 kB / 424.6 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.2035, allocations: 15.92 kB / 424.7 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004121/0.2039, allocations: 79.3 kB / 424.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.206e-05/0.204, allocations: 27.98 kB / 424.8 MB, free: 10.43 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.0002228/0.2042, allocations: 267.9 kB / 425 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.2043, allocations: 67.17 kB / 425.1 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001483/0.2058, allocations: 0.6127 MB / 425.7 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.2058, allocations: 4 kB / 425.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.2058, allocations: 0 / 425.7 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.2059, allocations: 3.984 kB / 425.7 MB, free: 9.465 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002181/0.208, allocations: 1.341 MB / 427.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2081, allocations: 0 / 427.1 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002387/0.2083, allocations: 59.91 kB / 427.1 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.2083, allocations: 8 kB / 427.1 MB, free: 8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.392e-05/0.2084, allocations: 11.98 kB / 427.1 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.2084, allocations: 0 / 427.1 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2084, allocations: 0 / 427.1 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004794/0.2132, allocations: 3.496 MB / 430.6 MB, free: 4.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002244/0.2134, allocations: 200.2 kB / 430.8 MB, free: 4.125 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.327e-05/0.2135, allocations: 12.06 kB / 430.8 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004488/0.2139, allocations: 55.92 kB / 430.9 MB, free: 4.059 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.2142, allocations: 123.7 kB / 431 MB, free: 3.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.2142, allocations: 19.98 kB / 431 MB, free: 3.918 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003526/0.2146, allocations: 430.8 kB / 431.5 MB, free: 3.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2146, allocations: 0 / 431.5 MB, free: 3.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005588/0.2151, allocations: 187.7 kB / 431.6 MB, free: 3.316 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.0001749/0.2153, allocations: 140.9 kB / 431.8 MB, free: 3.164 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.2166, allocations: 0.5343 MB / 432.3 MB, free: 2.629 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2166, allocations: 0.9375 kB / 432.3 MB, free: 2.629 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006387/0.2173, allocations: 287.7 kB / 432.6 MB, free: 2.348 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004429/0.2177, allocations: 70.23 kB / 432.7 MB, free: 2.277 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.2197, allocations: 1.795 MB / 434.5 MB, free: 452 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003945/0.2201, allocations: 0.9619 MB / 435.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005049/0.2206, allocations: 200.5 kB / 435.6 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.2208, allocations: 55.42 kB / 435.7 MB, free: 15.2 MB / 314.7 MB Notification: Performance of SimCode: time 2.81e-07/0.2208, allocations: 0 / 435.7 MB, free: 15.2 MB / 314.7 MB Notification: Performance of Templates: time 0.02152/0.2423, allocations: 7.2 MB / 442.9 MB, free: 8.027 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)