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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008659/0.0008659, allocations: 80.75 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008752/0.0008752, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9043/0.9043, allocations: 177.1 MB / 203.8 MB, free: 5.469 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BLDC 1.9.0/package.mo): time 0.01136/0.01136, allocations: 2.002 MB / 262.3 MB, free: 10.94 MB / 250.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.353e-06/1.353e-06, allocations: 0 / 279.3 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.358e-05/1.493e-05, allocations: 2.312 kB / 279.3 MB, free: 9.879 MB / 266.7 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.002833/0.002848, allocations: 2.963 MB / 282.3 MB, free: 6.891 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001697/0.004545, allocations: 1.379 MB / 283.7 MB, free: 5.508 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001851/0.00473, allocations: 15.88 kB / 283.7 MB, free: 5.492 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.004989, allocations: 99.17 kB / 283.8 MB, free: 5.395 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008104/0.005799, allocations: 421.6 kB / 284.2 MB, free: 4.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002249/0.006024, allocations: 171.8 kB / 284.4 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007175/0.006742, allocations: 0.7874 MB / 285.1 MB, free: 4.023 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002634/0.007005, allocations: 247.7 kB / 285.4 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003974/0.007403, allocations: 487 kB / 285.9 MB, free: 3.301 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002555/0.007658, allocations: 279.3 kB / 286.1 MB, free: 3.027 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-05/0.007717, allocations: 63.94 kB / 286.2 MB, free: 2.965 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002009/0.007918, allocations: 167.8 kB / 286.4 MB, free: 2.801 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003909/0.008309, allocations: 235.3 kB / 286.6 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001304/0.008439, allocations: 207.4 kB / 286.8 MB, free: 2.367 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005304/0.008969, allocations: 0.6344 MB / 287.4 MB, free: 1.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.008971, allocations: 0 / 287.4 MB, free: 1.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.008972, allocations: 0 / 287.4 MB, free: 1.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.979e-06/0.008977, allocations: 3.938 kB / 287.4 MB, free: 1.727 MB / 266.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.001475/0.01045, allocations: 1.095 MB / 288.5 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.909e-05/0.01048, allocations: 8.031 kB / 288.5 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001972/0.01068, allocations: 108.8 kB / 288.6 MB, free: 500 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004297/0.01111, allocations: 435.2 kB / 289.1 MB, free: 36 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.1164/0.1275, allocations: 40.38 kB / 289.1 MB, free: 23.28 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001822/0.1277, allocations: 51.38 kB / 289.2 MB, free: 23.28 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007482/0.1284, allocations: 0.5894 MB / 289.7 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.1285, allocations: 4.984 kB / 289.7 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.1285, allocations: 19.94 kB / 289.8 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.11e-05/0.1285, allocations: 39.77 kB / 289.8 MB, free: 23.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003247/0.1289, allocations: 215.7 kB / 290 MB, free: 23.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001871/0.1307, allocations: 1.495 MB / 291.5 MB, free: 22.45 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003132/0.131, allocations: 243.6 kB / 291.7 MB, free: 22.37 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.871e-05/0.1311, allocations: 72.8 kB / 291.8 MB, free: 22.36 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001174/0.1313, allocations: 37 kB / 291.9 MB, free: 22.36 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.766e-05/0.1313, allocations: 41.55 kB / 291.9 MB, free: 22.32 MB / 266.7 MB Notification: Performance of pre-optimization done (n=42): time 2.154e-06/0.1313, allocations: 0.75 kB / 291.9 MB, free: 22.32 MB / 266.7 MB Notification: Performance of matching and sorting (n=42): time 0.000452/0.1317, allocations: 251.4 kB / 292.1 MB, free: 22.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.858e-05/0.1318, allocations: 55.81 kB / 292.2 MB, free: 22.22 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.132, allocations: 426.3 kB / 292.6 MB, free: 22.09 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.132, allocations: 35.77 kB / 292.6 MB, free: 22.06 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000104/0.1321, allocations: 292.4 kB / 292.9 MB, free: 21.9 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.163e-05/0.1322, allocations: 129.7 kB / 293.1 MB, free: 21.83 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.1323, allocations: 108.8 kB / 293.2 MB, free: 21.81 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.971e-05/0.1324, allocations: 374.2 kB / 293.5 MB, free: 21.49 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.1325, allocations: 63.12 kB / 293.6 MB, free: 21.49 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001386/0.1326, allocations: 179 kB / 293.8 MB, free: 21.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002753/0.1329, allocations: 291.4 kB / 294.1 MB, free: 21.19 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.1329, allocations: 5.344 kB / 294.1 MB, free: 21.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0004134/0.1333, allocations: 298.5 kB / 294.4 MB, free: 21.14 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.1333, allocations: 6.984 kB / 294.4 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1333, allocations: 5 kB / 294.4 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.1334, allocations: 6.781 kB / 294.4 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001716/0.1335, allocations: 82.7 kB / 294.4 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.1335, allocations: 11.67 kB / 294.5 MB, free: 21.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002096/0.1338, allocations: 63.5 kB / 294.5 MB, free: 21.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.1338, allocations: 19.06 kB / 294.5 MB, free: 21.13 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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.0001288/0.1339, allocations: 158.3 kB / 294.7 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.574e-05/0.134, allocations: 54.2 kB / 294.7 MB, free: 21.01 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004234/0.1344, allocations: 290.3 kB / 295 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.1344, allocations: 4.328 kB / 295 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.1344, allocations: 1.219 kB / 295 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.1344, allocations: 6.047 kB / 295 MB, free: 20.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007991/0.1352, allocations: 0.6813 MB / 295.7 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.1352, allocations: 1.969 kB / 295.7 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001327/0.1354, allocations: 51.58 kB / 295.8 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.1354, allocations: 1.797 kB / 295.8 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.392e-05/0.1354, allocations: 13.22 kB / 295.8 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.1354, allocations: 1.641 kB / 295.8 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.1354, allocations: 6.625 kB / 295.8 MB, free: 20.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004879/0.1359, allocations: 446.6 kB / 296.2 MB, free: 20.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.136, allocations: 86.83 kB / 296.3 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.025e-05/0.136, allocations: 6.125 kB / 296.3 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.1362, allocations: 35.02 kB / 296.4 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000119/0.1363, allocations: 70.41 kB / 296.4 MB, free: 20.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.1364, allocations: 11.78 kB / 296.4 MB, free: 20.46 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001591/0.1365, allocations: 177 kB / 296.6 MB, free: 20.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1365, allocations: 0 / 296.6 MB, free: 20.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000344/0.1369, allocations: 163.8 kB / 296.8 MB, free: 20.43 MB / 266.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 (43): * Single equations (assignments): 42 * 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.000183/0.1371, allocations: 133.4 kB / 296.9 MB, free: 20.36 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003459/0.1374, allocations: 227.2 kB / 297.1 MB, free: 20.33 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/0.1374, allocations: 6.562 kB / 297.1 MB, free: 20.33 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.1376, allocations: 124.7 kB / 297.3 MB, free: 20.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000264/0.1378, allocations: 78.55 kB / 297.3 MB, free: 20.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001308/0.1392, allocations: 1.019 MB / 298.4 MB, free: 19.81 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001372/0.1393, allocations: 164.7 kB / 298.5 MB, free: 19.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001917/0.1395, allocations: 83.83 kB / 298.6 MB, free: 19.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002188/0.1397, allocations: 151.3 kB / 298.7 MB, free: 19.65 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1397, allocations: 0 / 298.7 MB, free: 19.65 MB / 266.7 MB Notification: Performance of Templates: time 0.009256/0.149, allocations: 7.227 MB / 306 MB, free: 16.34 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f BLDC_BLDC.Examples.DemoElectronicCommutator.makefile [Timeout 660] (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=240 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8980250428430736]