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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 110.2 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 192 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 225.6 MB / 251 MB, free: 13 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.03591/0.03591, allocations: 2.626 MB / 308.9 MB, free: 5.988 MB / 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.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=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: Performance of FrontEnd - loaded program: time 0.002827/0.002827, allocations: 99.84 kB / 430.2 MB, free: 20.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09893, allocations: 52.8 MB / 483 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004822/0.1038, allocations: 3.043 MB / 486 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002529/0.1063, allocations: 1.344 MB / 487.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002426/0.1065, allocations: 19.88 kB / 487.4 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003593/0.1069, allocations: 99.16 kB / 487.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001325/0.1082, allocations: 457.8 kB / 487.9 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.1086, allocations: 183.7 kB / 488.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.1097, allocations: 0.7681 MB / 488.9 MB, free: 9.859 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004289/0.1102, allocations: 245.8 kB / 489.1 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004348/0.1106, allocations: 326.9 kB / 489.4 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004469/0.111, allocations: 342.6 kB / 489.8 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.1111, allocations: 67.94 kB / 489.8 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003089/0.1115, allocations: 147.9 kB / 490 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002743/0.1117, allocations: 239.3 kB / 490.2 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003476/0.1121, allocations: 338.1 kB / 490.5 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001103/0.1132, allocations: 0.8519 MB / 491.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1132, allocations: 0 / 491.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1132, allocations: 0 / 491.4 MB, free: 7.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.837e-05/0.1132, allocations: 0 / 491.4 MB, free: 7.324 MB / 350.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.003038/0.1162, allocations: 1.12 MB / 492.5 MB, free: 6.172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.76e-05/0.1163, allocations: 12.02 kB / 492.5 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000261/0.1166, allocations: 88.38 kB / 492.6 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009739/0.1175, allocations: 0.5025 MB / 493.1 MB, free: 5.543 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.023e-05/0.1176, allocations: 41.62 kB / 493.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001032/0.1177, allocations: 52.38 kB / 493.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.1193, allocations: 0.7339 MB / 493.9 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1193, allocations: 0 / 493.9 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.155e-05/0.1193, allocations: 20 kB / 493.9 MB, free: 4.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.389e-05/0.1194, allocations: 41.3 kB / 494 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00174/0.1211, allocations: 0.6257 MB / 494.6 MB, free: 4.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0043/0.1254, allocations: 2.157 MB / 496.8 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001876/0.1273, allocations: 0.5347 MB / 497.3 MB, free: 1.238 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006918/0.128, allocations: 244.7 kB / 497.5 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001243/0.1281, allocations: 27.91 kB / 497.6 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.564e-05/0.1282, allocations: 39.28 kB / 497.6 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.204e-06/0.1282, allocations: 4 kB / 497.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.002313/0.1305, allocations: 0.7233 MB / 498.3 MB, free: 192 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.137e-05/0.1305, allocations: 55.41 kB / 498.4 MB, free: 124 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000837/0.1314, allocations: 0.6123 MB / 499 MB, free: 15.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.034e-05/0.1314, allocations: 33.7 kB / 499 MB, free: 15.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002962/0.1317, allocations: 332.5 kB / 499.4 MB, free: 15.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.1319, allocations: 142.8 kB / 499.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001955/0.1321, allocations: 114.2 kB / 499.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002271/0.1323, allocations: 370.8 kB / 500 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006991/0.133, allocations: 224.8 kB / 0.4885 GB, free: 14.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008007/0.1338, allocations: 342.5 kB / 0.4888 GB, free: 13.9 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001391/0.1352, allocations: 498.5 kB / 0.4893 GB, free: 13.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.1352, allocations: 0 / 0.4893 GB, free: 13.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001726/0.1369, allocations: 0.62 MB / 0.4899 GB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.1369, allocations: 19.44 kB / 0.4899 GB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.095e-05/0.137, allocations: 4 kB / 0.4899 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.978e-05/0.137, allocations: 4 kB / 0.4899 GB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003388/0.1373, allocations: 95.81 kB / 0.49 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.1373, allocations: 7.938 kB / 0.49 GB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/0.1378, allocations: 83.47 kB / 0.4901 GB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.462e-05/0.1379, allocations: 27.98 kB / 0.4901 GB, free: 12.5 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.0004142/0.1383, allocations: 267.6 kB / 0.4904 GB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001696/0.1385, allocations: 75.52 kB / 0.4904 GB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/0.1403, allocations: 0.6124 MB / 0.491 GB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.1403, allocations: 4 kB / 0.491 GB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.1403, allocations: 7.938 kB / 0.491 GB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.1403, allocations: 3.984 kB / 0.4911 GB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002917/0.1432, allocations: 1.313 MB / 0.4923 GB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.1432, allocations: 0 / 0.4923 GB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002773/0.1435, allocations: 59.91 kB / 0.4924 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.1435, allocations: 0 / 0.4924 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.467e-05/0.1436, allocations: 15.98 kB / 0.4924 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.461e-06/0.1436, allocations: 4 kB / 0.4924 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.1436, allocations: 0 / 0.4924 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00251/0.1461, allocations: 0.9632 MB / 0.4934 GB, free: 9.098 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000314/0.1464, allocations: 123.5 kB / 0.4935 GB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.107e-05/0.1465, allocations: 8 kB / 0.4935 GB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005274/0.147, allocations: 55.92 kB / 0.4935 GB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002866/0.1473, allocations: 119.8 kB / 0.4936 GB, free: 8.797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.1473, allocations: 20.05 kB / 0.4937 GB, free: 8.777 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006652/0.148, allocations: 438.7 kB / 0.4941 GB, free: 8.352 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.148, allocations: 0 / 0.4941 GB, free: 8.352 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000571/0.1486, allocations: 159.6 kB / 0.4942 GB, free: 8.195 MB / 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.0002993/0.1489, allocations: 144.8 kB / 0.4944 GB, free: 8.043 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.1506, allocations: 0.5245 MB / 0.4949 GB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.1506, allocations: 0 / 0.4949 GB, free: 7.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007916/0.1514, allocations: 279.4 kB / 0.4951 GB, free: 7.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006268/0.152, allocations: 62.3 kB / 0.4952 GB, free: 7.188 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.1547, allocations: 1.265 MB / 0.4964 GB, free: 5.895 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006388/0.1554, allocations: 0.9381 MB / 0.4974 GB, free: 4.934 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004924/0.1559, allocations: 192.5 kB / 0.4975 GB, free: 4.746 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001684/0.156, allocations: 63.41 kB / 0.4976 GB, free: 4.684 MB / 366.1 MB Notification: Performance of SimCode: time 1.233e-06/0.156, allocations: 0 / 0.4976 GB, free: 4.684 MB / 366.1 MB Notification: Performance of Templates: time 0.01561/0.1716, allocations: 7.572 MB / 0.505 GB, free: 13.14 MB / 382.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: 5.334320184774697] Failed to read output from testmodel.py, exit status != 0: 0.17929582949727774 0.380716264 0.07871642200000001 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fd268f617b0>