Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BLDC_BLDC.Examples.DemoEncoder.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.001389/0.001389, allocations: 104.3 kB / 19.76 MB, free: 1.906 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.001652/0.001652, allocations: 217.7 kB / 23.07 MB, free: 4.98 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.528/1.528, allocations: 230.6 MB / 256.9 MB, free: 7.945 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.01847/0.01847, allocations: 2.628 MB / 315.9 MB, free: 244 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.DemoEncoder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder") translateModel(BLDC.Examples.DemoEncoder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="BLDC_BLDC.Examples.DemoEncoder") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.801e-05/1.801e-05, allocations: 2.281 kB / 439.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(BLDC.Examples.DemoEncoder): time 0.004138/0.004156, allocations: 3.85 MB / 443.2 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002464/0.00662, allocations: 1.711 MB / 445 MB, free: 7.926 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003166/0.006936, allocations: 35.75 kB / 445 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003103/0.007247, allocations: 142.5 kB / 445.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008014/0.008048, allocations: 278.2 kB / 445.4 MB, free: 7.477 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006837/0.008732, allocations: 491.2 kB / 445.9 MB, free: 6.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001204/0.009936, allocations: 1.754 MB / 447.6 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004725/0.01041, allocations: 300.3 kB / 447.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008047/0.01121, allocations: 0.7675 MB / 448.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003802/0.01159, allocations: 493.7 kB / 449.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.01171, allocations: 104 kB / 449.3 MB, free: 3.566 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002722/0.01199, allocations: 171.9 kB / 449.4 MB, free: 3.398 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008564/0.01284, allocations: 1.869 MB / 451.3 MB, free: 1.512 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0003562/0.0132, allocations: 1.107 MB / 452.4 MB, free: 400 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.01331, allocations: 72 kB / 452.5 MB, free: 328 kB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001445/0.01345, allocations: 59.55 kB / 452.6 MB, free: 268 kB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 238 (198) * Number of variables: 238 (182) Notification: Performance of [SIM] Bindings: time 0.004768/0.01822, allocations: 4.354 MB / 456.9 MB, free: 11.71 MB / 318.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.0006932/0.01892, allocations: 0.5415 MB / 457.4 MB, free: 11.15 MB / 318.1 MB Notification: Performance of [SIM] Early Inline: time 0.003842/0.02276, allocations: 3.416 MB / 460.9 MB, free: 7.695 MB / 318.1 MB Notification: Performance of [SIM] Simplify 1: time 0.001119/0.02388, allocations: 0.6121 MB / 461.5 MB, free: 7.016 MB / 318.1 MB Notification: Performance of [SIM] Alias: time 0.006527/0.0304, allocations: 4.301 MB / 465.8 MB, free: 2.234 MB / 318.1 MB Notification: Performance of [SIM] Simplify 2: time 0.0008213/0.03123, allocations: 0.5066 MB / 466.3 MB, free: 1.676 MB / 318.1 MB Notification: Performance of [SIM] Remove Stream: time 0.0004778/0.0317, allocations: 388 kB / 466.7 MB, free: 1.266 MB / 318.1 MB Notification: Performance of [SIM] Detect States: time 0.00117/0.03287, allocations: 0.863 MB / 467.5 MB, free: 340 kB / 318.1 MB Notification: Performance of [SIM] Events: time 0.0009322/0.03381, allocations: 0.6011 MB / 468.1 MB, free: 15.74 MB / 334.1 MB Notification: Performance of [SIM] Partitioning: time 0.00168/0.03549, allocations: 1.298 MB / 469.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of [SIM] Causalize: time 0.007234/0.04272, allocations: 4.877 MB / 474.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.003092/0.04581, allocations: 2.603 MB / 476.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of [INI] Simplify: time 0.003653/0.04946, allocations: 1.839 MB / 478.7 MB, free: 4.762 MB / 334.1 MB Notification: Performance of [INI] Inline: time 0.004829/0.05429, allocations: 4.329 MB / 483.1 MB, free: 432 kB / 334.1 MB Notification: Performance of [INI] Partitioning: time 0.0002358/0.05453, allocations: 83.94 kB / 483.2 MB, free: 332 kB / 334.1 MB Notification: Performance of [INI] Cleanup: time 0.0008283/0.05536, allocations: 0.6478 MB / 483.8 MB, free: 15.68 MB / 350.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) $SEV_36 = not encoderPulseCount.notB ($RES_EVT_289); [SCAL] (1) $SEV_35 = not encoderPulseCount.notA ($RES_EVT_288); [SCAL] (1) $SEV_7 = incrementalEncoder.intervalTest2.u > incrementalEncoder.intervalTest3.constantLowerLimit and incrementalEncoder.intervalTest2.u < incrementalEncoder.intervalTest3.constantUpperLimit ($RES_EVT_269); [SCAL] (1) $PRE.encoderPulseCount.count = $START.encoderPulseCount.count ($RES_SRT_313); [SCAL] (1) $PRE.encoderTimeAndCount.t2 = $START.encoderTimeAndCount.t2 ($RES_SRT_311); [SCAL] (1) $PRE.encoderTimeAndCount.t1 = $START.encoderTimeAndCount.t1 ($RES_SRT_310); [SCAL] (1) $PRE.encoderTimeAndCount.firstEdge = $START.encoderTimeAndCount.firstEdge ($RES_SRT_309); [SCAL] (1) $PRE.encoderTimeAndCount.count = $START.encoderTimeAndCount.count ($RES_SRT_308); Error: Internal error NBResolveSingularities.balanceInitialization failed because following non-fixable variables could not be solved: [DISC] (1) protected Integer encoderPulseCount.count (fixed = true, start = 0) [DISC] (1) protected discrete Real encoderTimeAndCount.t2 (fixed = true, start = 0.0) [DISC] (1) protected discrete Real encoderTimeAndCount.t1 (fixed = true, start = 0.0) [DISC] (1) protected Boolean encoderTimeAndCount.firstEdge (fixed = true, start = true) [DISC] (1) protected Integer encoderTimeAndCount.count (fixed = true, start = 0) Following equations were created by fixing variables: Use -d=bltdump for more verbose debug output. Error: Internal error NBInitialization.main failed to apply modules! " [Timeout remaining time 660] [Calling sys.exit(0), Time elapsed: 2.5665940800099634] Failed to read output from testmodel.py, exit status != 0: 0.06840586703037843 0.08381266899999994 0.06735453599999994 Calling exit ...