Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.ExtTest.IAwithPDtoTD2.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.001806/0.001806, allocations: 104.3 kB / 19.77 MB, free: 2.051 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.002292/0.002292, allocations: 219.5 kB / 23.07 MB, free: 4.844 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.649/1.649, allocations: 230.7 MB / 256.9 MB, free: 7.719 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.08278/0.08278, allocations: 16.94 MB / 330.2 MB, free: 2.008 MB / 254.1 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/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(PNlib.Examples.ExtTest.IAwithPDtoTD2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|P2.t|P3.t|T1.active|T1.fire|T2.active|T2.fire|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.IAwithPDtoTD2") translateModel(PNlib.Examples.ExtTest.IAwithPDtoTD2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="P1.t|P2.t|P3.t|T1.active|T1.fire|T2.active|T2.fire|time",fileNamePrefix="PNlib_PNlib.Examples.ExtTest.IAwithPDtoTD2") [Timeout 660] "Notification: Performance of FrontEnd - Absyn->SCode: time 3.159e-05/3.159e-05, allocations: 2.281 kB / 461 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ExtTest.IAwithPDtoTD2): time 0.00532/0.005352, allocations: 3.216 MB / 464.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007564/0.01292, allocations: 3.214 MB / 467.4 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001708/0.01462, allocations: 27.81 kB / 467.5 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001244/0.01587, allocations: 309.4 kB / 467.8 MB, free: 10.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001684/0.01755, allocations: 393.4 kB / 468.2 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004909/0.02246, allocations: 1.778 MB / 469.9 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006812/0.02927, allocations: 4.282 MB / 474.2 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007959/0.03007, allocations: 266.1 kB / 474.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003127/0.03319, allocations: 1.683 MB / 476.2 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002413/0.03561, allocations: 1.217 MB / 477.4 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000655/0.03626, allocations: 260 kB / 477.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002282/0.03854, allocations: 1.053 MB / 478.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.004667/0.04321, allocations: 3.921 MB / 482.6 MB, free: 11.89 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.002934/0.04615, allocations: 2.233 MB / 484.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001183/0.04733, allocations: 228.5 kB / 485.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.0006195/0.04795, allocations: 242.3 kB / 485.3 MB, free: 9.164 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: 581 (429) * Number of variables: 581 (511) Notification: Performance of [SIM] Bindings: time 0.0153/0.06325, allocations: 9.891 MB / 495.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of [SIM] FunctionAlias: time 0.002262/0.06551, allocations: 1.204 MB / 496.4 MB, free: 13.74 MB / 366.1 MB Notification: Performance of [SIM] Early Inline: time 0.01536/0.08088, allocations: 10.21 MB / 0.4947 GB, free: 3.465 MB / 366.1 MB Notification: Performance of [SIM] Simplify 1: time 0.004919/0.08579, allocations: 1.903 MB / 0.4966 GB, free: 1.426 MB / 366.1 MB Notification: Performance of [SIM] Alias: time 0.01882/0.1046, allocations: 9.524 MB / 0.5059 GB, free: 6.816 MB / 382.1 MB Notification: Performance of [SIM] Simplify 2: time 0.003551/0.1082, allocations: 1.683 MB / 0.5075 GB, free: 5.035 MB / 382.1 MB Notification: Performance of [SIM] Remove Stream: time 0.002471/0.1106, allocations: 1.361 MB / 0.5089 GB, free: 3.617 MB / 382.1 MB Notification: Performance of [SIM] Detect States: time 0.004611/0.1152, allocations: 2.645 MB / 0.5114 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of [SIM] Events: time 0.2583/0.3735, allocations: 1.743 MB / 0.5131 GB, free: 50.11 MB / 382.1 MB Notification: Performance of [SIM] Partitioning: time 0.009295/0.3828, allocations: 4.464 MB / 0.5175 GB, free: 49.46 MB / 382.1 MB Notification: Performance of [SIM] Causalize: time 0.02171/0.4045, allocations: 11.63 MB / 0.5289 GB, free: 48.08 MB / 382.1 MB Notification: Performance of [SIM] After Index Reduction Inline: time 0.0128/0.4173, allocations: 8.894 MB / 0.5376 GB, free: 45.04 MB / 382.1 MB Notification: Performance of [INI] Simplify: time 0.007178/0.4245, allocations: 3.56 MB / 0.541 GB, free: 43.27 MB / 382.1 MB Notification: Performance of [INI] Inline: time 0.01543/0.44, allocations: 13.94 MB / 0.5546 GB, free: 33.04 MB / 382.1 MB Notification: Performance of [INI] Partitioning: time 0.0007239/0.4407, allocations: 173 kB / 0.5548 GB, free: 32.83 MB / 382.1 MB Notification: Performance of [INI] Cleanup: time 0.00362/0.4443, allocations: 2.097 MB / 0.5569 GB, free: 30.77 MB / 382.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_9 = $PRE.P3.firingSumIn.firingSum > 0 or $PRE.P3.firingSumOut.firingSum > 0 ($RES_EVT_573); [SCAL] (1) $SEV_5 = $PRE.P2.firingSumIn.firingSum > 0 or $PRE.P2.firingSumOut.firingSum > 0 ($RES_EVT_569); Error: Internal error NBResolveSingularities.balanceInitialization failed because following non-fixable variables could not be solved: [DISC] (4) Integer[4] $TEV_9 [DISC] (4) Integer[4] $TEV_11 [DISC] (1) Boolean $SEV_30 [DISC] (1) Boolean $SEV_31 [DISC] (1) Boolean $SEV_32 [DISC] (1) Boolean $SEV_33 [DISC] (1) Boolean[1] $SEV_70 [DISC] (1) Boolean[1] T2.outPlaces.fire = {T2.fire for $f1 in 1:1} [DISC] (1) Boolean[1] T1.outPlaces.enabledByInPlaces = {T1.enabledByInPlaces for $f1 in 1:1} [DISC] (1) protected discrete Real P3.enableIn.benefitLimit [DISC] (1) protected Boolean P3.enableIn.valid [DISC] (1) protected discrete Real P3.enableIn.benefitMax [DISC] (1) protected Integer P3.enableIn.Index [DISC] (1) protected Integer P3.enableIn.nTAin [DISC] (1) protected Integer P3.enableIn.arcWeightSum [DISC] (1) protected discrete Real P3.enableOut.benefitLimit [DISC] (1) protected Boolean P3.enableOut.valid [DISC] (1) protected discrete Real P3.enableOut.benefitMax [DISC] (1) protected Integer P3.enableOut.Index [DISC] (1) protected Boolean P3.enableOut.endWhile [DISC] (1) protected discrete Real P3.enableOut.sumEnablingProbTAout [DISC] (1) protected Integer P3.enableOut.posTE [DISC] (1) protected Integer P3.enableOut.k [DISC] (1) protected Integer P3.enableOut.nTAout [DISC] (1) protected Integer P3.enableOut.nremTAout [DISC] (1) protected discrete Real P2.enableIn.benefitLimit [DISC] (1) protected Boolean P2.enableIn.valid [DISC] (1) protected discrete Real P2.enableIn.benefitMax [DISC] (1) protected Integer P2.enableIn.Index [DISC] (1) protected Integer P2.enableIn.nTAin [DISC] (1) protected Integer P2.enableIn.arcWeightSum [DISC] (1) protected discrete Real P2.enableOut.benefitLimit [DISC] (1) protected Boolean P2.enableOut.valid [DISC] (1) protected discrete Real P2.enableOut.benefitMax [DISC] (1) protected Integer P2.enableOut.Index [DISC] (1) protected Boolean P2.enableOut.endWhile [DISC] (1) protected discrete Real P2.enableOut.sumEnablingProbTAout [DISC] (1) protected Integer P2.enableOut.posTE [DISC] (1) protected Integer P2.enableOut.k [DISC] (1) protected Integer P2.enableOut.nTAout [DISC] (1) protected Integer P2.enableOut.nremTAout [DISC] (1) Boolean[1] P2.inTransition.fire = {P2.fireIn[1]} [DISC] (1) protected discrete Real P1.enableIn.benefitLimit [DISC] (1) protected Boolean P1.enableIn.valid [DISC] (1) protected discrete Real P1.enableIn.benefitMax [DISC] (1) protected Integer P1.enableIn.Index [DISC] (1) protected Boolean P1.enableIn.endWhile [DISC] (1) protected discrete Real P1.enableIn.sumEnablingProbTAin [DISC] (1) protected Integer P1.enableIn.posTE [DISC] (1) protected Integer P1.enableIn.k [DISC] (1) protected Integer P1.enableIn.nTAin [DISC] (1) protected Integer P1.enableIn.nremTAin [DISC] (1) protected discrete Real P1.enableOut.benefitLimit [DISC] (1) protected Boolean P1.enableOut.valid [DISC] (1) protected discrete Real P1.enableOut.benefitMax [DISC] (1) protected Integer P1.enableOut.Index [DISC] (1) protected Integer P1.enableOut.k Following equations were created by fixing variables: [SCAL] (1) $PRE.T1.fireTime = $START.T1.fireTime ($RES_SRT_720) [SCAL] (1) $PRE.T2.firingTime = $START.T2.firingTime ($RES_SRT_719) [SCAL] (1) $PRE.T2.ani = $START.T2.ani ($RES_SRT_718) [SCAL] (1) $PRE.P1.firingSumIn.firingSum = $START.P1.firingSumIn.firingSum ($RES_SRT_717) [SCAL] (1) $PRE.P1.firingSumOut.firingSum = $START.P1.firingSumOut.firingSum ($RES_SRT_716) [SCAL] (1) $PRE.P2.firingSumIn.firingSum = $START.P2.firingSumIn.firingSum ($RES_SRT_715) [SCAL] (1) $PRE.P2.firingSumOut.firingSum = $START.P2.firingSumOut.firingSum ($RES_SRT_714) [SCAL] (1) $PRE.P3.firingSumIn.firingSum = $START.P3.firingSumIn.firingSum ($RES_SRT_713) [SCAL] (1) $PRE.P3.firingSumOut.firingSum = $START.P3.firingSumOut.firingSum ($RES_SRT_712) [ARRY] (4) $PRE.P1.enableOut.state128 = $START.P1.enableOut.state128 ($RES_SRT_711) [ARRY] (4) $PRE.P1.enableIn.state128 = $START.P1.enableIn.state128 ($RES_SRT_710) [ARRY] (4) $PRE.P2.enableOut.state128 = $START.P2.enableOut.state128 ($RES_SRT_709) [ARRY] (4) $PRE.P2.enableIn.state128 = $START.P2.enableIn.state128 ($RES_SRT_708) [ARRY] (4) $PRE.P3.enableOut.state128 = $START.P3.enableOut.state128 ($RES_SRT_707) [ARRY] (4) $PRE.P3.enableIn.state128 = $START.P3.enableIn.state128 ($RES_SRT_706) [SCAL] (1) $PRE.T2.fireTime = $START.T2.fireTime ($RES_SRT_705) [SCAL] (1) $PRE.T1.ani = $START.T1.ani ($RES_SRT_704) [SCAL] (1) $PRE.T1.firingTime = $START.T1.firingTime ($RES_SRT_703) 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: 3.3182347289985046] Failed to read output from testmodel.py, exit status != 0: 0.46613324398640543 0.475572863 0.42484028700000004 Calling exit ...