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.001316/0.001316, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001547/0.001547, allocations: 213.8 kB / 23.01 MB, free: 4.566 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.457/1.457, allocations: 230.6 MB / 256.8 MB, free: 8.02 MB / 206.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.01423/0.01423, allocations: 2.633 MB / 315.8 MB, free: 492 kB / 238.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.003143/0.003143, allocations: 103.8 kB / 439.4 MB, free: 13.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1063, allocations: 53.99 MB / 493.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004671/0.111, allocations: 3.051 MB / 496.5 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002656/0.1136, allocations: 1.391 MB / 497.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002922/0.1139, allocations: 15.88 kB / 497.9 MB, free: 3.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000405/0.1143, allocations: 103.2 kB / 498 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001284/0.1156, allocations: 418.1 kB / 498.4 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003949/0.116, allocations: 179.6 kB / 498.6 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001199/0.1172, allocations: 0.7797 MB / 499.3 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004416/0.1176, allocations: 245.8 kB / 499.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004756/0.1181, allocations: 327 kB / 499.9 MB, free: 1.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004723/0.1186, allocations: 354.5 kB / 0.4885 GB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.445e-05/0.1187, allocations: 60 kB / 0.4886 GB, free: 0.7891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003311/0.119, allocations: 167.9 kB / 0.4887 GB, free: 0.625 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002567/0.1193, allocations: 235.3 kB / 0.489 GB, free: 404 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003119/0.1196, allocations: 338 kB / 0.4893 GB, free: 64 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001151/0.1207, allocations: 0.8675 MB / 0.4901 GB, free: 15.19 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1207, allocations: 4 kB / 0.4901 GB, free: 15.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1207, allocations: 0 / 0.4901 GB, free: 15.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.499e-05/0.1208, allocations: 0 / 0.4901 GB, free: 15.19 MB / 366.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.003101/0.1239, allocations: 1.159 MB / 0.4913 GB, free: 14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.1239, allocations: 12.03 kB / 0.4913 GB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002689/0.1242, allocations: 84.42 kB / 0.4914 GB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008991/0.1251, allocations: 0.5064 MB / 0.4919 GB, free: 13.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.914e-05/0.1251, allocations: 41.67 kB / 0.4919 GB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.466e-05/0.1252, allocations: 52.33 kB / 0.4919 GB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.1267, allocations: 0.7339 MB / 0.4927 GB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.1267, allocations: 0 / 0.4927 GB, free: 12.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.816e-05/0.1268, allocations: 24 kB / 0.4927 GB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.378e-05/0.1268, allocations: 49.27 kB / 0.4927 GB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.1284, allocations: 0.6257 MB / 0.4933 GB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00386/0.1323, allocations: 2.137 MB / 0.4954 GB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001618/0.1339, allocations: 0.5377 MB / 0.496 GB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00066/0.1345, allocations: 249.4 kB / 0.4962 GB, free: 8.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001226/0.1347, allocations: 23.92 kB / 0.4962 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.755e-05/0.1347, allocations: 38.52 kB / 0.4963 GB, free: 8.75 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.1347, allocations: 0 / 0.4963 GB, free: 8.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002113/0.1368, allocations: 0.7312 MB / 0.497 GB, free: 8.012 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.551e-05/0.1369, allocations: 63.33 kB / 0.497 GB, free: 7.938 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007707/0.1376, allocations: 0.6124 MB / 0.4976 GB, free: 7.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.1377, allocations: 37.7 kB / 0.4977 GB, free: 7.277 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002832/0.138, allocations: 324.4 kB / 0.498 GB, free: 6.953 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.1381, allocations: 146.8 kB / 0.4981 GB, free: 6.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001898/0.1383, allocations: 114.1 kB / 0.4982 GB, free: 6.688 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.1385, allocations: 378.7 kB / 0.4986 GB, free: 6.309 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006225/0.1391, allocations: 220.8 kB / 0.4988 GB, free: 6.094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007226/0.1398, allocations: 338.6 kB / 0.4991 GB, free: 5.715 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.1411, allocations: 498.3 kB / 0.4996 GB, free: 5.176 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.1411, allocations: 0 / 0.4996 GB, free: 5.176 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001606/0.1427, allocations: 0.6272 MB / 0.5002 GB, free: 4.543 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.1427, allocations: 8 kB / 0.5002 GB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.196e-05/0.1427, allocations: 4 kB / 0.5002 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.1427, allocations: 4 kB / 0.5002 GB, free: 4.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.1431, allocations: 95.81 kB / 0.5003 GB, free: 4.434 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/0.1431, allocations: 7.938 kB / 0.5003 GB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004408/0.1435, allocations: 80.05 kB / 0.5004 GB, free: 4.348 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.95e-05/0.1436, allocations: 27.98 kB / 0.5004 GB, free: 4.32 MB / 366.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.0003508/0.1439, allocations: 267.6 kB / 0.5007 GB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001576/0.1441, allocations: 67.52 kB / 0.5007 GB, free: 3.984 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.1457, allocations: 0.6126 MB / 0.5013 GB, free: 3.363 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.1457, allocations: 8 kB / 0.5013 GB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1457, allocations: 0 / 0.5013 GB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.215e-06/0.1457, allocations: 3.984 kB / 0.5013 GB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002748/0.1485, allocations: 1.321 MB / 0.5026 GB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.1485, allocations: 0 / 0.5026 GB, free: 1.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002634/0.1487, allocations: 63.91 kB / 0.5027 GB, free: 1.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1487, allocations: 4 kB / 0.5027 GB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.987e-05/0.1488, allocations: 15.98 kB / 0.5027 GB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.1e-06/0.1488, allocations: 4 kB / 0.5027 GB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1488, allocations: 0 / 0.5027 GB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002209/0.151, allocations: 0.9589 MB / 0.5037 GB, free: 0.918 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002747/0.1513, allocations: 123.4 kB / 0.5038 GB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.229e-05/0.1513, allocations: 12 kB / 0.5038 GB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004363/0.1518, allocations: 59.98 kB / 0.5038 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002623/0.152, allocations: 119.8 kB / 0.504 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.1521, allocations: 19.98 kB / 0.504 GB, free: 0.5898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005179/0.1526, allocations: 430.8 kB / 0.5044 GB, free: 176 kB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1526, allocations: 0 / 0.5044 GB, free: 176 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005376/0.1531, allocations: 155.7 kB / 0.5045 GB, free: 20 kB / 366.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.2255/0.3787, allocations: 141.8 kB / 0.5047 GB, free: 23.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.3803, allocations: 0.52 MB / 0.5052 GB, free: 23.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.3803, allocations: 4.688 kB / 0.5052 GB, free: 23.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007338/0.381, allocations: 275.5 kB / 0.5054 GB, free: 23.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000633/0.3817, allocations: 66.14 kB / 0.5055 GB, free: 23.64 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.3842, allocations: 1.301 MB / 0.5068 GB, free: 23.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004332/0.3846, allocations: 0.9435 MB / 0.5077 GB, free: 22.45 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000209/0.3848, allocations: 69.69 kB / 0.5078 GB, free: 22.44 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3848, allocations: 1.062 kB / 0.5078 GB, free: 22.44 MB / 366.1 MB Notification: Performance of Templates: time 0.01581/0.4006, allocations: 9.189 MB / 0.5167 GB, free: 20.36 MB / 366.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 -lv LOG_STATS > BLDC_BLDC.Examples.DemoElectronicCommutator.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.494265920016915] Failed to read output from testmodel.py, exit status != 0: 0.4086147518828511 0.419996563 0.29690862399999995 Calling exit ...