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.001342/0.001342, allocations: 104.4 kB / 19.7 MB, free: 2.125 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.001525/0.001525, allocations: 213 kB / 22.99 MB, free: 4.945 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.463/1.463, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.01408/0.01408, allocations: 2.634 MB / 315.8 MB, free: 308 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.003153/0.003153, allocations: 116.7 kB / 439.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09598/0.09914, allocations: 53.98 MB / 493.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoElectronicCommutator): time 0.004526/0.1037, allocations: 2.822 MB / 496.2 MB, free: 4.637 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002448/0.1061, allocations: 1.301 MB / 497.5 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.1063, allocations: 23.88 kB / 497.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003447/0.1067, allocations: 95.16 kB / 497.6 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001155/0.1078, allocations: 410.1 kB / 498 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003306/0.1082, allocations: 175.8 kB / 498.2 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001086/0.1092, allocations: 0.772 MB / 498.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003941/0.1096, allocations: 225.9 kB / 499.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004035/0.11, allocations: 334.9 kB / 499.5 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004178/0.1105, allocations: 322.6 kB / 499.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001033/0.1106, allocations: 64 kB / 499.9 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003073/0.1109, allocations: 163.9 kB / 0.4883 GB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000253/0.1111, allocations: 239.3 kB / 0.4885 GB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002674/0.1114, allocations: 270.5 kB / 0.4888 GB, free: 280 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.1125, allocations: 0.8754 MB / 0.4896 GB, free: 15.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1125, allocations: 0 / 0.4896 GB, free: 15.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1125, allocations: 0 / 0.4896 GB, free: 15.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.1125, allocations: 0 / 0.4896 GB, free: 15.39 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.002917/0.1154, allocations: 1.167 MB / 0.4908 GB, free: 14.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.1154, allocations: 8.031 kB / 0.4908 GB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002673/0.1157, allocations: 96.41 kB / 0.4909 GB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000901/0.1166, allocations: 0.5064 MB / 0.4914 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.757e-05/0.1167, allocations: 37.69 kB / 0.4914 GB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1168, allocations: 52.33 kB / 0.4915 GB, free: 13.47 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00158/0.1183, allocations: 0.8594 MB / 0.4923 GB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.1184, allocations: 0 / 0.4923 GB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.455e-05/0.1184, allocations: 16 kB / 0.4923 GB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.764e-05/0.1185, allocations: 41.3 kB / 0.4924 GB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001632/0.1201, allocations: 0.6256 MB / 0.493 GB, free: 11.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003719/0.1238, allocations: 1.904 MB / 0.4948 GB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001718/0.1255, allocations: 0.5305 MB / 0.4953 GB, free: 9.375 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006658/0.1262, allocations: 257.4 kB / 0.4956 GB, free: 9.121 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001089/0.1263, allocations: 15.98 kB / 0.4956 GB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.1264, allocations: 50.44 kB / 0.4957 GB, free: 9.047 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.874e-06/0.1264, allocations: 0 / 0.4957 GB, free: 9.047 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.002129/0.1285, allocations: 0.7156 MB / 0.4964 GB, free: 8.324 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.1285, allocations: 55.41 kB / 0.4964 GB, free: 8.258 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006387/0.1292, allocations: 0.5059 MB / 0.4969 GB, free: 7.742 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.1292, allocations: 37.7 kB / 0.4969 GB, free: 7.699 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000309/0.1295, allocations: 348.7 kB / 0.4973 GB, free: 7.355 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001422/0.1297, allocations: 142.8 kB / 0.4974 GB, free: 7.215 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001854/0.1298, allocations: 106.2 kB / 0.4975 GB, free: 7.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002131/0.1301, allocations: 374.8 kB / 0.4979 GB, free: 6.727 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006459/0.1307, allocations: 220.8 kB / 0.4981 GB, free: 6.512 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007407/0.1314, allocations: 338.6 kB / 0.4984 GB, free: 6.133 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.1327, allocations: 498.3 kB / 0.4989 GB, free: 5.594 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1327, allocations: 0 / 0.4989 GB, free: 5.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001593/0.1343, allocations: 0.6157 MB / 0.4995 GB, free: 4.973 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.1343, allocations: 11.94 kB / 0.4995 GB, free: 4.961 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1343, allocations: 4 kB / 0.4995 GB, free: 4.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.1344, allocations: 4 kB / 0.4995 GB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/0.1347, allocations: 95.81 kB / 0.4996 GB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.1347, allocations: 4 kB / 0.4996 GB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004256/0.1351, allocations: 68.12 kB / 0.4997 GB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.001e-05/0.1352, allocations: 27.98 kB / 0.4997 GB, free: 4.762 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.0003488/0.1355, allocations: 267.5 kB / 0.4999 GB, free: 4.492 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001477/0.1357, allocations: 67.56 kB / 0.5 GB, free: 4.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.1373, allocations: 0.6156 MB / 0.5006 GB, free: 3.805 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/0.1373, allocations: 4.109 kB / 0.5006 GB, free: 3.801 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.1373, allocations: 7.938 kB / 0.5006 GB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.778e-06/0.1373, allocations: 7.984 kB / 0.5006 GB, free: 3.785 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002553/0.1399, allocations: 1.158 MB / 0.5018 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1399, allocations: 0 / 0.5018 GB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002544/0.1402, allocations: 59.89 kB / 0.5018 GB, free: 2.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1402, allocations: 4 kB / 0.5018 GB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.124e-05/0.1402, allocations: 15.98 kB / 0.5018 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.1402, allocations: 8 kB / 0.5018 GB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1402, allocations: 0 / 0.5018 GB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002323/0.1425, allocations: 0.9511 MB / 0.5028 GB, free: 1.535 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.1428, allocations: 111.5 kB / 0.5029 GB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.199e-05/0.1429, allocations: 12 kB / 0.5029 GB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004476/0.1433, allocations: 55.91 kB / 0.5029 GB, free: 1.359 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002625/0.1436, allocations: 119.8 kB / 0.503 GB, free: 1.242 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.041e-05/0.1436, allocations: 19.98 kB / 0.5031 GB, free: 1.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004322/0.144, allocations: 358.9 kB / 0.5034 GB, free: 0.875 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.144, allocations: 4 kB / 0.5034 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005456/0.1446, allocations: 159.5 kB / 0.5036 GB, free: 0.7148 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.0002571/0.1448, allocations: 140.8 kB / 0.5037 GB, free: 0.5703 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001461/0.1463, allocations: 0.5291 MB / 0.5042 GB, free: 44 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.1463, allocations: 0 / 0.5042 GB, free: 44 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2076/0.3539, allocations: 271 kB / 0.5045 GB, free: 24.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005917/0.3545, allocations: 56.81 kB / 0.5045 GB, free: 24.25 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002492/0.357, allocations: 1.278 MB / 0.5058 GB, free: 23.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.3574, allocations: 350.1 kB / 0.5061 GB, free: 23.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002108/0.3576, allocations: 67.42 kB / 0.5062 GB, free: 23.66 MB / 366.1 MB Notification: Performance of SimCode: time 8.11e-07/0.3577, allocations: 0 / 0.5062 GB, free: 23.66 MB / 366.1 MB Notification: Performance of Templates: time 0.01656/0.3742, allocations: 9.076 MB / 0.515 GB, free: 21.7 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.20381598174572] Failed to read output from testmodel.py, exit status != 0: 0.382090725004673 0.393507641 0.278843237 Calling exit ...