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.001312/0.001312, allocations: 77.55 kB / 19.76 MB, free: 2.027 MB / 14.72 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.001409/0.001409, allocations: 154.8 kB / 23.01 MB, free: 4.949 MB / 14.72 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 1.413/1.413, allocations: 177.2 MB / 203.4 MB, free: 8.961 MB / 190.1 MB " [Timeout remaining time 178] 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.01338/0.01338, allocations: 1.997 MB / 261.8 MB, free: 14.7 MB / 254.1 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=99999,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") translateModel(BLDC.Examples.DemoElectronicCommutator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=99999,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoElectronicCommutator") [Timeout 660] "Notification: BLDC requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package ModelicaServices of version 4.0.0. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BLDC requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.003313/0.003313, allocations: 110.7 kB / 385.3 MB, free: 2.852 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09574/0.09905, allocations: 53.95 MB / 439.3 MB, free: 12.79 MB / 414.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004464/0.1035, allocations: 2.848 MB / 442.1 MB, free: 9.918 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.002408/0.1059, allocations: 1.298 MB / 443.4 MB, free: 8.617 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001974/0.1061, allocations: 15.88 kB / 443.4 MB, free: 8.602 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003358/0.1065, allocations: 99.17 kB / 443.5 MB, free: 8.504 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001122/0.1076, allocations: 402.1 kB / 443.9 MB, free: 8.109 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003408/0.1079, allocations: 179.8 kB / 444.1 MB, free: 7.934 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001134/0.1091, allocations: 0.7797 MB / 444.9 MB, free: 7.152 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004039/0.1095, allocations: 225.9 kB / 445.1 MB, free: 6.93 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000414/0.1099, allocations: 327 kB / 445.4 MB, free: 6.609 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004557/0.1103, allocations: 338.5 kB / 445.7 MB, free: 6.277 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.1104, allocations: 60 kB / 445.8 MB, free: 6.219 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003111/0.1107, allocations: 159.9 kB / 446 MB, free: 6.062 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00027/0.111, allocations: 239.2 kB / 446.2 MB, free: 5.828 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002897/0.1113, allocations: 266.5 kB / 446.4 MB, free: 5.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001086/0.1124, allocations: 0.8754 MB / 447.3 MB, free: 4.688 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1124, allocations: 0 / 447.3 MB, free: 4.688 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1124, allocations: 0 / 447.3 MB, free: 4.688 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.208e-06/0.1124, allocations: 0 / 447.3 MB, free: 4.688 MB / 414.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.003105/0.1155, allocations: 1.159 MB / 448.5 MB, free: 3.496 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.1155, allocations: 16.02 kB / 448.5 MB, free: 3.48 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002749/0.1158, allocations: 84.42 kB / 448.6 MB, free: 3.398 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000911/0.1167, allocations: 0.5142 MB / 449.1 MB, free: 2.855 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.83e-05/0.1168, allocations: 37.69 kB / 449.1 MB, free: 2.82 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.051e-05/0.1169, allocations: 52.36 kB / 449.2 MB, free: 2.77 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001586/0.1184, allocations: 0.8477 MB / 450 MB, free: 1.871 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.924e-05/0.1185, allocations: 4 kB / 450 MB, free: 1.867 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.546e-05/0.1185, allocations: 23.94 kB / 450.1 MB, free: 1.844 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-05/0.1186, allocations: 41.28 kB / 450.1 MB, free: 1.805 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/0.1203, allocations: 0.6296 MB / 450.7 MB, free: 1.176 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003756/0.124, allocations: 1.893 MB / 452.6 MB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/0.1259, allocations: 0.5339 MB / 453.2 MB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006922/0.1266, allocations: 257.2 kB / 453.4 MB, free: 14.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.1267, allocations: 23.94 kB / 453.4 MB, free: 14.41 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/0.1267, allocations: 42.5 kB / 453.5 MB, free: 14.36 MB / 430.1 MB Notification: Performance of pre-optimization done (n=44): time 2.264e-06/0.1267, allocations: 0 / 453.5 MB, free: 14.36 MB / 430.1 MB Notification: Performance of matching and sorting (n=44): time 0.002244/0.129, allocations: 0.7078 MB / 454.2 MB, free: 13.64 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.29e-05/0.129, allocations: 59.41 kB / 454.2 MB, free: 13.57 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006559/0.1297, allocations: 0.5137 MB / 454.8 MB, free: 13.05 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 4.367e-05/0.1297, allocations: 37.64 kB / 454.8 MB, free: 13.01 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002823/0.13, allocations: 340.8 kB / 455.1 MB, free: 12.67 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000125/0.1301, allocations: 142.8 kB / 455.3 MB, free: 12.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000191/0.1303, allocations: 118.1 kB / 455.4 MB, free: 12.4 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001927/0.1305, allocations: 366.8 kB / 455.7 MB, free: 12.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006664/0.1312, allocations: 224.8 kB / 456 MB, free: 11.82 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007715/0.1319, allocations: 342.6 kB / 456.3 MB, free: 11.44 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00133/0.1333, allocations: 486.6 kB / 456.8 MB, free: 10.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.1333, allocations: 3.938 kB / 456.8 MB, free: 10.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001678/0.135, allocations: 0.6196 MB / 457.4 MB, free: 10.28 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.135, allocations: 11.92 kB / 457.4 MB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.135, allocations: 4 kB / 457.4 MB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.083e-05/0.135, allocations: 8 kB / 457.4 MB, free: 10.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000338/0.1353, allocations: 84.3 kB / 457.5 MB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.1354, allocations: 8 kB / 457.5 MB, free: 10.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004452/0.1358, allocations: 79.58 kB / 457.6 MB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.145e-05/0.1358, allocations: 23.98 kB / 457.6 MB, free: 10.07 MB / 430.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.0003513/0.1362, allocations: 267.6 kB / 457.9 MB, free: 9.793 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001483/0.1363, allocations: 59.61 kB / 457.9 MB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001741/0.1381, allocations: 0.6079 MB / 458.5 MB, free: 9.121 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.1381, allocations: 7.938 kB / 458.5 MB, free: 9.113 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.1381, allocations: 0 / 458.5 MB, free: 9.113 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.1381, allocations: 3.984 kB / 458.5 MB, free: 9.109 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002631/0.1407, allocations: 1.174 MB / 459.7 MB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.1407, allocations: 0 / 459.7 MB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.141, allocations: 59.89 kB / 459.8 MB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.441e-06/0.141, allocations: 11.94 kB / 459.8 MB, free: 7.828 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.012e-05/0.1411, allocations: 15.98 kB / 459.8 MB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.1411, allocations: 0 / 459.8 MB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1411, allocations: 0 / 459.8 MB, free: 7.812 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00237/0.1434, allocations: 0.9553 MB / 460.8 MB, free: 6.836 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002377/0.1437, allocations: 111.6 kB / 460.9 MB, free: 6.727 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.394e-05/0.1438, allocations: 4 kB / 460.9 MB, free: 6.723 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004704/0.1442, allocations: 59.92 kB / 460.9 MB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002663/0.1445, allocations: 115.8 kB / 461 MB, free: 6.551 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.401e-05/0.1445, allocations: 24.05 kB / 461.1 MB, free: 6.527 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004578/0.145, allocations: 362.8 kB / 461.4 MB, free: 6.176 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.145, allocations: 0 / 461.4 MB, free: 6.176 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005614/0.1456, allocations: 163.5 kB / 461.6 MB, free: 6.016 MB / 430.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.0002473/0.1458, allocations: 145.1 kB / 461.7 MB, free: 5.863 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00156/0.1474, allocations: 0.5207 MB / 462.2 MB, free: 5.344 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/0.1474, allocations: 7.938 kB / 462.2 MB, free: 5.336 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007488/0.1481, allocations: 271.5 kB / 462.5 MB, free: 5.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004609/0.1486, allocations: 65.89 kB / 462.6 MB, free: 5.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.1509, allocations: 1.248 MB / 463.8 MB, free: 3.73 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003954/0.1513, allocations: 343.3 kB / 464.2 MB, free: 3.371 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004451/0.1518, allocations: 180.3 kB / 464.3 MB, free: 3.195 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001558/0.1519, allocations: 56.48 kB / 464.4 MB, free: 3.141 MB / 430.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1519, allocations: 0 / 464.4 MB, free: 3.141 MB / 430.1 MB Notification: Performance of Templates: time 0.01423/0.1661, allocations: 6.804 MB / 471.2 MB, free: 12.42 MB / 446.1 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=480 -s ida -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.92102505103685] Failed to read output from testmodel.py, exit status != 0: 0.17449511704035103 0.33173338 0.073542039 Calling exit ...