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.001372/0.001372, allocations: 104.4 kB / 16.35 MB, free: 6.289 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.001513/0.001514, allocations: 192.7 kB / 17.29 MB, free: 5.863 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.0123/0.0123, allocations: 2.592 MB / 293.7 MB, free: 12.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001745/0.001745, allocations: 100.2 kB / 355.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2061/0.2078, allocations: 50.03 MB / 405.5 MB, free: 33.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.003399/0.2113, allocations: 3.009 MB / 408.5 MB, free: 30.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.213, allocations: 1.303 MB / 409.8 MB, free: 28.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002554/0.2133, allocations: 15.94 kB / 409.8 MB, free: 28.92 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003177/0.2136, allocations: 99.11 kB / 409.9 MB, free: 28.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009368/0.2146, allocations: 441.9 kB / 410.4 MB, free: 28.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002621/0.2148, allocations: 175.7 kB / 410.5 MB, free: 28.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000723/0.2156, allocations: 0.7681 MB / 411.3 MB, free: 27.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000355/0.2159, allocations: 357.3 kB / 411.7 MB, free: 27.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002445/0.2162, allocations: 319 kB / 412 MB, free: 26.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002644/0.2165, allocations: 342.5 kB / 412.3 MB, free: 26.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.681e-05/0.2165, allocations: 60 kB / 412.4 MB, free: 26.39 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000198/0.2168, allocations: 143.9 kB / 412.5 MB, free: 26.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001534/0.2169, allocations: 231.3 kB / 412.7 MB, free: 26.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001896/0.2171, allocations: 338 kB / 413.1 MB, free: 25.69 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000576/0.2177, allocations: 0.8503 MB / 413.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2177, allocations: 3.938 kB / 413.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2177, allocations: 0 / 413.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.407e-06/0.2177, allocations: 0 / 413.9 MB, free: 24.84 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.002214/0.22, allocations: 1.185 MB / 415.1 MB, free: 23.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.22, allocations: 8.031 kB / 415.1 MB, free: 23.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.2202, allocations: 83.98 kB / 415.2 MB, free: 23.51 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007383/0.2209, allocations: 0.5677 MB / 415.8 MB, free: 22.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.221, allocations: 37.69 kB / 415.8 MB, free: 22.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.551e-05/0.221, allocations: 52.31 kB / 415.8 MB, free: 22.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.2222, allocations: 0.7222 MB / 416.6 MB, free: 22.07 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.2223, allocations: 4 kB / 416.6 MB, free: 22.07 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.521e-05/0.2223, allocations: 24 kB / 416.6 MB, free: 22.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-05/0.2224, allocations: 41.28 kB / 416.6 MB, free: 22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001364/0.2237, allocations: 0.6218 MB / 417.3 MB, free: 21.38 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003081/0.2268, allocations: 2.199 MB / 419.5 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001416/0.2283, allocations: 0.5688 MB / 420 MB, free: 18.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005443/0.2288, allocations: 256.7 kB / 420.3 MB, free: 18.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/0.229, allocations: 178.1 kB / 420.4 MB, free: 18.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.229, allocations: 42.5 kB / 420.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 2.014e-06/0.229, allocations: 0 / 420.5 MB, free: 18.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.001845/0.2309, allocations: 0.7236 MB / 421.2 MB, free: 17.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.2309, allocations: 55.41 kB / 421.3 MB, free: 17.22 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005563/0.2315, allocations: 0.6163 MB / 421.9 MB, free: 16.59 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.543e-05/0.2315, allocations: 29.7 kB / 421.9 MB, free: 16.55 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.2317, allocations: 327.8 kB / 422.2 MB, free: 16.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.686e-05/0.2318, allocations: 134 kB / 422.4 MB, free: 16.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001459/0.2319, allocations: 110.2 kB / 422.5 MB, free: 15.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.564e-05/0.232, allocations: 374.8 kB / 422.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005153/0.2325, allocations: 221 kB / 423 MB, free: 15.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005571/0.2331, allocations: 343.1 kB / 423.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001015/0.2341, allocations: 494.6 kB / 423.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.2341, allocations: 0 / 423.9 MB, free: 14.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00134/0.2355, allocations: 0.6269 MB / 424.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.2355, allocations: 8 kB / 424.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.2355, allocations: 4 kB / 424.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.2356, allocations: 4 kB / 424.5 MB, free: 13.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002923/0.2359, allocations: 87.83 kB / 424.6 MB, free: 13.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.2359, allocations: 8.406 kB / 424.6 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004052/0.2363, allocations: 87.3 kB / 424.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.36e-05/0.2363, allocations: 27.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.0002912/0.2366, allocations: 263.8 kB / 425 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.2368, allocations: 63.19 kB / 425 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.2382, allocations: 0.6166 MB / 425.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.2382, allocations: 4 kB / 425.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2382, allocations: 0 / 425.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.2382, allocations: 4 kB / 425.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002142/0.2404, allocations: 1.342 MB / 427 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.2404, allocations: 7.938 kB / 427 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.2406, allocations: 63.89 kB / 427.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.399e-06/0.2406, allocations: 0 / 427.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.92e-05/0.2407, allocations: 15.98 kB / 427.1 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.2407, allocations: 8 kB / 427.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.2407, allocations: 0 / 427.1 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001865/0.2426, allocations: 0.9544 MB / 428 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.2428, allocations: 200.2 kB / 428.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.789e-05/0.2429, allocations: 8.062 kB / 428.3 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/0.2433, allocations: 59.92 kB / 428.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/0.2436, allocations: 115.8 kB / 428.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.056e-05/0.2436, allocations: 19.98 kB / 428.4 MB, free: 9.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003904/0.244, allocations: 430.8 kB / 428.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.244, allocations: 0 / 428.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004908/0.2445, allocations: 151.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.0002128/0.2447, allocations: 145.4 kB / 429.2 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.246, allocations: 0.5425 MB / 429.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.246, allocations: 0.9375 kB / 429.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000597/0.2466, allocations: 291.5 kB / 430 MB, free: 8.238 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005015/0.2471, allocations: 74.69 kB / 430.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001903/0.2491, allocations: 1.222 MB / 431.3 MB, free: 6.918 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003476/0.2494, allocations: 0.9536 MB / 432.2 MB, free: 5.938 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004124/0.2498, allocations: 192.5 kB / 432.4 MB, free: 5.746 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.25, allocations: 63.41 kB / 432.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.25, allocations: 0 / 432.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of Templates: time 0.01156/0.2616, allocations: 7.136 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 gbode -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1)